2024-04-20 13:42:06 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-05-15 00:29:03 +00:00
|
|
|
|
2023-08-09 02:13:02 +00:00
|
|
|
config = lib.mkIf config.gui.enable {
|
2022-04-29 01:56:21 +00:00
|
|
|
|
2024-05-28 11:50:14 +00:00
|
|
|
# Enable touchpad support
|
|
|
|
services.libinput.enable = true;
|
|
|
|
|
2022-04-30 16:32:00 +00:00
|
|
|
# Enable the X11 windowing system.
|
|
|
|
services.xserver = {
|
2022-05-06 03:01:56 +00:00
|
|
|
enable = config.gui.enable;
|
2022-04-29 01:56:21 +00:00
|
|
|
|
2022-04-30 16:32:00 +00:00
|
|
|
# Login screen
|
|
|
|
displayManager = {
|
|
|
|
lightdm = {
|
|
|
|
enable = config.services.xserver.enable;
|
2022-11-03 01:29:14 +00:00
|
|
|
background = config.wallpaper;
|
2022-04-29 01:56:21 +00:00
|
|
|
|
2022-10-31 00:16:37 +00:00
|
|
|
# Show default user
|
2023-08-06 11:30:36 +00:00
|
|
|
# Also make sure /var/lib/AccountsService/users/<user> has SystemAccount=false
|
2022-10-31 00:16:37 +00:00
|
|
|
extraSeatDefaults = ''
|
|
|
|
greeter-hide-users = false
|
|
|
|
'';
|
2022-04-30 16:32:00 +00:00
|
|
|
};
|
2022-04-29 01:56:21 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-20 13:42:06 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
xclip # Clipboard
|
|
|
|
];
|
2022-04-29 01:56:21 +00:00
|
|
|
|
2022-05-12 12:44:03 +00:00
|
|
|
home-manager.users.${config.user} = {
|
2022-05-15 00:29:03 +00:00
|
|
|
|
2022-05-12 12:44:03 +00:00
|
|
|
programs.fish.shellAliases = {
|
|
|
|
pbcopy = "xclip -selection clipboard -in";
|
|
|
|
pbpaste = "xclip -selection clipboard -out";
|
|
|
|
};
|
2022-04-30 16:32:00 +00:00
|
|
|
};
|
2022-04-30 14:21:43 +00:00
|
|
|
};
|
2022-04-29 01:56:21 +00:00
|
|
|
}
|