machines[selene]: add selene config

main
idylls 11 months ago
parent 0b0633cedd
commit b108a22baf
Signed by: idylls
GPG Key ID: 52D7502B0C319049

@ -0,0 +1,5 @@
#!/usr/bin/env sh
host="$1"
rsync -avz . root@"$host":~/config/

@ -18,5 +18,10 @@
system = "x86_64-linux";
user = "idylls";
};
nixosConfigurations.selene = mkhost' "selene" {
system = "x86_64-linux";
user = "null";
};
};
}

@ -0,0 +1,18 @@
{ ... }: {
imports = [
./hardware-configuration.nix
];
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "selene";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG/QDX2Ex5rol7Cxr3paGipIhCBG/T6EsBZfJpwmPrcY Idylls services key''
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "23.05";
}

@ -0,0 +1,9 @@
{ lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/vda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}
Loading…
Cancel
Save