2024-03-19 00:13:01 +00:00
|
|
|
{ inputs, self, username }:
|
|
|
|
{ desktop ? false, hostname }:
|
2024-03-18 20:33:28 +00:00
|
|
|
let
|
2024-03-25 11:55:12 +00:00
|
|
|
configuration =
|
|
|
|
import ./configuration.nix { inherit desktop hostname inputs self; };
|
2024-02-29 08:26:04 +00:00
|
|
|
hardwareConfiguration = import ./hardware-configuration.nix;
|
2024-03-18 20:33:28 +00:00
|
|
|
in 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-03-22 23:38:40 +00:00
|
|
|
(import ./modules/sway.nix { inherit inputs username; })
|
|
|
|
|
2024-03-18 20:33:28 +00:00
|
|
|
configuration
|
|
|
|
hardwareConfiguration
|
|
|
|
];
|
|
|
|
}
|