Add niri module, flake update
This commit is contained in:
28
modules/hm/niri.nix
Normal file
28
modules/hm/niri.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
pkgs,
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
enable = osConfig.programs.niri.enable;
|
||||
in
|
||||
{
|
||||
|
||||
programs = lib.mkIf (enable) {
|
||||
alacritty.enable = true; # Super+T in the default setting (terminal)
|
||||
fuzzel.enable = true; # Super+D in the default setting (app launcher)
|
||||
swaylock.enable = true; # Super+Alt+L in the default setting (screen locker)
|
||||
waybar.enable = true; # launch on startup in the default setting (bar)
|
||||
};
|
||||
services = lib.mkIf (enable) {
|
||||
mako.enable = true; # notification daemon
|
||||
swayidle.enable = true; # idle management daemon
|
||||
};
|
||||
|
||||
home.packages =
|
||||
with pkgs;
|
||||
lib.mkIf (enable) [
|
||||
swaybg
|
||||
];
|
||||
}
|
||||
@@ -25,7 +25,7 @@ in
|
||||
executable = true;
|
||||
};
|
||||
|
||||
programs.vivaldi = {
|
||||
programs.vivaldi = lib.mkIf (conf.enable) {
|
||||
nativeMessagingHosts =
|
||||
[ ]
|
||||
++ lib.optionals (osConfig.services.desktopManager.plasma6.enable) [
|
||||
|
||||
Reference in New Issue
Block a user