2023-12-04 06:42:34 +00:00
|
|
|
{ config, lib, pkgs, ... }: {
|
2024-01-14 11:57:15 +00:00
|
|
|
imports = [ ./waybar/default.nix ./obs/default.nix ];
|
2023-10-26 17:15:51 +01:00
|
|
|
services = {
|
2024-01-12 08:19:20 +00:00
|
|
|
gpg-agent.pinentryFlavor = "gnome3";
|
2023-10-26 17:15:51 +01:00
|
|
|
avizo.enable = true;
|
2023-11-09 11:54:55 +00:00
|
|
|
syncthing.enable = true;
|
2023-11-09 11:42:12 +00:00
|
|
|
udiskie = {
|
|
|
|
enable = true;
|
|
|
|
notify = true;
|
|
|
|
automount = true;
|
2023-11-09 11:54:55 +00:00
|
|
|
tray = "never";
|
2023-11-09 11:42:12 +00:00
|
|
|
};
|
2023-10-26 17:15:51 +01:00
|
|
|
};
|
2023-12-21 13:05:27 +00:00
|
|
|
programs = {
|
2023-12-28 11:37:22 +00:00
|
|
|
foot = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
main = {
|
|
|
|
pad = "10x10";
|
|
|
|
locked-title = false;
|
2023-12-29 10:28:09 +00:00
|
|
|
notify-focus-inhibit = true;
|
2023-12-28 11:37:22 +00:00
|
|
|
selection-target = "both";
|
|
|
|
};
|
|
|
|
bell = {
|
|
|
|
urgent = true;
|
|
|
|
notify = true;
|
|
|
|
};
|
|
|
|
mouse = { hide-when-typing = "yes"; };
|
|
|
|
};
|
|
|
|
};
|
2023-12-21 13:05:27 +00:00
|
|
|
rofi = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.rofi-wayland;
|
|
|
|
location = "center";
|
2023-12-28 11:37:22 +00:00
|
|
|
terminal = "foot";
|
2023-12-21 13:05:27 +00:00
|
|
|
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 {
|
2024-01-12 11:18:32 +00:00
|
|
|
modi = "window,run,drun,ssh,${power-menu},combi";
|
|
|
|
combi-modi = "window,drun,ssh";
|
2023-12-21 13:05:27 +00:00
|
|
|
sidebar-mode = true;
|
|
|
|
sort = true;
|
|
|
|
sorting-method = "fzf";
|
|
|
|
matching = "fuzzy";
|
|
|
|
icon-theme = config.gtk.iconTheme.name;
|
|
|
|
show-icons = true;
|
2024-01-17 06:05:35 +00:00
|
|
|
application-fallback-icon = " ";
|
2023-12-21 13:05:27 +00:00
|
|
|
drun-display-format = "{icon} {name} ({categories})";
|
|
|
|
disable-history = false;
|
|
|
|
hide-scrollbar = true;
|
|
|
|
display-window = " Move ";
|
|
|
|
display-run = " Run ";
|
2024-01-12 11:57:35 +00:00
|
|
|
display-drun = " Apps ";
|
2023-12-21 13:05:27 +00:00
|
|
|
display-ssh = " SSH ";
|
|
|
|
display-combi = " Combi ";
|
2024-01-12 11:57:35 +00:00
|
|
|
display-power-menu = " Power ";
|
2023-12-21 13:05:27 +00:00
|
|
|
};
|
|
|
|
};
|
2024-01-03 15:40:21 +00:00
|
|
|
swaylock = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
indicator-caps-lock = true;
|
|
|
|
ignore-empty-password = true;
|
|
|
|
show-failed-attempts = true;
|
|
|
|
};
|
|
|
|
};
|
2023-12-21 13:05:27 +00:00
|
|
|
};
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
2023-09-13 17:43:20 +01:00
|
|
|
xdg = {
|
|
|
|
configFile = {
|
2023-12-21 13:05:27 +00:00
|
|
|
"hypr/extra.conf" = lib.mkDefault { text = ""; };
|
2023-09-13 17:43:20 +01:00
|
|
|
"hypr/hyprpaper.conf".text = ''
|
2023-09-26 19:03:50 +01:00
|
|
|
preload = ${config.stylix.image}
|
|
|
|
wallpaper = ,${config.stylix.image}
|
2023-09-13 17:43:20 +01:00
|
|
|
'';
|
2024-01-03 16:46:20 +00:00
|
|
|
"swaync/style.css".source = ./swaync/style.css;
|
2023-09-13 17:43:20 +01:00
|
|
|
};
|
2023-08-21 11:01:19 +01:00
|
|
|
};
|
2024-01-27 06:52:09 +00:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
xwayland.enable = true;
|
|
|
|
systemd.enable = true;
|
|
|
|
settings = {
|
|
|
|
monitor = [ ",preferred,auto,auto" ];
|
|
|
|
env = with config; [
|
|
|
|
"XDG_CURRENT_DESKTOP=Hyprland"
|
|
|
|
"XDG_SESSION_TYPE=wayland"
|
|
|
|
"XDG_SESSION_DESKTOP=Hyprland"
|
|
|
|
"GDK_BACKEND=wayland,x11"
|
|
|
|
"GTK_THEME,${gtk.theme.name}"
|
|
|
|
"XCURSOR_THEME,${gtk.cursorTheme.name}"
|
|
|
|
"XCURSOR_SIZE,${toString gtk.cursorTheme.size}"
|
|
|
|
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
|
|
|
|
"QT_QPA_PLATFORM,wayland"
|
|
|
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
|
|
|
"MOZ_ENABLE_WAYLAND,1"
|
|
|
|
"GRIM_DEFAULT_DIR=${xdg.userDirs.pictures}/Grim"
|
|
|
|
];
|
|
|
|
exec-once = with config;
|
|
|
|
[
|
|
|
|
"hyprctl setcursor ${gtk.theme.name} ${toString gtk.cursorTheme.size}"
|
|
|
|
];
|
|
|
|
gestures.workspace_swipe = true;
|
|
|
|
input = {
|
|
|
|
kb_layout = "gb";
|
|
|
|
kb_options = "ctrl:nocaps";
|
|
|
|
follow_mouse = 1;
|
|
|
|
touchpad.natural_scroll = "yes";
|
|
|
|
};
|
|
|
|
master = {
|
|
|
|
allow_small_split = true;
|
|
|
|
special_scale_factor = 0.95;
|
|
|
|
mfact = 0.5;
|
|
|
|
new_is_master = false;
|
|
|
|
new_on_top = false;
|
|
|
|
no_gaps_when_only = 0;
|
|
|
|
orientation = "left";
|
|
|
|
inherit_fullscreen = false;
|
|
|
|
smart_resizing = false;
|
|
|
|
drop_at_cursor = true;
|
|
|
|
};
|
|
|
|
general = {
|
|
|
|
"col.active_border" = "rgb(b4befe)";
|
|
|
|
"col.inactive_border" = "rgb(313244)";
|
|
|
|
gaps_in = 5;
|
|
|
|
gaps_out = 10;
|
|
|
|
border_size = 1;
|
|
|
|
cursor_inactive_timeout = 5;
|
|
|
|
layout = "master";
|
|
|
|
};
|
|
|
|
decoration = {
|
|
|
|
rounding = 10;
|
|
|
|
"col.shadow" = "rgba(0d0e1c99)";
|
|
|
|
drop_shadow = "yes";
|
|
|
|
shadow_ignore_window = true;
|
|
|
|
shadow_range = 4;
|
|
|
|
shadow_render_power = 3;
|
|
|
|
blur = {
|
|
|
|
enabled = true;
|
|
|
|
size = 5;
|
|
|
|
passes = 3;
|
|
|
|
new_optimizations = true;
|
|
|
|
brightness = 1.0;
|
|
|
|
noise = 2.0e-2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
animations = {
|
|
|
|
enabled = true;
|
|
|
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
|
|
|
animation = [
|
|
|
|
"windows, 1, 7, myBezier"
|
|
|
|
"windowsOut, 1, 7, default, popin 80%"
|
|
|
|
"border, 1, 10, default"
|
|
|
|
"borderangle, 1, 8, default"
|
|
|
|
"fade, 1, 7, default"
|
|
|
|
"workspaces, 1, 6, default"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
misc = {
|
|
|
|
background_color = "rgb(0d0e1c)";
|
|
|
|
disable_autoreload = true;
|
|
|
|
mouse_move_enables_dpms = true;
|
|
|
|
key_press_enables_dpms = true;
|
|
|
|
};
|
|
|
|
xwayland.force_zero_scaling = true;
|
|
|
|
};
|
|
|
|
extraConfig = import ./config.nix { inherit config pkgs; };
|
|
|
|
};
|
2023-07-11 09:11:48 +01:00
|
|
|
}
|