added niri support

Signed-off-by: elwrcl <[email protected]>
This commit is contained in:
elwrcl committed 2026-04-19 17:15:15 +03:00
1 parent 5a916ab018
commit 95b437970e
3 files changed
+7 -4

No files matched your search

+3 -2
View File
@@ -36,11 +36,12 @@
}: }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
compositor = "niri";
in in
{ {
nixosConfigurations = { nixosConfigurations = {
copland = nixpkgs.lib.nixosSystem { copland = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system; }; specialArgs = { inherit inputs system compositor; };
modules = [ modules = [
{ nixpkgs.hostPlatform = system; } { nixpkgs.hostPlatform = system; }
@@ -57,7 +58,7 @@
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = { inherit inputs system; }; extraSpecialArgs = { inherit inputs system compositor; };
users.elars = import ./home; users.elars = import ./home;
}; };
} }
+2 -1
View File
@@ -2,11 +2,12 @@
pkgs, pkgs,
inputs, inputs,
system, system,
compositor,
... ...
}: }:
{ {
imports = [ ./hyprland.nix ]; imports = [ (if compositor == "niri" then ./niri.nix else ./hyprland.nix) ];
home.username = "elars"; home.username = "elars";
home.homeDirectory = "/home/elars"; home.homeDirectory = "/home/elars";
+2 -1
View File
@@ -1,10 +1,11 @@
{ ... }: { compositor, ... }:
{ {
imports = [ imports = [
./display ./display
./window-managers ./window-managers
./audio ./audio
(if compositor == "niri" then ./niri.nix else ./hyprland.nix)
]; ];
xdg.mime = { xdg.mime = {