From c0d9fc440e2600f643feeb718ecfb46a9ac4af91 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 8 Dec 2024 15:09:10 +0100 Subject: [PATCH] add swap file to wheatley --- .../desktop/package-configs/plasma-desktop.nix | 15 ++++----------- nixos/hosts/wheatley/hardware-configuration.nix | 7 ++++++- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/home-manager/desktop/package-configs/plasma-desktop.nix b/home-manager/desktop/package-configs/plasma-desktop.nix index 930b1ab..9daf7e7 100644 --- a/home-manager/desktop/package-configs/plasma-desktop.nix +++ b/home-manager/desktop/package-configs/plasma-desktop.nix @@ -2,22 +2,15 @@ pkgs, osConfig, ... -}: let - kdeconnect = - pkgs.writeText "config" - '' +}: { + home.file.".config/kdeconnect/config" = { + text = '' [General] keyAlgorithm=EC name=${osConfig.networking.hostName} customDevices=10.0.0.2,10.0.0.3,10.0.0.4,10.0.0.5 - ''; -in { - home.file = { - "config" = { - source = "${kdeconnect}"; - target = "~/.config/kdeconnect/config"; - }; + target = "~/.config/kdeconnect/config"; }; programs.plasma = { diff --git a/nixos/hosts/wheatley/hardware-configuration.nix b/nixos/hosts/wheatley/hardware-configuration.nix index 38546c6..d5b3b54 100644 --- a/nixos/hosts/wheatley/hardware-configuration.nix +++ b/nixos/hosts/wheatley/hardware-configuration.nix @@ -16,7 +16,12 @@ boot.extraModulePackages = []; boot.supportedFilesystems = lib.mkForce ["btrfs" "cifs" "f2fs" "jfs" "ntfs" "reiserfs" "vfat" "xfs"]; - swapDevices = []; + swapDevices = [ + { + device = "/var/lib/swapfile"; + size = 16 * 1024; + } + ]; # 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