refactor: move state migration to pre-flight, fix XDG hardcoding, and prevent Nix store bloat

This commit is contained in:
Bernardo Magri
2026-04-06 21:37:24 +01:00
parent 0194569a42
commit db6bdd8495
5 changed files with 114 additions and 90 deletions

View File

@@ -32,9 +32,9 @@ in
./swayosd.nix
];
colorScheme = palettes.${config.nomarchy.theme} or palettes.nord;
colorScheme = lib.mkDefault (palettes.${config.nomarchy.theme} or palettes.nord);
home.packages = with pkgs; [
home.packages = lib.mkDefault (with pkgs; [
firefox
xfce.thunar
imv
@@ -55,10 +55,10 @@ in
nerd-fonts.roboto-mono
nerd-fonts.fira-code
nerd-fonts.ubuntu-mono
] ++ userPackages;
] ++ userPackages);
home.shellAliases = {
home.shellAliases = lib.mkDefault {
sys-update = "sudo nixos-rebuild switch --flake /etc/nixos#default --impure";
env-update = "home-manager switch --flake /etc/nixos#default --impure";
env-update = "nomarchy-preflight-migration && home-manager switch --flake /etc/nixos#default --impure";
};
}