nixos/home/hyprland/default.nix
Evie Litherland-Smith 92378190f1 Properly enable pipewire from nixos wiki setup
Disable hardware.audio, enable pipewire addons

Move xdg mime definitions from home manager to system level

Consolidate xdg portal options in desktop.nix
2024-01-23 19:53:52 +00:00

112 lines
2.9 KiB
Nix

{ config, lib, pkgs, ... }: {
imports = [ ./waybar/default.nix ./obs/default.nix ];
services = {
gpg-agent.pinentryFlavor = "gnome3";
avizo.enable = true;
syncthing.enable = true;
udiskie = {
enable = true;
notify = true;
automount = true;
tray = "never";
};
};
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
systemd.enable = true;
extraConfig = import ./config.nix { inherit config pkgs; };
};
programs = {
foot = {
enable = true;
settings = {
main = {
pad = "10x10";
locked-title = false;
notify-focus-inhibit = true;
selection-target = "both";
};
bell = {
urgent = true;
notify = true;
};
mouse = { hide-when-typing = "yes"; };
};
};
rofi = {
enable = true;
package = pkgs.rofi-wayland;
location = "center";
terminal = "foot";
pass = {
enable = true;
package = pkgs.rofi-pass-wayland;
extraConfig = ''
USERNAME_field='login'
'';
};
extraConfig = let
power-menu = "power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
in {
modi = "window,run,drun,ssh,${power-menu},combi";
combi-modi = "window,drun,ssh";
sidebar-mode = true;
sort = true;
sorting-method = "fzf";
matching = "fuzzy";
icon-theme = config.gtk.iconTheme.name;
show-icons = true;
application-fallback-icon = "󰋙 ";
drun-display-format = "{icon} {name} ({categories})";
disable-history = false;
hide-scrollbar = true;
display-window = " 󰧨 Move ";
display-run = " 󰅴 Run ";
display-drun = " 󱓞 Apps ";
display-ssh = " 󰢹 SSH ";
display-combi = " 󰛡 Combi ";
display-power-menu = " 󰐥 Power ";
};
};
swaylock = {
enable = true;
settings = {
indicator-caps-lock = true;
ignore-empty-password = true;
show-failed-attempts = true;
};
};
};
gtk = {
enable = true;
cursorTheme = {
package = pkgs.catppuccin-cursors.mochaDark;
name = "Catppuccin-Mocha-Dark-Cursors";
size = 24;
};
iconTheme = {
package = pkgs.papirus-icon-theme;
name = "Papirus-Dark";
};
theme = {
package = pkgs.catppuccin-gtk.override {
accents = [ "lavender" ];
size = "standard";
variant = "mocha";
};
name = "Catppuccin-Mocha-Standard-Lavender-Dark";
};
};
xdg = {
configFile = {
"hypr/extra.conf" = lib.mkDefault { text = ""; };
"hypr/hyprpaper.conf".text = ''
preload = ${config.stylix.image}
wallpaper = ,${config.stylix.image}
'';
"swaync/style.css".source = ./swaync/style.css;
};
};
}