install home-manager in the main configuration

This commit is contained in:
Andreas Zweili 2021-11-22 19:27:52 +01:00
parent 03e014fe30
commit fa4993001f
4 changed files with 16 additions and 2 deletions

View File

@ -7,6 +7,7 @@
{
imports =
[ # Include the results of the hardware scan.
./home-manager.nix
];
# Use the systemd-boot EFI boot loader.

15
common/home-manager.nix Normal file
View File

@ -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
];
};
}

View File

@ -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

View File

@ -1,5 +1,4 @@
nix-shell '<home-manager>' -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