switch home manager to standalone install
This commit is contained in:
parent
98cf884518
commit
7e94abb3a5
|
|
@ -91,6 +91,7 @@
|
||||||
cryptsetup
|
cryptsetup
|
||||||
man-pages
|
man-pages
|
||||||
man-pages-posix
|
man-pages-posix
|
||||||
|
home-manager
|
||||||
];
|
];
|
||||||
documentation.dev.enable = true;
|
documentation.dev.enable = true;
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
|
|
|
||||||
29
flake.nix
29
flake.nix
|
|
@ -10,12 +10,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, nixpkgs-stable, home-manager, ... }@inputs: {
|
outputs = { nixpkgs, nixpkgs-stable, home-manager, ... }@inputs:
|
||||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
./configuration.nix
|
overlays = {
|
||||||
{
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
stable = import nixpkgs-stable {
|
stable = import nixpkgs-stable {
|
||||||
|
|
@ -23,12 +22,20 @@
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
};
|
||||||
home-manager.nixosModules.home-manager {
|
in {
|
||||||
home-manager.useGlobalPkgs = true;
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||||
home-manager.useUserPackages = true;
|
inherit system;
|
||||||
home-manager.users.ahnwuoa = import ./home.nix;
|
modules = [
|
||||||
}
|
./configuration.nix
|
||||||
|
overlays
|
||||||
|
];
|
||||||
|
};
|
||||||
|
homeConfigurations.ahnwuoa = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
modules = [
|
||||||
|
./home.nix
|
||||||
|
overlays
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue