dotfiles/modules/desktop/xorg.nix

39 lines
570 B
Nix
Raw Normal View History

2022-04-29 02:43:50 +00:00
{ pkgs, user, gui, ... }:
let gtkTheme = "Adwaita-dark";
in {
2022-04-29 01:56:21 +00:00
# Enable the X11 windowing system.
services.xserver = {
2022-04-29 02:12:16 +00:00
enable = gui;
2022-04-29 01:56:21 +00:00
# Enable touchpad support
libinput.enable = true;
# Login screen
displayManager = {
lightdm = {
2022-04-29 02:12:16 +00:00
enable = gui;
2022-04-29 01:56:21 +00:00
# Make the login screen dark
2022-04-29 02:43:50 +00:00
greeters.gtk.theme.name = gtkTheme;
2022-04-29 01:56:21 +00:00
};
};
};
2022-04-29 02:12:16 +00:00
environment.systemPackages = with pkgs;
[
xclip # Clipboard
];
2022-04-29 02:43:50 +00:00
home-manager.users.${user}.gtk = {
enable = true;
theme = { name = gtkTheme; };
};
2022-04-29 01:56:21 +00:00
}