config.nix/hosts/marty-server/default.nix

35 lines
524 B
Nix

{
config,
lib,
pkgs,
modulesPath,
home-manager,
inputs,
...
}:
{
networking = {
hostName = "marty-server";
interfaces = {
eno1 = {
wakeOnLan = {
enable = true;
policy = [ "magic" ];
};
};
};
};
home-manager = {
extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users = {
marty = import ./home.nix;
};
};
imports = [ ./hardware.nix ];
virtualisation.docker.enable = true;
}