dotfiles/lib/nixos/default.nix
Oliver Davies 5ebe064a28 Simplify nixos-* justfile recipes
Make the hostname configurable for NixOS and remove the need to specify
the profile name when running `nixos-rebuild` commands as the hostname
can be used.
2024-03-19 00:13:01 +00:00

22 lines
595 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;
};
}
configuration
hardwareConfiguration
];
}