diff --git a/configuration/main/configuration.nix b/configuration/main/configuration.nix index e7edae5..682efd8 100644 --- a/configuration/main/configuration.nix +++ b/configuration/main/configuration.nix @@ -24,22 +24,6 @@ ../modules/locale.nix ]; - nixpkgs.config.packageOverrides = pkgs: { - niri = pkgs.niri.overrideAttrs (old: { - nativeBuildInputs = (old.nativeBuildInputs or []) ++ [pkgs.makeWrapper]; - postFixup = - (old.postFixup or "") - + '' - wrapProgram $out/bin/niri \ - --prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath [ - pkgs.xorg.libXcursor - pkgs.xorg.libX11 - pkgs.xorg.libXi - ]}" - ''; - }); - }; - programs.niri.enable = true; nix.settings.experimental-features = ["nix-command" "flakes"]; diff --git a/flake.lock b/flake.lock index e67c90b..3cf5068 100644 --- a/flake.lock +++ b/flake.lock @@ -44,11 +44,11 @@ ] }, "locked": { - "lastModified": 1766850854, - "narHash": "sha256-asWZx7X5FRrna8ntfE0+vTBUIPLth8R8bckbOpfT3Us=", + "lastModified": 1768598210, + "narHash": "sha256-kkgA32s/f4jaa4UG+2f8C225Qvclxnqs76mf8zvTVPg=", "owner": "nix-community", "repo": "home-manager", - "rev": "2d36a6de2fee5cd232b0a28137d95541c21eb7f0", + "rev": "c47b2cc64a629f8e075de52e4742de688f930dc6", "type": "github" }, "original": { @@ -90,13 +90,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": 1768601625, + "narHash": "sha256-tQ+QHQ95BPSldBEU5SyxSW13yO3XRp87z+QPZmKUy+k=", + "owner": "sodiboo", + "repo": "niri-flake", + "rev": "395c7aef5c8fcc39cfe8bbf235298be291d1325e", + "type": "github" + }, + "original": { + "owner": "sodiboo", + "repo": "niri-flake", + "type": "github" + } + }, + "niri-stable": { + "flake": false, + "locked": { + "lastModified": 1756556321, + "narHash": "sha256-RLD89dfjN0RVO86C/Mot0T7aduCygPGaYbog566F0Qo=", + "owner": "YaLTeR", + "repo": "niri", + "rev": "01be0e65f4eb91a9cd624ac0b76aaeab765c7294", + "type": "github" + }, + "original": { + "owner": "YaLTeR", + "ref": "v25.08", + "repo": "niri", + "type": "github" + } + }, + "niri-unstable": { + "flake": false, + "locked": { + "lastModified": 1768487377, + "narHash": "sha256-+WOpoDSvYJds8zCMlwDHKBivxSViM5n1J1Jo9Lcf19Y=", + "owner": "YaLTeR", + "repo": "niri", + "rev": "87e2dd0361172a48cb3ac8e5b3f6f701c758700d", + "type": "github" + }, + "original": { + "owner": "YaLTeR", + "repo": "niri", + "type": "github" + } + }, "nixpkgs": { "locked": { - "lastModified": 1766651565, - "narHash": "sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU=", + "lastModified": 1768564909, + "narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "3e2499d5539c16d0d173ba53552a4ff8547f4539", + "rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f", "type": "github" }, "original": { @@ -106,6 +164,22 @@ "type": "github" } }, + "nixpkgs-stable": { + "locked": { + "lastModified": 1768323494, + "narHash": "sha256-yBXJLE6WCtrGo7LKiB6NOt6nisBEEkguC/lq/rP3zRQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "2c3e5ec5df46d3aeee2a1da0bfedd74e21f4bf3a", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-25.11", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1764242076, @@ -151,6 +225,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "niri": "niri", "nixpkgs": "nixpkgs", "nvf": "nvf" } @@ -169,6 +244,39 @@ "repo": "default", "type": "github" } + }, + "xwayland-satellite-stable": { + "flake": false, + "locked": { + "lastModified": 1755491097, + "narHash": "sha256-m+9tUfsmBeF2Gn4HWa6vSITZ4Gz1eA1F5Kh62B0N4oE=", + "owner": "Supreeeme", + "repo": "xwayland-satellite", + "rev": "388d291e82ffbc73be18169d39470f340707edaa", + "type": "github" + }, + "original": { + "owner": "Supreeeme", + "ref": "v0.7", + "repo": "xwayland-satellite", + "type": "github" + } + }, + "xwayland-satellite-unstable": { + "flake": false, + "locked": { + "lastModified": 1768106915, + "narHash": "sha256-HlLo9zH4ULRXlmlIK948cHmdVhxyHgTHxGaoCRlW4k8=", + "owner": "Supreeeme", + "repo": "xwayland-satellite", + "rev": "72245e108f3b03c3c4474d2de9de2d1830849603", + "type": "github" + }, + "original": { + "owner": "Supreeeme", + "repo": "xwayland-satellite", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 81f7376..d296510 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + niri = { + url = "github:sodiboo/niri-flake"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -18,6 +23,7 @@ outputs = inputs @ { self, nixpkgs, + niri, home-manager, ... }: { @@ -29,6 +35,8 @@ modules = [ ./configuration/main/configuration.nix + niri.nixosModules.niri + home-manager.nixosModules.default {