diff --git a/nixos/boxes/thinky/default.nix b/nixos/boxes/thinky/default.nix index 601004b5..8710af32 100644 --- a/nixos/boxes/thinky/default.nix +++ b/nixos/boxes/thinky/default.nix @@ -19,6 +19,11 @@ time.timeZone = "Europe/Warsaw"; services.thermald.enable = true; + zramSwap = { + enable = true; + algorithm = "zstd"; + memoryPercent = 50; + }; fonts.fontconfig.enable = true; home-manager.users.cyryl = {...}: { imports = [ diff --git a/nixos/boxes/thinky/hardware-configuration.nix b/nixos/boxes/thinky/hardware-configuration.nix index 2a48ddd9..53951e48 100644 --- a/nixos/boxes/thinky/hardware-configuration.nix +++ b/nixos/boxes/thinky/hardware-configuration.nix @@ -8,25 +8,25 @@ availableKernelModules = [ "ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod" ]; }; - loader.grub.enable = true; - loader.grub.version = 2; - loader.grub.device = "/dev/sda"; + loader.grub.enable = true; + loader.grub.version = 2; + loader.grub.device = "/dev/sda"; }; - fileSystems."/" = - { device = "/dev/disk/by-uuid/87ea2035-a966-4a06-8b66-e4ac366c3cb9"; - fsType = "btrfs"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/87ea2035-a966-4a06-8b66-e4ac366c3cb9"; + fsType = "btrfs"; + }; boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/8d51b38a-5d90-4a7a-a86a-0d57648fd82d"; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/195b3f15-885e-4123-879f-6e4591a58317"; - fsType = "ext2"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/195b3f15-885e-4123-879f-6e4591a58317"; + fsType = "ext2"; + }; swapDevices = [ ]; nix.maxJobs = 2; - nix.buildCores = 6; + nix.buildCores = 2; } diff --git a/nixos/boxes/thinky/thinky.nix b/nixos/boxes/thinky/thinky.nix deleted file mode 100644 index ab172c9b..00000000 --- a/nixos/boxes/thinky/thinky.nix +++ /dev/null @@ -1,24 +0,0 @@ - -{ config, pkgs, ... }: -{ - networking.hostName = "thinky"; - boot = { - kernelPackages = pkgs.linuxPackages_latest_hardened; - initrd.luks.devices."crypt"= - { - device = "/dev/disk/by-uuid/962caed1-9dd5-4771-9a8f-3d3f5854af2e"; - preLVM = true; - allowDiscards = true; - }; - loader.grub = { - device = "/dev/sda"; - }; - }; - time.timeZone = "Europe/Warsaw"; - imports = [ - /etc/nixos/hardware-configuration.nix - ../../boot.nix - ../../common.nix - ../../gfx-intel.nix - ]; - }