Sets up a config for Niri which involved both the host and user config settings. It's a semi basic set up to be improved on further later. This also needs to bump flake so that niri can be added to the flake update. I don't know what the flake bump date was at this point, so I'll have to bump it again soon. This needs to break apart the "waylandcompositors" service to allow niri and hypr to better fit the directory structure. Otherwise Hypr is unchanged.
23 lines
525 B
Nix
23 lines
525 B
Nix
{ inputs, config, lib, ... }:
|
|
|
|
{
|
|
|
|
options.hyprland = {
|
|
enable = lib.mkEnableOption "Enables hyprland";
|
|
};
|
|
|
|
imports = [
|
|
inputs.hyprland.nixosModules.default
|
|
];
|
|
|
|
config = {
|
|
nix.settings = {
|
|
substituters = [ "https://hyprland.cachix.org" ];
|
|
trusted-public-keys = [
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
];
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
};
|
|
programs.hyprland.enable = lib.mkIf config.hyprland.enable true;
|
|
};
|
|
}
|