2024-02-13 21:33:32 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
system,
|
|
|
|
username,
|
|
|
|
}: {
|
|
|
|
desktop ? false,
|
|
|
|
hostname,
|
|
|
|
}: let
|
|
|
|
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
|
2024-02-13 21:33:32 +00:00
|
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
|
|
modules = [
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager = {
|
|
|
|
extraSpecialArgs = {inherit inputs desktop self username;};
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users."${username}" = import ./home-manager;
|
|
|
|
};
|
|
|
|
}
|
2023-08-07 21:27:54 +00:00
|
|
|
|
2024-02-13 21:33:32 +00:00
|
|
|
configuration
|
|
|
|
hardware-configuration
|
|
|
|
];
|
|
|
|
}
|