feat: declarative wallpapers anyone ??
This commit is contained in:
parent
7d0482226c
commit
9b850a4997
8 changed files with 13 additions and 11 deletions
Binary file not shown.
Before Width: | Height: | Size: 774 KiB |
Binary file not shown.
Before Width: | Height: | Size: 308 KiB |
8
flake.lock
generated
8
flake.lock
generated
|
@ -449,11 +449,11 @@
|
||||||
},
|
},
|
||||||
"wallpapers": {
|
"wallpapers": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740422160,
|
"lastModified": 1740607812,
|
||||||
"narHash": "sha256-nHQOBJU/ZXnhHeOIv1InIjCKeFjnHZshGj/BcCdRjnQ=",
|
"narHash": "sha256-QtyujHP3K0bUhW8Yj232/Cpioz86G+gR/zB4ruLSmW0=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "f7857fa316d70847b02dc266099ce2b4eb10f5ea",
|
"rev": "ec895329334e800a4d015321ece15aafa021a9ff",
|
||||||
"revCount": 3,
|
"revCount": 5,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.ccnlc.eu/nydragon/wallpapers.git"
|
"url": "https://git.ccnlc.eu/nydragon/wallpapers.git"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib.my) getExe';
|
inherit (lib.my) getExe getExe';
|
||||||
|
wp = inputs.wallpapers.wallpapers.pastel.nix-flake.path;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
systemd.user.services.swww = {
|
systemd.user.services.swww = {
|
||||||
|
@ -14,9 +15,10 @@ in
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = getExe' pkgs.swww "swww-daemon";
|
ExecStart = "${getExe' pkgs.swww "swww-daemon"} --no-cache";
|
||||||
|
ExecStartPost = "${getExe pkgs.swww} img ${wp} -t none";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
BindPaths = "/run/user /home/${config.home.username}/.cache/swww";
|
BindPaths = "/run/user ${wp}";
|
||||||
TemporaryFileSystem = "/home /run/user /root";
|
TemporaryFileSystem = "/home /run/user /root";
|
||||||
ProtectProc = "noaccess";
|
ProtectProc = "noaccess";
|
||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
|
|
|
@ -34,7 +34,6 @@ mkIf osConfig.programs.hyprland.enable {
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"${config.services.kdeconnect.package}/bin/kdeconnect-indicator"
|
"${config.services.kdeconnect.package}/bin/kdeconnect-indicator"
|
||||||
"${pkgs.keepassxc}/bin/keepassxc"
|
"${pkgs.keepassxc}/bin/keepassxc"
|
||||||
(lib.mkIf config.services.hypridle.enable "${pkgs.hypridle}/bin/hypridle")
|
|
||||||
];
|
];
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
enable = false;
|
enable = false;
|
||||||
settings =
|
settings =
|
||||||
let
|
let
|
||||||
wp = inputs.wallpapers.wallpapers.pastel.nix-flake-pastel.path;
|
wp = inputs.wallpapers.wallpapers.pastel.nix-flake.path;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
ipc = "on";
|
ipc = "on";
|
||||||
|
|
|
@ -18,7 +18,7 @@ lib.mkIf config.services.displayManager.sddm.enable {
|
||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
font = "Noto Sans";
|
font = "Noto Sans";
|
||||||
fontSize = "9";
|
fontSize = "9";
|
||||||
background = inputs.wallpapers.wallpapers.pastel.nix-flake-pastel.path;
|
background = inputs.wallpapers.wallpapers.pastel.nix-flake.path;
|
||||||
loginBackground = true;
|
loginBackground = true;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
Enabled = true;
|
Enabled = true;
|
||||||
};
|
};
|
||||||
GUI = {
|
GUI = {
|
||||||
|
ApplicationTheme = "auto";
|
||||||
ColorPasswords = true;
|
ColorPasswords = true;
|
||||||
MinimizeOnClose = true;
|
MinimizeOnClose = true;
|
||||||
MinimizeOnStartup = true;
|
MinimizeOnStartup = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue