refactor: update flake file and install home-manager in standalone mode

This commit is contained in:
2025-11-21 20:27:27 +01:00
parent fe85e60ddf
commit a0277b8d26

View File

@@ -16,13 +16,16 @@
};
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
# nixos system config
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
outputs = { self, nixpkgs, home-manager, ... }:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
specialArgs = {inherit inputs;};
pkgs = nixpkgs.legacyPackages.${system};
in {
# nixos system config
nixosConfigurations = {
default = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
# import host specific configs
./hosts/default/configuration.nix
@@ -31,5 +34,12 @@
];
};
};
# home-manager config
homeConfigurations = {
aaron = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./hosts/default/home.nix ];
};
};
};
}