diff --git a/hosts/riv-01/default.nix b/hosts/riv-01/default.nix new file mode 100644 index 0000000..c458b98 --- /dev/null +++ b/hosts/riv-01/default.nix @@ -0,0 +1,25 @@ +{ + config, + lib, + pkgs, + pkgsUnstable, + inputs, + ... +}: +{ + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + network-dhcp = { + enable = true; + hardwareAddress = "BC:24:11:07:12:41"; + }; + qemu.enable = true; + spice.enable = true; + + network.enableTSExitNode = true; + + base.userSSHKeys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/EFxDkSa/s0aR5pjIDExlDC5TZaPyE05GpfBzLOVeJ etorres@xenon" + ]; +} diff --git a/hosts/riv-01/hardware-configuration.nix b/hosts/riv-01/hardware-configuration.nix new file mode 100644 index 0000000..da4bf6a --- /dev/null +++ b/hosts/riv-01/hardware-configuration.nix @@ -0,0 +1,59 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ + config, + lib, + pkgs, + modulesPath, + ... +}: + +{ + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ + "uhci_hcd" + "ehci_pci" + "ahci" + "virtio_pci" + "virtio_scsi" + "sd_mod" + "sr_mod" + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/26dab20b-138a-40bc-87ee-75c34cec8aaa"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/225E-EB5F"; + fsType = "vfat"; + options = [ + "fmask=0022" + "dmask=0022" + ]; + }; + + swapDevices = [ + { + device = "/.swapfile"; + size = 1024; + } + ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.ens18.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}