From 82d8a3c7148885cb1a0179ebad8710b51b25c45f Mon Sep 17 00:00:00 2001 From: oqyude Date: Wed, 23 Jul 2025 22:55:03 +0300 Subject: [PATCH] 123 --- devices/disko/vds.nix | 22 +++++++++---------- devices/hardware/vds.nix | 44 ++++++++++---------------------------- modules/essentials/tty.nix | 2 ++ 3 files changed, 24 insertions(+), 44 deletions(-) diff --git a/devices/disko/vds.nix b/devices/disko/vds.nix index 6288274..7ce8e7c 100644 --- a/devices/disko/vds.nix +++ b/devices/disko/vds.nix @@ -11,16 +11,16 @@ type = "EF02"; size = "1M"; }; - ESP = { - size = "500M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ "umask=0077" ]; - }; - }; + # ESP = { + # size = "500M"; + # type = "EF00"; + # content = { + # type = "filesystem"; + # format = "vfat"; + # mountpoint = "/boot"; + # mountOptions = [ "umask=0077" ]; + # }; + # }; root = { size = "100%"; content = { @@ -30,7 +30,7 @@ }; }; swap = { - size = "2G"; + size = "256M"; content = { type = "swap"; }; diff --git a/devices/hardware/vds.nix b/devices/hardware/vds.nix index ba4f5ac..cf4a570 100755 --- a/devices/hardware/vds.nix +++ b/devices/hardware/vds.nix @@ -10,46 +10,24 @@ (modulesPath + "/installer/scan/not-detected.nix") ]; - # boot = { - # initrd = { - # availableKernelModules = [ - # "ahci" - # "xhci_pci" - # "usbhid" - # "usb_storage" - # "sd_mod" - # "sdhci_pci" - # ]; - # }; - # kernel = { - # sysctl = { - # "fs.inotify.max_user_watches" = "204800"; - # }; - # }; - # kernelModules = [ - # "kvm-intel" - # "coretemp" - # ]; - # }; - fileSystems = { "/" = { device = lib.mkForce "/dev/disk/by-partlabel/disk-main-root"; # "/dev/disk/by-partlabel/disk-main-root"; fsType = "ext4"; }; - "/boot" = { - device = lib.mkForce "/dev/disk/by-partlabel/disk-main-ESP"; - fsType = "vfat"; - options = [ - "fmask=0022" - "dmask=0022" - ]; - }; + # "/boot" = { + # device = lib.mkForce "/dev/disk/by-partlabel/disk-main-ESP"; + # fsType = "vfat"; + # options = [ + # "fmask=0022" + # "dmask=0022" + # ]; + # }; }; - # swapDevices = [ - # { device = "/dev/disk/by-partlabel/disk-main-swap"; } - # ]; + swapDevices = [ + { device = "/dev/disk/by-partlabel/disk-main-swap"; } + ]; # 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 diff --git a/modules/essentials/tty.nix b/modules/essentials/tty.nix index 9e6ab90..0bf60b7 100755 --- a/modules/essentials/tty.nix +++ b/modules/essentials/tty.nix @@ -28,6 +28,8 @@ s-1t = "ssh sapphira-1t"; o-1 = "ssh otreca-1"; o-1t = "ssh otreca-1t"; + o-0 = "ssh otreca-0"; + o-0t = "ssh otreca-0t"; # Somethings reboot-bios = "sudo systemctl reboot --firmware-setup";