mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 02:52:55 +00:00
3cecb8810c
still pretty ugly unfortunately
71 lines
1.5 KiB
Nix
71 lines
1.5 KiB
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
options = {
|
|
gtk.theme = {
|
|
name = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "Theme name for GTK applications";
|
|
};
|
|
package = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "Theme package name for GTK applications";
|
|
default = "gnome-themes-extra";
|
|
};
|
|
};
|
|
};
|
|
|
|
config = let
|
|
|
|
gtkTheme = {
|
|
name = config.gtk.theme.name;
|
|
package = pkgs."${config.gtk.theme.package}";
|
|
};
|
|
|
|
in lib.mkIf config.gui.enable {
|
|
|
|
# Enable the X11 windowing system.
|
|
services.xserver = {
|
|
enable = config.gui.enable;
|
|
|
|
# Enable touchpad support
|
|
libinput.enable = true;
|
|
|
|
# Login screen
|
|
displayManager = {
|
|
lightdm = {
|
|
enable = config.services.xserver.enable;
|
|
background = config.wallpaper;
|
|
|
|
# Show default user
|
|
# Also make sure /var/lib/AccountsService/users/<user> has SystemAccount=false
|
|
extraSeatDefaults = ''
|
|
greeter-hide-users = false
|
|
'';
|
|
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
environment.systemPackages = with pkgs;
|
|
[
|
|
xclip # Clipboard
|
|
];
|
|
|
|
# Required for setting GTK theme (for preferred-color-scheme in browser)
|
|
services.dbus.packages = [ pkgs.dconf ];
|
|
programs.dconf.enable = true;
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
programs.fish.shellAliases = {
|
|
pbcopy = "xclip -selection clipboard -in";
|
|
pbpaste = "xclip -selection clipboard -out";
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|