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