Makefile now uses nix-shell to ensure home-manager
This commit is contained in:
parent
4d231be0ac
commit
73c0e3d5a9
2
Makefile
2
Makefile
|
@ -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 ./ $@
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue