dotfiles/lib/nixos/default.nix

26 lines
694 B
Nix

{ inputs, self, username }:
{ desktop ? false, hostname }:
let
configuration =
import ./configuration.nix { inherit 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 ./home-manager;
};
}
(import ./modules/gnome.nix)
(import ./modules/sway.nix { inherit inputs username; })
configuration
hardwareConfiguration
];
}