From cb97c289d595cba2ce2b2d187960cbf15e66bec1 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Mon, 26 Jan 2026 16:43:07 +0000 Subject: [PATCH] Add home-manager activation to reload script --- nixos/configuration.nix | 2 -- nixos/home.nix | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) 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"