feat(wrapping): introduce wrapped configurations
This commit is contained in:
parent
3892f6f79b
commit
2aa24ab2b9
22 changed files with 883 additions and 135 deletions
27
hosts/shared/niri.nix
Normal file
27
hosts/shared/niri.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.alqueva.wms.niri;
|
||||
in {
|
||||
options.alqueva.wms.niri = {
|
||||
enable = lib.mkEnableOption "niri";
|
||||
package = lib.mkPackageOption pkgs "niri" {};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
alqueva.support.wayland = true;
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
configPackages = [cfg.package];
|
||||
extraPortals = [pkgs.xdg-desktop-portal-gnome];
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
cfg.package
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue