feat: a bunch of changes i forgot to commit
This commit is contained in:
parent
57c72d9ac7
commit
8141140de9
21 changed files with 2871 additions and 186 deletions
40
computers/shared/support.nix
Normal file
40
computers/shared/support.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{config, lib, pkgs, ...}: let
|
||||
cfg = config.alqueva.support;
|
||||
inherit (lib) mkEnableOption;
|
||||
in {
|
||||
options.alqueva.support = {
|
||||
wayland = mkEnableOption "wayland support";
|
||||
};
|
||||
config = lib.mkIf cfg.wayland {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config.common = {
|
||||
default = [
|
||||
"gtk"
|
||||
"kde"
|
||||
];
|
||||
};
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal-kde
|
||||
];
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
slurp
|
||||
grim
|
||||
wf-recorder
|
||||
fuzzel
|
||||
alacritty
|
||||
wl-clipboard
|
||||
;
|
||||
};
|
||||
sessionVariables = {
|
||||
"NIXOS_OZONE_WL" = "1";
|
||||
"QT_QPA_PLATFORM" = "wayland";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue