Files
dotfiles/nixos/desktop.nix

167 lines
3.4 KiB
Nix
Raw Normal View History

{
inputs,
config,
pkgs,
lib,
makeEnable,
...
}:
2024-09-26 14:15:27 -06:00
makeEnable config "myModules.desktop" true {
services.greenclip.enable = true;
imports = [
./fonts.nix
./hyprland.nix
2026-02-03 20:30:39 -08:00
./keyd.nix
./wlsunset.nix
];
assertions = [
{
assertion = !(config.myModules.taffybar.enable && config.myModules.waybar.enable);
message = "myModules.taffybar and myModules.waybar cannot both be enabled.";
}
];
services.xserver = {
exportConfiguration = true;
enable = true;
displayManager = {
sessionCommands = ''
systemctl --user import-environment GDK_PIXBUF_MODULE_FILE DBUS_SESSION_BUS_ADDRESS PATH
'';
setupCommands = ''
autorandr -c
systemctl restart autorandr.service
'';
};
};
2023-06-28 22:27:09 -06:00
services.autorandr = {
enable = true;
};
# This is for the benefit of VSCODE running natively in wayland
2023-06-28 22:28:41 -06:00
environment.sessionVariables.NIXOS_OZONE_WL = "1";
services.gnome.at-spi2-core.enable = true;
services.gnome.gnome-keyring.enable = true;
home-manager.sharedModules = [
2026-03-31 16:26:44 -07:00
{
imports = [./dunst.nix];
2026-03-31 16:26:44 -07:00
xdg.desktopEntries."com.mitchellh.ghostty" = {
name = "Ghostty";
comment = "A terminal emulator";
icon = "com.mitchellh.ghostty";
terminal = false;
type = "Application";
categories = ["System" "TerminalEmulator"];
2026-03-31 16:26:44 -07:00
startupNotify = true;
exec = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=false";
settings = {
StartupWMClass = "com.mitchellh.ghostty";
X-GNOME-UsesNotifications = "true";
X-TerminalArgExec = "-e";
X-TerminalArgTitle = "--title=";
X-TerminalArgAppId = "--class=";
X-TerminalArgDir = "--working-directory=";
X-TerminalArgHold = "--wait-after-command";
};
actions = {
new-window = {
name = "New Window";
exec = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=false";
};
};
};
}
];
2025-08-13 23:44:19 -06:00
environment.systemPackages = with pkgs;
[
# Appearance
adwaita-icon-theme
hicolor-icon-theme
# libsForQt5.breeze-gtk
# materia-theme
numix-icon-theme-circle
papirus-icon-theme
2023-06-28 22:27:09 -06:00
# XOrg
autorandr
keyd
wmctrl
xclip
xdotool
xev
xwininfo
xsettingsd
2023-06-28 22:27:09 -06:00
# Desktop
alacritty
ghostty
blueman
# clipit
d-spy
kdePackages.dolphin
feh
file-roller
gthumb
firefox
cheese
kdePackages.kleopatra
libnotify
libreoffice
loupe
lxappearance
lxqt.lxqt-powermanagement
networkmanagerapplet
kdePackages.okular
pinentry-gnome3
# mission-center
quassel
remmina
rofi
wofi
rofi-pass
rofi-systemd
simplescreenrecorder
skippy-xd
transmission_4-gtk
vlc
thunar
2023-06-28 23:40:34 -06:00
# Audio
picard
pavucontrol
playerctl
pulsemixer
espeak
2023-08-07 21:52:33 -06:00
#
brightnessctl
# Visualization
graphviz
mermaid-cli
]
++ (
if pkgs.stdenv.hostPlatform.system == "x86_64-linux"
then
with pkgs; [
google-chrome
pommed_light
slack
spicetify-cli
spotify
tor-browser
vscode
zulip
]
else []
);
}