Add home-manager activation to reload script
This commit is contained in:
@@ -75,8 +75,6 @@
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
backupFileExtension = "~";
|
backupFileExtension = "~";
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
users = {
|
users = {
|
||||||
"trude" = import ./home.nix;
|
"trude" = import ./home.nix;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
home.username = "trude";
|
home.username = "trude";
|
||||||
home.homeDirectory = "/home/trude";
|
home.homeDirectory = "/home/trude";
|
||||||
home.stateVersion = "25.11"; # Do not change after initial installation.
|
home.stateVersion = "25.11"; # Do not change after initial installation.
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nerd-fonts.jetbrains-mono
|
nerd-fonts.jetbrains-mono
|
||||||
@@ -66,6 +67,8 @@
|
|||||||
git diff -U0 *.nix
|
git diff -U0 *.nix
|
||||||
echo "NixOS Rebuilding..."
|
echo "NixOS Rebuilding..."
|
||||||
sudo nixos-rebuild switch --flake ./nixos#TrudePC &> ~/.nixos-rebuild.log || ( cat ~/.nixos-rebuild.log | grep --color error && false )
|
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)
|
gen=$(nixos-rebuild list-generations | grep current)
|
||||||
echo "Pushing changes..."
|
echo "Pushing changes..."
|
||||||
git commit -am "$gen"
|
git commit -am "$gen"
|
||||||
|
|||||||
Reference in New Issue
Block a user