From 54d7764771fdd2cd005d0e475b4b1314471b90c3 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 9 Dec 2024 23:05:38 +0300 Subject: [PATCH] Wallpaper: Snowman. --- config/Realtime.nix | 17 ----------------- config/Sway.nix | 1 - option/Realtime.nix | 6 ------ option/Wallpaper.nix | 4 ++-- system/Pam.nix | 16 ++++++++++++++++ 5 files changed, 18 insertions(+), 26 deletions(-) delete mode 100644 config/Realtime.nix delete mode 100644 option/Realtime.nix create mode 100644 system/Pam.nix diff --git a/config/Realtime.nix b/config/Realtime.nix deleted file mode 100644 index 485e7849..00000000 --- a/config/Realtime.nix +++ /dev/null @@ -1,17 +0,0 @@ -# Improve DE performance. -{ - lib, - config, - ... -}: let - cfg = config.module.realtime; -in { - config = lib.mkIf cfg.enable { - security.pam.loginLimits = [{ - domain = "@users"; - item = "rtprio"; - type = "-"; - value = 1; - }]; - }; -} diff --git a/config/Sway.nix b/config/Sway.nix index 41e90b6a..1dcfe18a 100644 --- a/config/Sway.nix +++ b/config/Sway.nix @@ -13,7 +13,6 @@ in { bluetooth.enable = true; brightness.enable = true; portal.enable = true; - realtime.enable = true; sound.enable = true; waybar.enable = true; wayland.enable = true; diff --git a/option/Realtime.nix b/option/Realtime.nix deleted file mode 100644 index c78972b3..00000000 --- a/option/Realtime.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - lib, - ... -}: { - options.module.realtime.enable = lib.mkEnableOption "the realtime access."; -} diff --git a/option/Wallpaper.nix b/option/Wallpaper.nix index c02d1063..a5feff04 100644 --- a/option/Wallpaper.nix +++ b/option/Wallpaper.nix @@ -4,8 +4,8 @@ lib, ... }: let - url = "https://images.unsplash.com/photo-1482517967863-00e15c9b44be?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&dl=chad-madden-SUTfFCAHV_A-unsplash.jpg"; - sha256 = "sha256-3T8Spa+gsemiyDcqBQCwZfWU1MWzu2AhPDF4wyeXxcQ="; + url = "https://i.imgur.com/SNEPYVe.jpeg"; + sha256 = "sha256-cOddztn8w3lJrfMINWQnplacV8eubsatTz73oTMo2bk="; forceContrastText = false; in { options.module.wallpaper = { diff --git a/system/Pam.nix b/system/Pam.nix new file mode 100644 index 00000000..457578fa --- /dev/null +++ b/system/Pam.nix @@ -0,0 +1,16 @@ +{ ... }: { + security.pam.loginLimits = [ + { + domain = "*"; + item = "nofile"; + type = "soft"; + value = "99999"; + } + { + domain = "@users"; + item = "rtprio"; + type = "-"; + value = 1; + } + ]; +}