refactor(flake): re-organise systems and modules
This commit is contained in:
parent
af70a9b56f
commit
eac470013b
6 changed files with 51 additions and 45 deletions
21
system/nixos/default.nix
Normal file
21
system/nixos/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ inputs, username }:
|
||||
|
||||
let
|
||||
configuration = import ./configuration.nix;
|
||||
hardware-configuration = import ./hardware-configuration.nix;
|
||||
in
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
inputs.home-manager.nixosModules.home-manager {
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users."${username}" = import ./home-manager.nix;
|
||||
};
|
||||
}
|
||||
|
||||
configuration
|
||||
hardware-configuration
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue