diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 95f2bead..12c116c3 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -75,8 +75,6 @@ home-manager = { backupFileExtension = "~"; extraSpecialArgs = { inherit inputs; }; - useGlobalPkgs = true; - useUserPackages = true; users = { "trude" = import ./home.nix; }; diff --git a/nixos/home.nix b/nixos/home.nix index 7e561d5b..3bbdccf0 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -5,6 +5,7 @@ home.username = "trude"; home.homeDirectory = "/home/trude"; home.stateVersion = "25.11"; # Do not change after initial installation. + nixpkgs.config.allowUnfree = true; home.packages = with pkgs; [ nerd-fonts.jetbrains-mono @@ -66,6 +67,8 @@ git diff -U0 *.nix echo "NixOS Rebuilding..." sudo nixos-rebuild switch --flake ./nixos#TrudePC &> ~/.nixos-rebuild.log || ( cat ~/.nixos-rebuild.log | grep --color error && false ) + echo "Activating home-manager..." + ~/.local/state/home-manager/gcroots/current-home/activate gen=$(nixos-rebuild list-generations | grep current) echo "Pushing changes..." git commit -am "$gen"