diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 12e6f976..182decf1 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -1,6 +1,7 @@ { system-config, lib, ...}: { imports = [ ./hyprpaper.nix + ./hyprlock.nix # ./hyprgrass.nix # ./utils.nix ]; diff --git a/home/hyprland/hyprlock.nix b/home/hyprland/hyprlock.nix new file mode 100644 index 00000000..968f9f98 --- /dev/null +++ b/home/hyprland/hyprlock.nix @@ -0,0 +1,35 @@ +{...}:{ + programs.hyprlock = { + enable = true; + + settings = { + general = { + disable_loading_bar = true; + ignore_empty_input = true; + hide_cursor = true; + }; + + background = [ + { + color = "rgba(25, 20, 20, 1.0)"; + } + ]; + + 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 = '\'Password...'\'; + shadow_passes = 2; + } + ]; + }; + }; +} diff --git a/system/env.nix b/system/env.nix index 80fbcb8d..293161be 100644 --- a/system/env.nix +++ b/system/env.nix @@ -2,6 +2,6 @@ environment.variables = { EDITOR = "hx"; VISUAL = "hx"; - FLAKE = "/persist/data" + conf.home + "/nixos"; + FLAKE = "${conf.home}/nixos"; }; }