lock flake

fix unlocked flake error on new install
This commit is contained in:
2026-03-20 10:23:45 +01:00
parent 01667e2346
commit 9fc14abee9
5 changed files with 35 additions and 9 deletions

View File

@@ -1,8 +1,11 @@
{
inputs,
pkgs,
...
}:
let
images = pkgs.callPackage ../images { };
in
{
imports = [
./cursor.nix
@@ -36,5 +39,5 @@
};
# ── Icon for Lock & Loginscreen ───────────────────────────────────────
xdg.configFile.".face.icon".source = inputs.images + /face.icon;
xdg.configFile.".face.icon".source = "${images.face}";
}

View File

@@ -1,4 +1,4 @@
{ inputs, ... }:
{ pkgs, ... }:
let
variables = {
@@ -12,6 +12,7 @@ let
yellow = "rgb(f9e2af)";
font = "Fira Code";
};
images = pkgs.callPackage ../images { };
in
{
# ── Hyprlock ──────────────────────────────────────────────────────────
@@ -24,7 +25,7 @@ in
background = {
monitor = "";
path = "${inputs.images}/lockpaper.png";
path = "${images.lock}";
blur_passes = 0;
color = variables.base;
};
@@ -69,7 +70,7 @@ in
image = {
monitor = "";
path = "${inputs.images}/face.icon";
path = "${images.face}";
size = 100;
border_color = variables.accent;
position = "0, 75";

View File

@@ -0,0 +1,16 @@
{ ... }:
{
lock = builtins.path {
path = ./lockpaper.png;
name = "lockpaper";
};
face = builtins.path {
path = ./face.icon;
name = "face";
};
background = builtins.path {
path = ./wallpaper.jpeg;
name = "wallpaper";
};
}

View File

@@ -1,9 +1,12 @@
{ inputs, ... }:
{ pkgs, ... }:
let
images = pkgs.callPackage ./images { };
in
{
services.wpaperd = {
enable = true;
settings.any.path = "${inputs.images}/wallpaper.jpeg"; # TODO: change wallpaper / make automatic pull from some website? -> animals and fallback to something if no iternet
settings.any.path = "${images.background}"; # TODO: change wallpaper / make automatic pull from some website? -> animals and fallback to something if no iternet
};
}