diff --git a/common/desktop.nix b/common/desktop.nix index 80128c7..5dd828a 100644 --- a/common/desktop.nix +++ b/common/desktop.nix @@ -7,6 +7,7 @@ { imports = [ # Include the results of the hardware scan. + ./home-manager.nix ]; # Use the systemd-boot EFI boot loader. diff --git a/common/home-manager.nix b/common/home-manager.nix new file mode 100644 index 0000000..bc3b9a0 --- /dev/null +++ b/common/home-manager.nix @@ -0,0 +1,15 @@ +{ config, pkgs, ... }: +let + home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz"; +in +{ + imports = [ + (import "${home-manager}/nixos") + ]; + + home-manager.users.andreas = { + imports = [ + ../home-manager/desktop.nix + ]; + }; +} diff --git a/scripts/add-home-manager-channels.sh b/scripts/add-home-manager-channels.sh index 5e0bbcd..3676c06 100755 --- a/scripts/add-home-manager-channels.sh +++ b/scripts/add-home-manager-channels.sh @@ -1,3 +1,2 @@ nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz home-manager nix-channel --update -reboot diff --git a/scripts/install-home-manager.sh b/scripts/install-home-manager.sh index 586996e..95d1e78 100755 --- a/scripts/install-home-manager.sh +++ b/scripts/install-home-manager.sh @@ -1,5 +1,4 @@ nix-shell '' -A install rm ~/.config/nixpkgs/home.nix -rm -r ~/.config/qtile ln -s $(pwd)/home-manager/$ZWEILI_ENVIRONMENT.nix /home/$USER/.config/nixpkgs/home.nix home-manager switch