From fc09b88eeff1a4f00f06ee749cae4c69da19d936 Mon Sep 17 00:00:00 2001 From: Lukrecja Date: Mon, 29 Dec 2025 20:44:31 +0100 Subject: [PATCH] replace niri with fork with blur support --- home-manager/flake.lock | 144 +++++++++++++++++++++++++++++++++++++++- home-manager/flake.nix | 7 +- home-manager/home.nix | 2 +- niri/config.kdl | 23 ++++++- 4 files changed, 171 insertions(+), 5 deletions(-) diff --git a/home-manager/flake.lock b/home-manager/flake.lock index 80e56a2..d3193b3 100644 --- a/home-manager/flake.lock +++ b/home-manager/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "advisory-db": { + "flake": false, + "locked": { + "lastModified": 1765196634, + "narHash": "sha256-A6TExffYU4WElf8GW8yaqUFK2P00ES/a/HSqqhIL7pk=", + "owner": "rustsec", + "repo": "advisory-db", + "rev": "6b4a28c7201255e36850fd6e2ca1fbdd8d4f5b4d", + "type": "github" + }, + "original": { + "owner": "rustsec", + "repo": "advisory-db", + "type": "github" + } + }, "base16": { "inputs": { "fromYaml": "fromYaml" @@ -68,6 +84,40 @@ "type": "github" } }, + "crane": { + "locked": { + "lastModified": 1765145449, + "narHash": "sha256-aBVHGWWRzSpfL++LubA0CwOOQ64WNLegrYHwsVuVN7A=", + "owner": "ipetkov", + "repo": "crane", + "rev": "69f538cdce5955fcd47abfed4395dc6d5194c1c5", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, + "fenix": { + "inputs": { + "nixpkgs": "nixpkgs", + "rust-analyzer-src": "rust-analyzer-src" + }, + "locked": { + "lastModified": 1765252472, + "narHash": "sha256-byMt/uMi7DJ8tRniFopDFZMO3leSjGp6GS4zWOFT+uQ=", + "owner": "nix-community", + "repo": "fenix", + "rev": "8456b985f6652e3eef0632ee9992b439735c5544", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "fenix", + "type": "github" + } + }, "firefox-gnome-theme": { "flake": false, "locked": { @@ -160,7 +210,63 @@ "type": "github" } }, + "niri": { + "inputs": { + "advisory-db": "advisory-db", + "crane": "crane", + "fenix": "fenix", + "nixpkgs": [ + "nixpkgs" + ], + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1766845455, + "narHash": "sha256-bluv3NFZcEBfvbS9v7FtSzN2CKgaY/Umg5Z0+QUJCXg=", + "owner": "Naxdy", + "repo": "niri", + "rev": "511021c725dd03843527c0cd8766bcba9cd9e532", + "type": "github" + }, + "original": { + "owner": "Naxdy", + "repo": "niri", + "type": "github" + } + }, "nixpkgs": { + "locked": { + "lastModified": 1764950072, + "narHash": "sha256-BmPWzogsG2GsXZtlT+MTcAWeDK5hkbGRZTeZNW42fwA=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "f61125a668a320878494449750330ca58b78c557", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1761236834, + "narHash": "sha256-+pthv6hrL5VLW2UqPdISGuLiUZ6SnAXdd2DdUE+fV2Q=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "d5faa84122bc0a1fd5d378492efce4e289f8eac1", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1766651565, "narHash": "sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU=", @@ -244,13 +350,31 @@ "root": { "inputs": { "home-manager": "home-manager", - "nixpkgs": "nixpkgs", + "niri": "niri", + "nixpkgs": "nixpkgs_3", "noctalia": "noctalia", "quickshell": "quickshell", "rust-overlay": "rust-overlay", "stylix": "stylix" } }, + "rust-analyzer-src": { + "flake": false, + "locked": { + "lastModified": 1765120009, + "narHash": "sha256-nG76b87rkaDzibWbnB5bYDm6a52b78A+fpm+03pqYIw=", + "owner": "rust-lang", + "repo": "rust-analyzer", + "rev": "5e3e9c4e61bba8a5e72134b9ffefbef8f531d008", + "type": "github" + }, + "original": { + "owner": "rust-lang", + "ref": "nightly", + "repo": "rust-analyzer", + "type": "github" + } + }, "rust-overlay": { "inputs": { "nixpkgs": [ @@ -400,6 +524,24 @@ "repo": "base16-zed", "type": "github" } + }, + "treefmt-nix": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1762938485, + "narHash": "sha256-AlEObg0syDl+Spi4LsZIBrjw+snSVU4T8MOeuZJUJjM=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "5b4ee75aeefd1e2d5a1cc43cf6ba65eba75e83e4", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } } }, "root": "root", diff --git a/home-manager/flake.nix b/home-manager/flake.nix index d951398..e7401af 100644 --- a/home-manager/flake.nix +++ b/home-manager/flake.nix @@ -28,9 +28,14 @@ url = "github:nix-community/stylix"; inputs.nixpkgs.follows = "nixpkgs"; }; + + niri = { + url = "github:Naxdy/niri"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = { nixpkgs, home-manager, rust-overlay, stylix, ... }@inputs: { + outputs = { nixpkgs, home-manager, rust-overlay, stylix, niri, ... }@inputs: { homeConfigurations.lusia = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; diff --git a/home-manager/home.nix b/home-manager/home.nix index c29ce36..2042442 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -9,7 +9,7 @@ home.packages = with pkgs; [ # Window manager & desktop environment - niri + inputs.niri.packages.${pkgs.system}.niri swayidle swww kanshi diff --git a/niri/config.kdl b/niri/config.kdl index 5d1438d..c9da7b3 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -1,4 +1,9 @@ layout { + blur { + noise 0.1 + passes 3 + radius 6 + } gaps 5 background-color "transparent" always-center-single-column @@ -13,7 +18,7 @@ layout { default-column-width { proportion 0.5; } focus-ring { - // off + off width 1 active-color "#ffffff33" } @@ -107,11 +112,25 @@ window-rule { window-rule { match app-id="kitty" opacity 0.9 + blur { + on + } } window-rule { match app-id="code" opacity 0.9 + blur { + on + } +} + +window-rule { + match app-id="org.gnome.Nautilus" + opacity 0.9 + blur { + on + } } layer-rule { @@ -243,7 +262,7 @@ binds { Mod+F { maximize-column; } Mod+Shift+F { fullscreen-window; } Mod+C { center-column; } - Mod+W { toggle-column-tabbed-display; } + // Mod+W { toggle-column-tabbed-display; } Mod+Minus { set-column-width "-10%"; } Mod+Equal { set-column-width "+10%"; }