diff --git a/flake.lock b/flake.lock index e904a6b..53d18eb 100644 --- a/flake.lock +++ b/flake.lock @@ -144,11 +144,11 @@ ] }, "locked": { - "lastModified": 1752780124, - "narHash": "sha256-5dn97vIYxn6VozKePOQSDxVCsrl38nDdMJXx86KIJH0=", + "lastModified": 1753055804, + "narHash": "sha256-KerePGJYX47ex6OY3CWsid4AltO2gDtQROunYJ0eCEE=", "owner": "nix-community", "repo": "home-manager", - "rev": "c718918222bdb104397762dea67e6b397a7927fe", + "rev": "adf195f021a8cbb0c317f75b52e96c82616526f9", "type": "github" }, "original": { @@ -158,13 +158,71 @@ "type": "github" } }, + "niri": { + "inputs": { + "niri-stable": "niri-stable", + "niri-unstable": "niri-unstable", + "nixpkgs": [ + "nixpkgs" + ], + "nixpkgs-stable": "nixpkgs-stable", + "xwayland-satellite-stable": "xwayland-satellite-stable", + "xwayland-satellite-unstable": "xwayland-satellite-unstable" + }, + "locked": { + "lastModified": 1753132162, + "narHash": "sha256-ycK2rB1kltXcrz5+dpldPngiYMukgaT2atwxhTjkIZQ=", + "owner": "sodiboo", + "repo": "niri-flake", + "rev": "f7cc80e3ad7e34ac523ba401ece49c4151fc19ca", + "type": "github" + }, + "original": { + "owner": "sodiboo", + "repo": "niri-flake", + "type": "github" + } + }, + "niri-stable": { + "flake": false, + "locked": { + "lastModified": 1748151941, + "narHash": "sha256-z4viQZLgC2bIJ3VrzQnR+q2F3gAOEQpU1H5xHtX/2fs=", + "owner": "YaLTeR", + "repo": "niri", + "rev": "8ba57fcf25d2fc9565131684a839d58703f1dae7", + "type": "github" + }, + "original": { + "owner": "YaLTeR", + "ref": "v25.05.1", + "repo": "niri", + "type": "github" + } + }, + "niri-unstable": { + "flake": false, + "locked": { + "lastModified": 1752870529, + "narHash": "sha256-23DJk5EfEDCq7Xy1QELcayG0VxbbWpdQ6t7jbhae1Ok=", + "owner": "YaLTeR", + "repo": "niri", + "rev": "fefc0bc0a71556eb75352e2b611e50eb5d3bf9c2", + "type": "github" + }, + "original": { + "owner": "YaLTeR", + "repo": "niri", + "type": "github" + } + }, "nixos-hardware": { "locked": { - "lastModified": 1752666637, - "narHash": "sha256-P8J72psdc/rWliIvp8jUpoQ6qRDlVzgSDDlgkaXQ0Fw=", + "lastModified": 1753122741, + "narHash": "sha256-nFxE8lk9JvGelxClCmwuJYftbHqwnc01dRN4DVLUroM=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "d1bfa8f6ccfb5c383e1eba609c1eb67ca24ed153", + "rev": "cc66fddc6cb04ab479a1bb062f4d4da27c936a22", "type": "github" }, "original": { @@ -206,6 +264,22 @@ "type": "github" } }, + "nixpkgs-stable": { + "locked": { + "lastModified": 1752866191, + "narHash": "sha256-NV4S2Lf2hYmZQ3Qf4t/YyyBaJNuxLPyjzvDma0zPp/M=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "f01fe91b0108a7aff99c99f2e9abbc45db0adc2a", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-25.05", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs-unstable": { "locked": { "lastModified": 1752950548, @@ -274,6 +348,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "niri": "niri", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "nixpkgs-pin": "nixpkgs-pin", @@ -325,11 +400,11 @@ "tinted-zed": "tinted-zed" }, "locked": { - "lastModified": 1753010600, - "narHash": "sha256-CysacPUVbpw+ozuZm5eC6W1DFBYuy4fT+lfmA23sfAw=", + "lastModified": 1753118965, + "narHash": "sha256-RHZNeVbXnr4rt9Wvbmg8nSpVlYV5QQBSnRIz3jURJQI=", "owner": "nix-community", "repo": "stylix", - "rev": "038afaca5520fe7e7bb75a44d7d0c55b0b789afe", + "rev": "d0951c8aefde767adb8bbc8bf75898a67048f360", "type": "github" }, "original": { @@ -471,6 +546,39 @@ "repo": "treefmt-nix", "type": "github" } + }, + "xwayland-satellite-stable": { + "flake": false, + "locked": { + "lastModified": 1748488455, + "narHash": "sha256-IiLr1alzKFIy5tGGpDlabQbe6LV1c9ABvkH6T5WmyRI=", + "owner": "Supreeeme", + "repo": "xwayland-satellite", + "rev": "3ba30b149f9eb2bbf42cf4758d2158ca8cceef73", + "type": "github" + }, + "original": { + "owner": "Supreeeme", + "ref": "v0.6", + "repo": "xwayland-satellite", + "type": "github" + } + }, + "xwayland-satellite-unstable": { + "flake": false, + "locked": { + "lastModified": 1752338000, + "narHash": "sha256-Fxlp/yKtynug0jyuauAmvZU2SzHCfwlwWf85j+IvQ0U=", + "owner": "Supreeeme", + "repo": "xwayland-satellite", + "rev": "ba78881a68182ce338041846164cbfed0d70935c", + "type": "github" + }, + "original": { + "owner": "Supreeeme", + "repo": "xwayland-satellite", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 3a8a534..27e53b3 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,11 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.home-manager.follows = "home-manager"; }; + + niri = { + url = "github:sodiboo/niri-flake"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = diff --git a/hosts/Swordsmachine/default.nix b/hosts/Swordsmachine/default.nix index 6188275..8b54dce 100644 --- a/hosts/Swordsmachine/default.nix +++ b/hosts/Swordsmachine/default.nix @@ -8,6 +8,7 @@ ../../common/desktop ../../modules/common ../../modules/nixos + ../../modules/nixos/niri.nix inputs.nixos-hardware.nixosModules.dell-xps-15-9570-nvidia ]; diff --git a/modules/nixos/niri.nix b/modules/nixos/niri.nix index 2500eb7..719e703 100644 --- a/modules/nixos/niri.nix +++ b/modules/nixos/niri.nix @@ -1,10 +1,28 @@ -{ config, ... }: +{ inputs, config, ... }: { - programs.niri.enable = true; + imports = [ inputs.niri.nixosModules.niri ]; + + programs.niri = { + enable = true; + settings = { + binds = { + "Mod+Space".action.spawn = [ "rofi" "-show" "drun" ]; + "Print".action.spawn = "spectacle"; + "Mod+Shift+S".action.spawn = [ "spectacle" "-r" ]; + }; + + window-rules = { + bitwarden = { + matches."^Bitwarden".title = true; + block-out-from = "screencast"; + }; + }; + }; + }; environment.systemPackages = with pkgs; [ - fuzzel + rofi-wayland mako waybar xwayland-satellite