Migrate to nix flakes

This commit is contained in:
Spotlight 2023-07-04 03:35:37 -05:00
parent e88bd7593f
commit e237c5dd4b
8 changed files with 326 additions and 201 deletions

51
home/desktop.nix Normal file
View file

@ -0,0 +1,51 @@
{ config, lib, pkgs, ... }:
{
# Commonly used packages.
home.packages = with pkgs; [
cloc
croc
exiftool
ffmpeg
go
google-cloud-sdk
gradle
htop
imagemagick
jadx
jdk
jq
mtr
ncdu
nixopsUnstable
p7zip
pngcrush
pry
protobuf
pwgen
rustup
tmux
unar
virt-manager
watch
wget
yt-dlp
];
# GPG
programs.gpg.enable = true;
home.file.".gnupg/gpg-agent.conf" = lib.mkIf pkgs.stdenv.isDarwin {
text = ''
pinentry-program "${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac"
'';
};
# password-store
programs.password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [exts.pass-otp]);
settings = {
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store";
};
};
}