From 5233efa8bae17e6afcf929b73d3938871cea6b7c Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 8 Dec 2024 13:24:09 -0600 Subject: [PATCH] moved script --- flake.nix | 10 +++++----- homeManagerModules/home.nix | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 4558532..f7974e5 100644 --- a/flake.nix +++ b/flake.nix @@ -38,11 +38,11 @@ nixpkgs.hostPlatform = "${system}"; system.stateVersion = "${stateVersion}"; time.timeZone = "${timeZone}"; - environment.systemPackages = [ - (pkgs.writeShellScriptBin "nfs" '' - sudo nixos-rebuild switch --flake git+file:///etc/nixos#${hostname} - '') - ]; + # environment.systemPackages = [ + # (pkgs.writeShellScriptBin "nfs" '' + # sudo nixos-rebuild switch --flake git+file:///etc/nixos#${hostname} + # '') + # ]; }) ]; }; diff --git a/homeManagerModules/home.nix b/homeManagerModules/home.nix index e73cc83..4c4eadb 100644 --- a/homeManagerModules/home.nix +++ b/homeManagerModules/home.nix @@ -20,5 +20,11 @@ in homeDirectory = "${homePath}"; }; + packages = [ + (pkgs.writeShellScriptBin "nfs" '' + sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname} + '') + ]; + systemd.user.startServices = "sd-switch"; } \ No newline at end of file