From 41f8c0cf83647f34d8d83959e46e66e3e18e9799 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Wed, 16 Oct 2024 02:36:01 +0530 Subject: [PATCH] feat(linux): Enable hyprpaper on gui --- flake.lock | 38 ++++++++++++++++++++++++++++++++++++++ flake.nix | 4 ++++ linux/hyprland.nix | 6 +++--- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 42b5b2ed..687c9be5 100644 --- a/flake.lock +++ b/flake.lock @@ -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", diff --git a/flake.nix b/flake.nix index b16978d7..a4d61660 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = { diff --git a/linux/hyprland.nix b/linux/hyprland.nix index 5a3699d7..f375bd79 100644 --- a/linux/hyprland.nix +++ b/linux/hyprland.nix @@ -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"