Oliver Davies
4f9073757c
Add overlays for additions, modifications and unstable packages, and move each additional plugin into its own additional package.
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
inputs,
|
|
outputs,
|
|
nixos-hardware,
|
|
pkgs,
|
|
self,
|
|
username,
|
|
}:
|
|
{
|
|
desktop ? false,
|
|
hostname,
|
|
}:
|
|
let
|
|
configuration = import ./configuration.nix {
|
|
inherit
|
|
outputs
|
|
desktop
|
|
hostname
|
|
inputs
|
|
self
|
|
;
|
|
};
|
|
hardwareConfiguration = import ./hardware-configuration.nix;
|
|
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 "${self}/home/${username}";
|
|
};
|
|
}
|
|
|
|
(import ./modules/awesome.nix {
|
|
inherit
|
|
inputs
|
|
pkgs
|
|
self
|
|
username
|
|
;
|
|
})
|
|
(import ./modules/autorandr.nix)
|
|
(import ./modules/gnome.nix)
|
|
|
|
configuration
|
|
hardwareConfiguration
|
|
|
|
# TODO: only for "lemp11".
|
|
nixos-hardware.nixosModules.common-cpu-intel
|
|
nixos-hardware.nixosModules.common-gpu-intel
|
|
nixos-hardware.nixosModules.common-pc-laptop
|
|
nixos-hardware.nixosModules.common-pc-laptop-hdd
|
|
nixos-hardware.nixosModules.system76
|
|
];
|
|
}
|