summaryrefslogtreecommitdiff
path: root/modules/nixos/machines
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/machines')
-rw-r--r--modules/nixos/machines/109-199-104-83.nix56
1 files changed, 35 insertions, 21 deletions
diff --git a/modules/nixos/machines/109-199-104-83.nix b/modules/nixos/machines/109-199-104-83.nix
index 998001c..e870690 100644
--- a/modules/nixos/machines/109-199-104-83.nix
+++ b/modules/nixos/machines/109-199-104-83.nix
@@ -1,25 +1,39 @@
-# 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")
- ];
+{modulesPath, ...}: {
+ system.stateVersion = "25.11";
+ nix.settings.experimental-features = "flakes nix-command";
- boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
- boot.initrd.kernelModules = [];
- boot.kernelModules = [];
- boot.extraModulePackages = [];
+ # Hardware
+ imports = [(modulesPath + "/profiles/qemu-guest.nix")];
+ fileSystems."/" = {
+ device = "/dev/sda1";
+ fsType = "ext4";
+ };
+ boot.loader.grub.device = "/dev/sda";
+ boot.loader.timeout = 30;
+ boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
+ boot.initrd.kernelModules = ["nvme"];
+ boot.tmp.cleanOnBoot = true;
- swapDevices = [];
+ zramSwap.enable = true;
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
-
- system.stateVersion = "26.05";
+ # Networking
+ networking = {
+ useNetworkd = true;
+ usePredictableInterfaceNames = true;
+ };
+ systemd.network = {
+ enable = true;
+ networks."40-wan" = {
+ matchConfig.Name = "enx0050565f4fff";
+ address = ["2a02:c207:2299:8419::1/64" "109.199.104.83/20"];
+ routes = [
+ {
+ Gateway = "109.199.96.1";
+ GatewayOnLink = true;
+ }
+ {Gateway = "fe80::1";}
+ ];
+ dns = ["2020:fe::10" "9.9.9.10"];
+ };
+ };
}