install home-manager in the main configuration
This commit is contained in:
parent
03e014fe30
commit
fa4993001f
|
@ -7,6 +7,7 @@
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
|
./home-manager.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# 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 --add https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz home-manager
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
reboot
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
nix-shell '<home-manager>' -A install
|
nix-shell '<home-manager>' -A install
|
||||||
rm ~/.config/nixpkgs/home.nix
|
rm ~/.config/nixpkgs/home.nix
|
||||||
rm -r ~/.config/qtile
|
|
||||||
ln -s $(pwd)/home-manager/$ZWEILI_ENVIRONMENT.nix /home/$USER/.config/nixpkgs/home.nix
|
ln -s $(pwd)/home-manager/$ZWEILI_ENVIRONMENT.nix /home/$USER/.config/nixpkgs/home.nix
|
||||||
home-manager switch
|
home-manager switch
|
||||||
|
|
Loading…
Reference in New Issue