Files
system-config/system/hosts/drew-desktop/default.nix

34 lines
744 B
Nix

{ self, nixpkgs, inputs, ... }:
let
system = "x86_64-linux";
# TODO: Fix this so it doesn't warn about wanting readOnlyPkgs
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager
{
home-manager.users.drew = { pkgs, inputs, ... }:
{
imports = [
./drew.nix
];
};
home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = {
inherit inputs;
inherit pkgs;
};
}
];
specialArgs = {
inherit inputs;
inherit pkgs;
};
}