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" "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": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1713995372, "lastModified": 1713995372,
@@ -2659,6 +2675,7 @@
"onepassword-shell-plugins": "onepassword-shell-plugins", "onepassword-shell-plugins": "onepassword-shell-plugins",
"openapi-tui": "openapi-tui", "openapi-tui": "openapi-tui",
"rust-overlay": "rust-overlay_6", "rust-overlay": "rust-overlay_6",
"sops-nix": "sops-nix",
"subflakes": "subflakes", "subflakes": "subflakes",
"zjstatus": "zjstatus" "zjstatus": "zjstatus"
} }
@@ -2813,6 +2830,27 @@
"type": "github" "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": { "subflakes": {
"inputs": { "inputs": {
"csshacks": "csshacks", "csshacks": "csshacks",

View File

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

View File

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