2023-08-11 04:22:16 +02:00
|
|
|
{pkgs, ...}: {
|
2023-08-15 03:15:49 +02:00
|
|
|
services.xserver.videoDrivers = ["nvidia"];
|
2023-08-14 15:02:45 +02:00
|
|
|
|
2023-08-15 12:41:49 +02:00
|
|
|
# Greeter, for when you start the computer
|
|
|
|
programs.regreet = {
|
|
|
|
enable = true;
|
|
|
|
# https://github.com/rharish101/ReGreet/blob/main/regreet.sample.toml
|
|
|
|
settings = {
|
2023-08-15 13:27:04 +02:00
|
|
|
background.path = "/etc/nixos/git/desktops/wallpapers/gruvbox/wallpaper3.jpg";
|
|
|
|
background.fit = "Cover";
|
2023-08-15 12:41:49 +02:00
|
|
|
GTK.application_prefer_dark_theme = true;
|
|
|
|
GTK.cursor_theme_name = "Adwaita";
|
|
|
|
GTK.font_name = "Cantarell 16";
|
2023-08-15 14:14:53 +02:00
|
|
|
GTK.icon_theme_name = "Adwaita";
|
2023-08-15 13:01:21 +02:00
|
|
|
GTK.theme_name = "Gruvbox-Dark-BL";
|
2023-08-15 12:42:37 +02:00
|
|
|
commands.reboot = [ "systemctl" "reboot" ];
|
|
|
|
commands.poweroff = [ "systemctl" "poweroff" ];
|
2023-08-15 13:49:57 +02:00
|
|
|
};
|
2023-08-15 13:51:47 +02:00
|
|
|
extraCss = ''
|
|
|
|
img.background {
|
|
|
|
filter: blur(20px);
|
|
|
|
}
|
|
|
|
'';
|
2023-08-15 12:41:49 +02:00
|
|
|
};
|
|
|
|
|
2023-08-15 12:21:32 +02:00
|
|
|
# Brightness and volume control
|
|
|
|
programs.light.enable = true;
|
|
|
|
|
2023-08-14 07:55:14 +02:00
|
|
|
# Enabling hyprlnd on NixOS
|
|
|
|
programs.hyprland = {
|
|
|
|
enable = true;
|
2023-08-14 13:49:57 +02:00
|
|
|
enableNvidiaPatches = true;
|
2023-08-14 07:55:14 +02:00
|
|
|
xwayland.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
# If your cursor becomes invisible
|
|
|
|
WLR_NO_HARDWARE_CURSORS = "1";
|
|
|
|
# Hint electron apps to use wayland
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
};
|
|
|
|
|
2023-08-14 13:01:44 +02:00
|
|
|
# XDG portal
|
|
|
|
xdg.portal.enable = true;
|
|
|
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
|
|
|
2023-08-14 07:55:14 +02:00
|
|
|
# system packages
|
2023-08-14 13:01:44 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-08-14 09:49:03 +02:00
|
|
|
# waybar
|
|
|
|
(waybar.overrideAttrs (oldAttrs: {
|
|
|
|
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
|
|
|
})
|
|
|
|
)
|
2023-08-14 07:55:14 +02:00
|
|
|
# Notofication daemon
|
|
|
|
libnotify
|
|
|
|
mako
|
|
|
|
# for x11
|
|
|
|
# dunst
|
|
|
|
|
|
|
|
# Wallpaper daemons
|
|
|
|
# hyprpaper
|
|
|
|
# swaybg
|
|
|
|
# wpaperd
|
|
|
|
# mpvpaper
|
|
|
|
swww
|
|
|
|
|
|
|
|
# Terminal
|
|
|
|
# hyprlands default terminal
|
|
|
|
kitty
|
|
|
|
# alacritty
|
|
|
|
# wezterm
|
|
|
|
|
|
|
|
# App launchers
|
|
|
|
rofi-wayland
|
|
|
|
# gtk version:
|
|
|
|
# wofi
|
|
|
|
|
|
|
|
# suggestions
|
|
|
|
# bemenu
|
|
|
|
# fuzzel
|
|
|
|
# tofi
|
|
|
|
|
|
|
|
# Other apps:
|
|
|
|
networkmanagerapplet
|
|
|
|
|
|
|
|
# Screenshot utility:
|
|
|
|
grim
|
2023-08-14 13:49:57 +02:00
|
|
|
slurp
|
2023-08-14 13:50:54 +02:00
|
|
|
wl-clipboard
|
2023-08-14 07:55:14 +02:00
|
|
|
|
|
|
|
# fonts
|
|
|
|
font-awesome
|
2023-08-15 12:21:32 +02:00
|
|
|
|
|
|
|
# lock screen
|
|
|
|
swaylock-fancy
|
2023-08-15 13:01:21 +02:00
|
|
|
|
|
|
|
# Icons for regreet
|
|
|
|
gruvbox-gtk-theme
|
2023-08-15 13:27:04 +02:00
|
|
|
papirus-icon-theme
|
2023-08-14 07:55:14 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
|
|
sound.enable = true;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
jack.enable = true;
|
|
|
|
};
|
2023-08-11 04:22:16 +02:00
|
|
|
}
|