diff options
-rw-r--r-- | home-manager/stvnliu/home.nix | 38 | ||||
-rw-r--r-- | home-manager/stvnliu/hypr/default.nix | 9 | ||||
-rw-r--r-- | home-manager/stvnliu/hypr/hypridle.nix | 22 | ||||
-rw-r--r-- | home-manager/stvnliu/hypr/hyprland.nix (renamed from home-manager/stvnliu/hyprland.nix) | 0 | ||||
-rw-r--r-- | home-manager/stvnliu/hypr/hyprlock.nix | 39 | ||||
-rw-r--r-- | home-manager/stvnliu/hypr/hyprpaper.nix (renamed from home-manager/stvnliu/hyprpaper.nix) | 0 | ||||
-rw-r--r-- | nixos/configuration.nix | 3 |
7 files changed, 92 insertions, 19 deletions
diff --git a/home-manager/stvnliu/home.nix b/home-manager/stvnliu/home.nix index b902af1..47dc46b 100644 --- a/home-manager/stvnliu/home.nix +++ b/home-manager/stvnliu/home.nix @@ -14,9 +14,8 @@ # inputs.nix-colors.homeManagerModule # You can also split up your configuration and import pieces of it here: - #./swaywm.nix - ./hyprland.nix - ./hyprpaper.nix +#./swaywm.nix + ./hypr ./shells ./variables.nix ]; @@ -53,8 +52,9 @@ programs.neovim.enable = true; home.packages = with pkgs; [ protonvpn-gui - devenv + devenv ]; + programs.home-manager.enable = true; programs.git = { enable = true; @@ -69,25 +69,25 @@ profiles = { undocked = { outputs = [ - { - criteria = "eDP-1"; - scale = 1.0; - status = "enable"; - } + { + criteria = "eDP-1"; + scale = 1.0; + status = "enable"; + } ]; }; docked = { outputs = [ - { - criteria = "HDMI-A-1"; - position = "0,0"; - mode = "1920x1080@60Hz"; - } - { - criteria = "eDP-1"; - position = "0,0"; - status = "enable"; - } + { + criteria = "HDMI-A-1"; + position = "0,0"; + mode = "1920x1080@60Hz"; + } + { + criteria = "eDP-1"; + position = "0,0"; + status = "enable"; + } ]; }; }; diff --git a/home-manager/stvnliu/hypr/default.nix b/home-manager/stvnliu/hypr/default.nix new file mode 100644 index 0000000..9498742 --- /dev/null +++ b/home-manager/stvnliu/hypr/default.nix @@ -0,0 +1,9 @@ +{pkgs, config, lib, ...}: +{ + imports = [ + ./hyprland.nix + ./hyprpaper.nix + ./hypridle.nix + ./hyprlock.nix + ]; +} diff --git a/home-manager/stvnliu/hypr/hypridle.nix b/home-manager/stvnliu/hypr/hypridle.nix new file mode 100644 index 0000000..4f5b8ae --- /dev/null +++ b/home-manager/stvnliu/hypr/hypridle.nix @@ -0,0 +1,22 @@ +{pkgs, ...}: +let + timeoutSeconds = 60; +in +{ + services.hypridle = { + enable = true; + settings = { + general = { + after_sleep_cmd = "hyprctl dispatch dpms on"; + ignore_dbus_inhibit = false; + lock_cmd = "hyprlock"; + }; + listener = [ + { + timeout = timeoutSeconds; + on-timeout = "hyprlock"; + } + ]; + }; + }; +} diff --git a/home-manager/stvnliu/hyprland.nix b/home-manager/stvnliu/hypr/hyprland.nix index fc6ff43..fc6ff43 100644 --- a/home-manager/stvnliu/hyprland.nix +++ b/home-manager/stvnliu/hypr/hyprland.nix diff --git a/home-manager/stvnliu/hypr/hyprlock.nix b/home-manager/stvnliu/hypr/hyprlock.nix new file mode 100644 index 0000000..48df630 --- /dev/null +++ b/home-manager/stvnliu/hypr/hyprlock.nix @@ -0,0 +1,39 @@ +{pkgs, config, lib, ...}: +{ + programs.hyprlock = { + enable = true; + settings = { + general = { + disable_loading_bar = true; + grace = 10; + hide_cursor = true; + no_fade_in = false; + }; + + background = [ + { + path = "screenshot"; + blur_passes = 3; + blur_size = 8; + } + ]; + + input-field = [ + { + size = "200, 50"; + position = "0, -80"; + monitor = ""; + dots_center = true; + fade_on_empty = false; + font_color = "rgb(202, 211, 245)"; + inner_color = "rgb(91, 96, 120)"; + outer_color = "rgb(24, 25, 38)"; + outline_thickness = 5; + #placeholder_text = '\'<span foreground="##cad3f5">Password...</span>'\'; + shadow_passes = 2; + } + ]; + + }; + }; +} diff --git a/home-manager/stvnliu/hyprpaper.nix b/home-manager/stvnliu/hypr/hyprpaper.nix index 244f4d5..244f4d5 100644 --- a/home-manager/stvnliu/hyprpaper.nix +++ b/home-manager/stvnliu/hypr/hyprpaper.nix diff --git a/nixos/configuration.nix b/nixos/configuration.nix index cbb8bc4..1dc4bdf 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -16,6 +16,9 @@ ./services/laptop.preset.nix ./hardware-configuration.nix ]; + + security.pam.services.hyprlock = {}; + boot.loader = { efi.canTouchEfiVariables = true; grub = { |