Skip to content

Commit c7ea40e

Browse files
committed
Add niri
1 parent 115bd19 commit c7ea40e

5 files changed

Lines changed: 361 additions & 15 deletions

File tree

flake.lock

Lines changed: 179 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
nixos-hardware.url = "github:nixos/nixos-hardware/master";
3535
catppuccin.url = "github:catppuccin/nix";
3636

37+
niri = {
38+
url = "github:sodiboo/niri-flake";
39+
inputs.nixpkgs.follows = "nixpkgs";
40+
};
41+
nfsm = {
42+
# Niri fullscreen manager
43+
url = "github:gvolpe/nfsm";
44+
inputs.nixpkgs.follows = "nixpkgs";
45+
};
46+
3747
import-tree.url = "github:vic/import-tree";
3848
};
3949

@@ -54,11 +64,15 @@
5464
"x86_64-linux"
5565
];
5666

67+
overlays = [
68+
(import ./overlays)
69+
inputs.niri.overlays.niri
70+
];
71+
5772
pkgsFor = lib.genAttrs systems (
5873
system:
5974
import nixpkgs {
60-
inherit system;
61-
overlays = [ (import ./overlays) ];
75+
inherit system overlays;
6276
}
6377
);
6478

@@ -67,6 +81,7 @@
6781
nixosModules = [
6882
inputs.catppuccin.nixosModules.catppuccin
6983
inputs.sops-nix.nixosModules.sops
84+
inputs.niri.nixosModules.niri
7085
(inputs.import-tree.match ".*/default\\.nix" ./modules/nixos)
7186
./modules/nix.nix
7287
];
@@ -76,6 +91,7 @@
7691
inputs.neonix.homeManagerModules.neonix
7792
inputs.krewfile.homeManagerModules.krewfile
7893
inputs.sops-nix.homeManagerModules.sops
94+
inputs.niri.homeModules.niri
7995
(inputs.import-tree.match ".*/default\\.nix" ./modules/home)
8096
./modules/nix.nix
8197
];

hosts/zion/home.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
cmd = "${pkgs.hyprlock}/bin/hyprlock";
4949
};
5050
};
51+
52+
desktop.niri = {
53+
enable = true;
54+
};
5155
};
5256

5357
home = {

0 commit comments

Comments
 (0)