feat(linux): Enable hyprpaper on gui

This commit is contained in:
uttarayan21
2024-10-16 02:36:01 +05:30
parent e692bea81f
commit 41f8c0cf83
3 changed files with 45 additions and 3 deletions

38
flake.lock generated
View File

@@ -2121,6 +2121,22 @@
"type": "github"
}
},
"nixpkgs-stable_2": {
"locked": {
"lastModified": 1725762081,
"narHash": "sha256-vNv+aJUW5/YurRy1ocfvs4q/48yVESwlC/yHzjkZSP8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "dc454045f5b5d814e5862a6d057e7bb5c29edc05",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1713995372,
@@ -2659,6 +2675,7 @@
"onepassword-shell-plugins": "onepassword-shell-plugins",
"openapi-tui": "openapi-tui",
"rust-overlay": "rust-overlay_6",
"sops-nix": "sops-nix",
"subflakes": "subflakes",
"zjstatus": "zjstatus"
}
@@ -2813,6 +2830,27 @@
"type": "github"
}
},
"sops-nix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable_2"
},
"locked": {
"lastModified": 1727734513,
"narHash": "sha256-i47LQwoGCVQq4upV2YHV0OudkauHNuFsv306ualB/Sw=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "3198a242e547939c5e659353551b0668ec150268",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "sops-nix",
"type": "github"
}
},
"subflakes": {
"inputs": {
"csshacks": "csshacks",

View File

@@ -96,6 +96,10 @@
url = "github:serokell/deploy-rs";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {

View File

@@ -10,8 +10,8 @@
programs.hyprpaper = let
wallpapers = import ../utils/wallhaven.nix {inherit pkgs;};
in {
# enable = device.hasGui;
enable = false;
enable = device.hasGui;
# enable = true;
systemd.enable = true;
systemd.target = "hyprland-session.target";
settings.preload = wallpapers.all;
@@ -28,7 +28,7 @@
settings = {
source = "${pkgs.catppuccinThemes.hyprland}/themes/mocha.conf";
# "experimental:explicit_sync" = true;
"render:explicit_sync" = true;
monitor = [
# ",preferred,auto,auto"
# ",highrr,auto,1"