switch home manager to standalone install

This commit is contained in:
caandt 2024-10-10 23:51:53 -05:00
parent 98cf884518
commit 7e94abb3a5
2 changed files with 28 additions and 20 deletions

View file

@ -91,6 +91,7 @@
cryptsetup
man-pages
man-pages-posix
home-manager
];
documentation.dev.enable = true;
programs.bash = {

View file

@ -10,26 +10,33 @@
};
};
outputs = { nixpkgs, nixpkgs-stable, home-manager, ... }@inputs: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
outputs = { nixpkgs, nixpkgs-stable, home-manager, ... }@inputs:
let
system = "x86_64-linux";
modules = [
./configuration.nix
{
nixpkgs.overlays = [
(final: prev: {
stable = import nixpkgs-stable {
system = prev.system;
};
})
];
}
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.ahnwuoa = import ./home.nix;
}
];
pkgs = nixpkgs.legacyPackages.${system};
overlays = {
nixpkgs.overlays = [
(final: prev: {
stable = import nixpkgs-stable {
system = prev.system;
};
})
];
};
in {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
overlays
];
};
homeConfigurations.ahnwuoa = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home.nix
overlays
];
};
};
};
}