Makefile now uses nix-shell to ensure home-manager

This commit is contained in:
Evie Litherland-Smith 2023-06-19 07:57:46 +01:00
parent 4d231be0ac
commit 73c0e3d5a9
2 changed files with 1 additions and 2 deletions

View file

@ -17,7 +17,7 @@ nixos: /etc/nixos/config
grep -i ./config/machines/$$(hostname) /etc/nixos/configuration.nix && sudo nixos-rebuild switch
home: $(HOMEMANAGER_CONFIG_DIR)/home.nix
home-manager switch
nix-shell -p home-manager --run "home-manager switch"
/etc/nixos/config:
sudo rsync -avz --exclude-from=.rsyncignore --filter=':- .gitignore' --delete-during --delete-excluded ./ $@

View file

@ -7,7 +7,6 @@
home.username = "xenia";
home.homeDirectory = "/home/xenia";
home.stateVersion = "22.11";
home.packages = with pkgs; [home-manager];
programs.bash.bashrcExtra = ''
source $HOME/.nix-profile/etc/profile.d/nix.sh
'';