From f0ecc5bdb9f995d4a65e065353261bae9286f553 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Tue, 27 May 2025 22:16:49 +0300 Subject: [PATCH] hosts/morphius: some changes Signed-off-by: unexplrd --- flake.lock | 8 ++++---- hosts/morphius/configuration.nix | 20 +++++++++++--------- hosts/morphius/disko/disk-main.nix | 6 ++++++ 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index 0808251..2f5e005 100644 --- a/flake.lock +++ b/flake.lock @@ -893,11 +893,11 @@ "mysecrets": { "flake": false, "locked": { - "lastModified": 1748354061, - "narHash": "sha256-2m/sZ+AskdRBQzQfiw7kjDFrBHeHIdyKW/pM7uMmSy4=", + "lastModified": 1748355101, + "narHash": "sha256-2UO6Sg7rEJZ21v1gNKc9MGTknjDW35iGPcL78VnaDnw=", "ref": "refs/heads/main", - "rev": "7c65ced56404f49a8d69a051fac04e8789edb97c", - "revCount": 24, + "rev": "21808ec68bcbd97e0d942a1b09f90d0d1862ab77", + "revCount": 25, "type": "git", "url": "ssh://gitea@gitea.linerds.us/unexplrd/nix-secrets" }, diff --git a/hosts/morphius/configuration.nix b/hosts/morphius/configuration.nix index 95d602b..cad935c 100644 --- a/hosts/morphius/configuration.nix +++ b/hosts/morphius/configuration.nix @@ -18,20 +18,24 @@ hostName = "morphius"; }; - boot.loader.systemd-boot.enable = true; + boot.kernelModules = ["i915"]; environment.memoryAllocator.provider = "mimalloc"; system.stateVersion = "25.11"; time.timeZone = "Europe/Kyiv"; - desktop.plasma.enable = true; - # services.greetd.settings.initial_session = { - # user = "user"; - # command = "${pkgs.niri}/bin/niri-session"; - # }; + swapDevices = [ + { + device = "/swap/swapfile"; + size = 8 * 1024; + } + ]; + + desktop.gnome.enable = true; module = { config = { - # laptop.homeRowMods = true; + secureBoot = true; + tpmDiskUnlock = true; powerSave = true; useIwd = true; vaapi = "intel-media-driver"; @@ -44,6 +48,4 @@ locale.ukrainian.enable = true; opentabletdriver.enable = false; - qmk-vial.enable = true; - virtual.libvirt.enable = true; } diff --git a/hosts/morphius/disko/disk-main.nix b/hosts/morphius/disko/disk-main.nix index bb72895..cd67be2 100644 --- a/hosts/morphius/disko/disk-main.nix +++ b/hosts/morphius/disko/disk-main.nix @@ -61,6 +61,12 @@ "noatime" ]; }; + "@swap" = { + mountpoint = "/swap"; + mountOptions = [ + "noatime" + ]; + }; }; }; };