From e7941cee341350e2b59b33abef99dfc1c36c2ea9 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 20 Aug 2022 00:23:51 +0300 Subject: 2022-08-20 --- configurations/varda/default.nix | 40 +++++++++++++--------------------------- 1 file changed, 13 insertions(+), 27 deletions(-) (limited to 'configurations/varda/default.nix') diff --git a/configurations/varda/default.nix b/configurations/varda/default.nix index b9d84f7..f700df5 100644 --- a/configurations/varda/default.nix +++ b/configurations/varda/default.nix @@ -14,12 +14,13 @@ with lib; { client.enable = true; }; - acme.enable = true; + games.minecraft.server.enable = true; - rss-bridge.enable = true; - radicale.enable = true; + acme.enable = true; }; + systemd.services.minecraft-server.wantedBy = mkForce []; + networking = let interface = "eth0"; in { @@ -51,41 +52,26 @@ with lib; { }; boot = { - loader.grub = { - enable = true; - device = "/dev/sda"; - }; - - initrd = { - luks.devices.nixos = { - device = "/dev/sda2"; - allowDiscards = true; - bypassWorkqueues = true; - }; + loader = { + efi.canTouchEfiVariables = true; - network = { + systemd-boot = { enable = true; - ssh = { - enable = true; - port = head config.services.openssh.ports; - hostKeys = map (k: k.path) config.services.openssh.hostKeys; - authorizedKeys = config.my.openssh.authorizedKeys.keys; - }; + configurationLimit = 10; }; - - availableKernelModules = ["ata_piix" "sd_mod" "sr_mod" "uhci_hcd" "virtio_pci" "virtio_scsi"]; }; + + initrd.availableKernelModules = ["ata_piix" "sd_mod" "sr_mod" "uhci_hcd" "virtio_pci" "virtio_scsi"]; }; fileSystems = { "/boot" = { - device = "LABEL=boot"; - fsType = "xfs"; - options = ["noatime"]; + device = "/dev/disk/by-uuid/03FD-B6C0"; + fsType = "vfat"; }; "/" = { - device = "LABEL=nixos"; + device = "/dev/disk/by-uuid/b07e8273-915a-424c-8c55-cdc2bd482f49"; fsType = "xfs"; options = ["noatime"]; }; -- cgit v1.2.3