diff --git a/config/Realtime.nix b/config/Realtime.nix deleted file mode 100644 index 485e784..0000000 --- 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 41e90b6..1dcfe18 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 c78972b..0000000 --- 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 c02d106..a5feff0 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 0000000..457578f --- /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; + } + ]; +}