install home-manager in the main configuration
This commit is contained in:
parent
03e014fe30
commit
fa4993001f
|
@ -7,6 +7,7 @@
|
|||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./home-manager.nix
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
|
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue