Last active
July 14, 2025 16:58
-
-
Save knoopx/48f4288a6490c175f42462e01006ee72 to your computer and use it in GitHub Desktop.
test niri config without rebuilding os
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nix run --offline path:.#test-niri-config | |
{ | |
inputs = { | |
nixpkgs.url = "nixpkgs/nixpkgs-unstable"; | |
}; | |
outputs = {nixpkgs, ...}: let | |
system = "x86_64-linux"; | |
variable = "example"; | |
pkgs = import nixpkgs {inherit system;}; | |
config = pkgs.writeText "niri.config" '' | |
// ${variable} | |
''; | |
in { | |
packages.${system}.test-niri-config = pkgs.writeShellScriptBin "test-niri-config" '' | |
${pkgs.niri}/bin/niri -c "${config}" | |
''; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment