nixos-config/config/graphical.nix
Charlotte 🦝 Delenk 230c4c1a77
All checks were successful
Hydra nixosConfigurations.oracle-installer Hydra build #27541 of nixos-config:pr618:nixosConfigurations.oracle-installer
Hydra nixosConfigurations.rainbow-resort Hydra build #27543 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.pc-installer Hydra build #27542 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.thinkrac Hydra build #27544 of nixos-config:pr618:nixosConfigurations.thinkrac
only enable portals on sway
2024-11-25 12:20:27 +01:00

37 lines
724 B
Nix

{
nixos-config,
config,
pkgs,
lib,
...
}:
{
time.timeZone = "Etc/GMT-1";
isGraphical = true;
imports = [
./kde
./documentation.nix
./graphical/fonts.nix
"${nixos-config}/services/security-key"
];
home-manager.users.darkkirb.imports =
if config.isSway then
[
./sway
./graphical/gtk-fixes
]
else
[ ./graphical/gtk-fixes ];
xdg.portal = {
wlr.enable = config.isSway;
extraPortals =
with pkgs;
(lib.mkIf config.isSway [
xdg-desktop-portal-gtk
xdg-desktop-portal-kde
xdg-desktop-portal-wlr
]);
config.common.default = lib.mkIf config.isSway "wlr";
};
security.pam.services.swaylock = { };
}