2023-12-04 06:42:34 +00:00
|
|
|
{ config, lib, pkgs, ... }: {
|
2023-12-21 13:05:27 +00:00
|
|
|
imports = [ ./waybar/default.nix ];
|
2023-10-26 17:15:51 +01:00
|
|
|
services = {
|
|
|
|
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-07-11 09:11:48 +01:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
2023-09-11 23:04:29 +01:00
|
|
|
xwayland.enable = true;
|
2023-10-16 13:19:38 +01:00
|
|
|
systemd.enable = true;
|
2023-10-14 20:49:30 +01:00
|
|
|
extraConfig = import ./config.nix { inherit config pkgs; };
|
2023-07-17 06:58:10 +01:00
|
|
|
};
|
2023-12-21 13:05:27 +00:00
|
|
|
programs = {
|
|
|
|
zathura.enable = true;
|
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'
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
plugins = with pkgs; [ rofi-calc ];
|
|
|
|
extraConfig = let
|
|
|
|
power-menu = "power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
|
|
|
|
in {
|
|
|
|
modi = "window,run,drun,ssh,calc,${power-menu},combi";
|
|
|
|
combi-modi = "window,drun,ssh,calc";
|
|
|
|
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 = " Launch ";
|
|
|
|
display-ssh = " SSH ";
|
|
|
|
display-calc = " Calculator ";
|
|
|
|
display-combi = " Combi ";
|
|
|
|
};
|
|
|
|
};
|
2024-01-03 15:40:21 +00:00
|
|
|
swaylock = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
indicator-caps-lock = true;
|
|
|
|
indicator-radius = 100;
|
|
|
|
indicator-thickness = 7;
|
|
|
|
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-10-20 10:24:28 +01:00
|
|
|
mimeApps = rec {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = {
|
2024-01-10 11:51:05 +00:00
|
|
|
"application/pdf" = [ "emacs.desktop" ];
|
|
|
|
"application/epub+zip" = [ "emacs.desktop" ];
|
|
|
|
"application/oxps" = [ "emacs.desktop" ];
|
|
|
|
"image/jpeg" = [ "emacs.desktop" ];
|
|
|
|
"image/png" = [ "emacs.desktop" ];
|
2023-09-14 05:57:45 +01:00
|
|
|
"video/mp4" = [ "mpv.desktop" ];
|
2024-01-10 11:51:05 +00:00
|
|
|
"text/csv" = [ "emacs.desktop" ];
|
|
|
|
"text/html" = [ "chromium.desktop" ];
|
|
|
|
"x-scheme-handler/http" = [ "chromium.desktop" ];
|
|
|
|
"x-scheme-handler/https" = [ "chromium.desktop" ];
|
|
|
|
"x-scheme-handler/about" = [ "chromium.desktop" ];
|
|
|
|
"x-scheme-handler/chrome" = [ "chromium.desktop" ];
|
|
|
|
"application/x-extension-htm" = [ "chromium.desktop" ];
|
|
|
|
"application/x-extension-html" = [ "chromium.desktop" ];
|
|
|
|
"application/x-extension-shtml" = [ "chromium.desktop" ];
|
|
|
|
"application/xhtml+xml" = [ "chromium.desktop" ];
|
|
|
|
"application/x-extension-xhtml" = [ "chromium.desktop" ];
|
|
|
|
"application/x-extension-xht" = [ "chromium.desktop" ];
|
|
|
|
"application/x-mozilla-bookmarks" = [ "chromium.desktop" ];
|
2024-01-03 14:24:43 +00:00
|
|
|
"x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ];
|
2023-09-13 17:43:20 +01:00
|
|
|
};
|
2023-10-20 10:24:28 +01:00
|
|
|
associations.added = defaultApplications;
|
2023-09-13 17:43:20 +01:00
|
|
|
};
|
2023-08-21 11:01:19 +01:00
|
|
|
};
|
2023-07-11 09:11:48 +01:00
|
|
|
}
|