xin/hosts/luna/default.nix

43 lines
867 B
Nix
Raw Normal View History

2023-09-12 08:44:05 -06:00
{ ... }:
let
2022-09-14 14:37:51 -06:00
pubKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIPMaAm4rDxyU975Z54YiNw3itC2fGc3SaE2VaS1fai8 root@box"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILnaC1v+VoVNnK04D32H+euiCyWPXU8nX6w+4UoFfjA3 qbit@plq"
];
2023-09-12 08:44:05 -06:00
userBase = { openssh.authorizedKeys.keys = pubKeys; };
in
{
2022-09-14 14:37:51 -06:00
_module.args.isUnstable = false;
2023-09-12 08:44:05 -06:00
imports = [ ./hardware-configuration.nix ];
2022-09-14 14:37:51 -06:00
2023-09-12 08:44:05 -06:00
boot.loader.grub = {
enable = true;
device = "/dev/sdb";
useOSProber = true;
};
2022-09-14 14:37:51 -06:00
# The moon based shipyard
2023-09-12 08:44:05 -06:00
networking = {
hostName = "luna";
2022-09-14 14:37:51 -06:00
2023-09-12 08:44:05 -06:00
networkmanager.enable = true;
firewall.allowedTCPPorts = [ 22 ];
};
2022-09-14 14:37:51 -06:00
2023-09-12 08:44:05 -06:00
environment.systemPackages = [ ];
2022-09-14 14:37:51 -06:00
users.users.root = userBase;
users.users.qbit = userBase;
services = {
fwupd = {
enable = true;
enableTestRemote = true;
};
};
preDNS.enable = true;
system.stateVersion = "22.05";
}