refactor: update flake file and install home-manager in standalone mode
This commit is contained in:
24
flake.nix
24
flake.nix
@@ -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 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user