added niri/noctalia

This commit is contained in:
John Lancaster
2026-03-25 22:09:25 -05:00
parent 2ca7dcc464
commit 2c8e7e3b63
5 changed files with 78 additions and 1 deletions
Generated
+36 -1
View File
@@ -152,6 +152,22 @@
"url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1773840656,
"narHash": "sha256-9tpvMGFteZnd3gRQZFlRCohVpqooygFuy9yjuyRL2C0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9cf7092bdd603554bd8b63c216e8943cf9b12512",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-file": "flake-file",
@@ -164,7 +180,8 @@
"nixpkgs-lib": [
"nixpkgs"
],
"sops-nix": "sops-nix"
"sops-nix": "sops-nix",
"wrapper-modules": "wrapper-modules"
}
},
"sops-nix": {
@@ -201,6 +218,24 @@
"repo": "default",
"type": "github"
}
},
"wrapper-modules": {
"inputs": {
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1774400689,
"narHash": "sha256-hHABVYL0rxhVIzc7hZEpvE0eiCKPnevte73Tn6FRolo=",
"owner": "BirdeeHub",
"repo": "nix-wrapper-modules",
"rev": "54645978682ff99594a1d1666dde6fac6a8134f2",
"type": "github"
},
"original": {
"owner": "BirdeeHub",
"repo": "nix-wrapper-modules",
"type": "github"
}
}
},
"root": "root",
+1
View File
@@ -25,5 +25,6 @@
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
wrapper-modules.url = "github:BirdeeHub/nix-wrapper-modules";
};
}
+1
View File
@@ -11,6 +11,7 @@
"${inputs.nixos-hardware}/lenovo/thinkpad/p14s"
"${inputs.nixos-hardware}/lenovo/thinkpad/p14s/amd/gen4"
self.modules.nixos.p14sConfiguration
self.modules.nixos.niri
];
};
}
+32
View File
@@ -0,0 +1,32 @@
{ self, inputs, ... }: {
flake-file.inputs = {
wrapper-modules.url = "github:BirdeeHub/nix-wrapper-modules";
wrapper-modules.follows = "nixpkgs";
};
flake.modules.nixos.niri = { pkgs, lib, ... }: {
programs.niri = {
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.myNiri;
};
};
perSystem = { pkgs, lib, self', ... }: {
packages.myNiri = inputs.wrapper-modules.wrappers.niri.wrap {
inherit pkgs;
settings = {
spawn-at-startup = [
{ command = [ (lib.getExe self'.packages.myNoctalia) ]; }
];
xwayland-satellite.path = lib.getExe pkgs.xwayland-satellite;
input.keyboard.xkb.layout = "us,ua";
layout.gaps = 5;
binds = {
"Mod+Return".spawn-sh = lib.getExe pkgs.ghostty;
"Mod+Q".close-window = null;
"Mod+S".spawn-sh = "${lib.getExe self'.packages.myNoctalia} ipc call launcher toggle";
};
};
};
};
}
+8
View File
@@ -0,0 +1,8 @@
{ self, inputs, ... }: {
perSystem = { pkgs, ... }: {
packages.myNoctalia = inputs.wrapper-modules.wrappers.noctalia-shell.wrap {
inherit pkgs;
# settings = (builtins.fromJSON (builtins.readFile ./noctalia.json)).settings;
};
};
}