From d220b58c36cade9dbc4d0f32e0b14e7b9a58e899 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Wed, 18 Jun 2025 17:50:49 +0200 Subject: [PATCH] host-specific hyprlock --- hosts/hurricane/configuration.nix | 5 ++++- hosts/hurricane/hyprlock.nix | 3 +++ hosts/wildfire/configuration.nix | 5 ++++- hosts/wildfire/hyprlock.nix | 3 +++ modules/home/hyprlock.nix | 3 ++- 5 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 hosts/hurricane/hyprlock.nix create mode 100644 hosts/wildfire/hyprlock.nix diff --git a/hosts/hurricane/configuration.nix b/hosts/hurricane/configuration.nix index d486ae3..bbe45ba 100644 --- a/hosts/hurricane/configuration.nix +++ b/hosts/hurricane/configuration.nix @@ -6,7 +6,10 @@ ../../modules/programs.nix ]; # Extend home-manager configuration with host-specific monitor settings - home-manager.users.schulze.imports = [./hyprland-monitors.nix]; + home-manager.users.schulze.imports = [ + ./hyprland-monitors.nix + ./hyprlock.nix + ]; networking.hostName = "hurricane"; diff --git a/hosts/hurricane/hyprlock.nix b/hosts/hurricane/hyprlock.nix new file mode 100644 index 0000000..f681d22 --- /dev/null +++ b/hosts/hurricane/hyprlock.nix @@ -0,0 +1,3 @@ +{ + programs.hyprlock.settings.background.path = "$HOME/git/nixos/modules/home/images/control-panel.png"; +} diff --git a/hosts/wildfire/configuration.nix b/hosts/wildfire/configuration.nix index 9107f69..0c94fbb 100644 --- a/hosts/wildfire/configuration.nix +++ b/hosts/wildfire/configuration.nix @@ -6,7 +6,10 @@ ../../modules/programs.nix ]; # Extend home-manager configuration with host-specific monitor settings - home-manager.users.schulze.imports = [./hyprland-monitors.nix]; + home-manager.users.schulze.imports = [ + ./hyprland-monitors.nix + ./hyprlock.nix + ]; # Encrypted drive boot.initrd.luks.devices."luks-1728f038-43a6-4e0d-b7dd-19a4c1083605".device = "/dev/disk/by-uuid/1728f038-43a6-4e0d-b7dd-19a4c1083605"; diff --git a/hosts/wildfire/hyprlock.nix b/hosts/wildfire/hyprlock.nix new file mode 100644 index 0000000..8843fd8 --- /dev/null +++ b/hosts/wildfire/hyprlock.nix @@ -0,0 +1,3 @@ +{ + programs.hyprlock.settings.background.path = "$HOME/git/nixos/modules/home/images/sky.png"; +} diff --git a/modules/home/hyprlock.nix b/modules/home/hyprlock.nix index 7f6099c..35a3331 100644 --- a/modules/home/hyprlock.nix +++ b/modules/home/hyprlock.nix @@ -5,7 +5,8 @@ in { enable = true; settings = { background = { - path = "$HOME/git/nixos/modules/home/images/sky.png"; + # Background image is set in host specific configuration + #path = "$HOME/git/nixos/modules/home/images/sky.png"; blur_passes = 2; contrast = 1; brightness = 0.5;