2024-06-10 08:31:28 +00:00
|
|
|
{
|
|
|
|
inputs,
|
2024-09-21 08:58:08 +00:00
|
|
|
nixos-hardware,
|
2024-06-15 11:52:54 +00:00
|
|
|
pkgs,
|
2024-06-10 08:31:28 +00:00
|
|
|
self,
|
|
|
|
username,
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
desktop ? false,
|
|
|
|
hostname,
|
|
|
|
}:
|
2024-03-18 20:33:28 +00:00
|
|
|
let
|
2024-06-10 08:31:28 +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-06-10 08:31:28 +00:00
|
|
|
in
|
|
|
|
inputs.nixpkgs.lib.nixosSystem {
|
2024-03-18 20:33:28 +00:00
|
|
|
modules = [
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager = {
|
2024-06-10 08:31:28 +00:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit
|
|
|
|
inputs
|
|
|
|
desktop
|
|
|
|
self
|
|
|
|
username
|
|
|
|
;
|
|
|
|
};
|
2024-03-18 20:33:28 +00:00
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2024-09-11 20:44:13 +00:00
|
|
|
users."${username}" = import "${self}/home/${username}";
|
2024-03-18 20:33:28 +00:00
|
|
|
};
|
|
|
|
}
|
2023-08-07 21:27:54 +00:00
|
|
|
|
2024-06-15 11:52:54 +00:00
|
|
|
(import ./modules/awesome.nix {
|
|
|
|
inherit
|
|
|
|
inputs
|
|
|
|
pkgs
|
|
|
|
self
|
|
|
|
username
|
|
|
|
;
|
|
|
|
})
|
2024-07-22 11:00:00 +00:00
|
|
|
(import ./modules/autorandr.nix)
|
|
|
|
(import ./modules/gnome.nix)
|
2024-03-22 23:38:40 +00:00
|
|
|
|
2024-03-18 20:33:28 +00:00
|
|
|
configuration
|
|
|
|
hardwareConfiguration
|
2024-09-21 08:58:08 +00:00
|
|
|
|
2024-09-21 09:22:52 +00:00
|
|
|
# TODO: only for "lemp11".
|
|
|
|
nixos-hardware.nixosModules.common-cpu-intel
|
2024-09-21 12:14:56 +00:00
|
|
|
nixos-hardware.nixosModules.common-gpu-intel
|
2024-09-21 09:22:52 +00:00
|
|
|
nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
nixos-hardware.nixosModules.common-pc-laptop-hdd
|
2024-09-21 08:58:08 +00:00
|
|
|
nixos-hardware.nixosModules.system76
|
2024-03-18 20:33:28 +00:00
|
|
|
];
|
|
|
|
}
|