nixos-configs/devices/wim/modules/desktop.nix

59 lines
1 KiB
Nix
Raw Normal View History

2023-11-22 15:33:16 -05:00
{
pkgs,
2023-11-25 03:24:12 -05:00
config,
2023-11-22 15:33:16 -05:00
...
2023-11-25 03:24:12 -05:00
}: let
user = config.services.device-vars.username;
hyprland = config.home-manager.users.${user}.wayland.windowManager.hyprland.finalPackage;
in {
programs.dconf.enable = true;
services = {
xserver = {
displayManager = {
2023-11-25 03:24:12 -05:00
sessionPackages = [hyprland];
2023-10-19 17:05:13 -04:00
};
libinput.enable = true;
2023-11-23 21:53:19 -05:00
wacom.enable = true;
2023-10-19 17:05:13 -04:00
};
2023-10-19 17:05:13 -04:00
greetd = {
settings = {
initial_session = {
2023-11-25 03:24:12 -05:00
command = "${hyprland}/bin/Hyprland";
user = "matt";
};
};
};
2023-10-19 17:05:13 -04:00
dbus.enable = true;
gvfs.enable = true;
flatpak.enable = true;
tlp.enable = true;
};
programs.kdeconnect.enable = true;
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
environment.systemPackages = with pkgs; [
# for sddm
plasma5Packages.plasma-framework
plasma5Packages.plasma-workspace
qemu
wl-clipboard
alsa-utils
evtest
plasma5Packages.kio-admin
plasma5Packages.ksshaskpass
];
}