diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-01-28 12:29:40 +0100 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-01-28 12:29:40 +0100 |
| commit | 790f82e530c7c34b8685ee6a52ddbecf70639c6f (patch) | |
| tree | 51899ea8ecfc90ed145d9bada0c7cb4c452ce3af /modules | |
| parent | a36426ffd6314bd367f042410d81ae9807df2eee (diff) | |
Format and format
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/default.nix | 4 | ||||
| -rw-r--r-- | modules/desktop/akonadi.nix | 13 | ||||
| -rw-r--r-- | modules/desktop/wayland.nix | 1 | ||||
| -rw-r--r-- | modules/desktop/wms/cosmic.nix | 18 |
4 files changed, 19 insertions, 17 deletions
diff --git a/modules/default.nix b/modules/default.nix index 774b40d..9ded08a 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -60,9 +60,9 @@ # options = "--delete-older-than 30d"; # }; zramSwap = { - enable = true; + enable = true; algorithm = "lz4"; - memoryPercent = 50; + memoryPercent = 50; }; systemd.services.nix-daemon.serviceConfig = { MemoryAccounting = true; diff --git a/modules/desktop/akonadi.nix b/modules/desktop/akonadi.nix index 93006b2..d97f859 100644 --- a/modules/desktop/akonadi.nix +++ b/modules/desktop/akonadi.nix @@ -1,8 +1,9 @@ -{pkgs, config, ...}: { +{ ... }: +{ programs.kde-pim = { - enable = true; - kmail = false; - merkuro = false; - kontact = false; - }; + enable = true; + kmail = false; + merkuro = false; + kontact = false; + }; } diff --git a/modules/desktop/wayland.nix b/modules/desktop/wayland.nix index 457a7f0..0a6a0e5 100644 --- a/modules/desktop/wayland.nix +++ b/modules/desktop/wayland.nix @@ -1,5 +1,4 @@ { - pkgs, lib, config, ... diff --git a/modules/desktop/wms/cosmic.nix b/modules/desktop/wms/cosmic.nix index 6f7c29e..d2929f1 100644 --- a/modules/desktop/wms/cosmic.nix +++ b/modules/desktop/wms/cosmic.nix @@ -1,18 +1,20 @@ -{pkgs, config, lib, ... }: let - cfg = config.addons.desktop.cosmic; -in { +{ config, lib, ... }: +let + cfg = config.addons.desktop.cosmic; +in +{ options.addons.desktop.cosmic = { - enable = lib.mkEnableOption "Enable Cosmic WM"; + enable = lib.mkEnableOption "Enable Cosmic WM"; enableScheduler = lib.mkEnableOption "Enable the special scheduler from system76"; - }; + }; config = lib.mkIf cfg.enable ( lib.mkMerge [ (import ../../../utils/makeWm.nix "Cosmic WM" "wayland") { - services.desktopManager.cosmic.enable = true; - services.system76-scheduler.enable = cfg.enableScheduler; + services.desktopManager.cosmic.enable = true; + services.system76-scheduler.enable = cfg.enableScheduler; } ] - ); + ); } |
