dotfiles/lib/nixos/default.nix

56 lines
927 B
Nix
Raw Normal View History

{
inputs,
2024-06-15 11:52:54 +00:00
pkgs,
self,
username,
}:
{
desktop ? false,
hostname,
}:
2024-03-18 20:33:28 +00:00
let
configuration = import ./configuration.nix {
inherit
desktop
hostname
inputs
self
;
};
2024-02-29 08:26:04 +00:00
hardwareConfiguration = import ./hardware-configuration.nix;
in
inputs.nixpkgs.lib.nixosSystem {
2024-03-18 20:33:28 +00:00
modules = [
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
extraSpecialArgs = {
inherit
inputs
desktop
self
username
;
};
2024-03-18 20:33:28 +00:00
useGlobalPkgs = true;
useUserPackages = true;
users."${username}" = import ./home-manager;
};
}
2024-06-15 11:52:54 +00:00
(import ./modules/awesome.nix {
inherit
inputs
pkgs
self
username
;
})
(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
];
}