2023-11-06 23:24:53 +00:00
|
|
|
{ inputs, pkgs, self, system, username }:
|
2023-08-07 22:27:54 +01:00
|
|
|
|
2023-11-06 23:24:53 +00:00
|
|
|
{ desktop ? false }:
|
2023-08-08 20:15:31 +01:00
|
|
|
|
2023-08-07 22:27:54 +01:00
|
|
|
let
|
2023-10-03 23:04:08 +01:00
|
|
|
configuration = import ./configuration.nix { inherit inputs pkgs system; };
|
2023-08-07 22:27:54 +01:00
|
|
|
hardware-configuration = import ./hardware-configuration.nix;
|
|
|
|
in
|
|
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
|
|
modules = [
|
2023-09-27 21:02:06 +01:00
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
{
|
2023-08-07 22:27:54 +01:00
|
|
|
home-manager = {
|
2023-08-11 19:55:56 +01:00
|
|
|
extraSpecialArgs = { inherit inputs desktop self username; };
|
2023-08-07 22:27:54 +01:00
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2023-11-07 06:39:10 +00:00
|
|
|
users."${username}" = import ./home-manager;
|
2023-08-07 22:27:54 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
configuration
|
|
|
|
hardware-configuration
|
|
|
|
];
|
|
|
|
}
|