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 - Will update the flakes and nix-channel, then switch if there are no errors
```Shell ```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; enable = true;
flavor = theme.flavor; flavor = theme.flavor;
}; };
programs.btop.enable = true;
} }

View File

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

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, ... }: { theme, ... }:
{ {
# TODO deprecated, remove
catppuccin.gtk = { catppuccin.gtk = {
enable = true; enable = true;
flavor = theme.flavor; flavor = theme.flavor;
icon.enable = true; icon.enable = true;
}; };
dconf.settings = { dconf = {
# Prefer dark mode for all GTK apps enable = true;
"org/gnome/desktop/interface".color-scheme = "prefer-dark"; settings = {
# Prefer dark mode for all GTK apps
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
}; };
gtk.enable = true; gtk.enable = true;

View File

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