Just recipe to update single flake, moved some home configs

This commit is contained in:
Martin Berg Alstad 2025-04-06 12:55:05 +02:00
parent 11e8f2f8c6
commit b5c273e072
Signed by: martials
GPG Key ID: 706F53DD087A91DE
6 changed files with 33 additions and 21 deletions

View File

@ -57,5 +57,11 @@ Update and switch
- Will update the flakes and nix-channel, then switch if there are no errors
```Shell
just update
just update-all
```
To update a single flake and rebuild
```Shell
just update zen-browser
```

View File

@ -5,4 +5,6 @@
enable = true;
flavor = theme.flavor;
};
programs.btop.enable = true;
}

View File

@ -1,5 +1,4 @@
{
pkgs,
inputs,
common,
...
@ -20,6 +19,7 @@ in
./fish.nix
./freetube.nix
./gtk.nix
./gpg.nix
./kitty.nix
./media
./nextcloud.nix
@ -31,8 +31,6 @@ in
./zen
];
dconf.enable = true;
home = {
username = username;
homeDirectory = dir.home;
@ -47,17 +45,6 @@ in
stateVersion = common.system.version;
};
programs = {
btop.enable = true;
# Let Home Manager install and manage itself.
home-manager.enable = true;
};
services = {
gpg-agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
};
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}

9
home-manager/gpg.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
services.gpg-agent = {
enable = true;
enableFishIntegration = true;
pinentryPackage = pkgs.pinentry-curses;
};
}

View File

@ -1,15 +1,19 @@
{ theme, ... }:
{
# TODO deprecated, remove
catppuccin.gtk = {
enable = true;
flavor = theme.flavor;
icon.enable = true;
};
dconf.settings = {
# Prefer dark mode for all GTK apps
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
dconf = {
enable = true;
settings = {
# Prefer dark mode for all GTK apps
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
};
gtk.enable = true;

View File

@ -17,12 +17,16 @@ switch *FLAGS:
switch-now *FLAGS:
nh os switch . {{FLAGS}}
update:
update-all:
nix-channel --update
nix flake update
just switch
update PKG:
nix flake update {{PKG}}
just switch
# Encrypt all files in the repo using git-crypt
lock:
git-crypt lock