structure and add like MatthiasBenaets
This commit is contained in:
24
modules/services/default.nix
Normal file
24
modules/services/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# Services
|
||||
#
|
||||
# flake.nix
|
||||
# ├─ ./hosts
|
||||
# │ └─ home.nix
|
||||
# └─ ./modules
|
||||
# └─ ./services
|
||||
# └─ default.nix *
|
||||
# └─ ...
|
||||
#
|
||||
|
||||
[
|
||||
./dunst.nix
|
||||
./flameshot.nix
|
||||
#./picom.nix
|
||||
#./polybar.nix
|
||||
#./sxhkd.nix
|
||||
./udiskie.nix
|
||||
#./redshift.nix
|
||||
]
|
||||
|
||||
# picom, polybar and sxhkd are pulled from desktop module
|
||||
# redshift temporarely disables
|
||||
70
modules/services/dunst.nix
Normal file
70
modules/services/dunst.nix
Normal file
@@ -0,0 +1,70 @@
|
||||
#
|
||||
# System notifications
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
colors = import ../themes/colors.nix; # Import colors theme
|
||||
in
|
||||
{
|
||||
home.packages = [ pkgs.libnotify ]; # Dependency
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
iconTheme = { # Icons
|
||||
name = "Papirus Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
size = "16x16";
|
||||
};
|
||||
settings = with colors.scheme.doom; { # Settings
|
||||
global = {
|
||||
monitor = 0;
|
||||
# geometry [{width}x{height}][+/-{x}+/-{y}]
|
||||
# geometry = "600x50-50+65";
|
||||
width = 300;
|
||||
height = 200;
|
||||
origin = "top-right";
|
||||
offset = "50x50";
|
||||
shrink = "yes";
|
||||
transparency = 10;
|
||||
padding = 16;
|
||||
horizontal_padding = 16;
|
||||
frame_width = 3;
|
||||
frame_color = "#${bg}";
|
||||
separator_color = "frame";
|
||||
font = "FiraCode Nerd Font 10";
|
||||
line_height = 4;
|
||||
idle_threshold = 120;
|
||||
markup = "full";
|
||||
format = ''<b>%s</b>\n%b'';
|
||||
alignment = "left";
|
||||
vertical_alignment = "center";
|
||||
icon_position = "left";
|
||||
word_wrap = "yes";
|
||||
ignore_newline = "no";
|
||||
show_indicators = "yes";
|
||||
sort = true;
|
||||
stack_duplicates = true;
|
||||
# startup_notification = false;
|
||||
hide_duplicate_count = true;
|
||||
};
|
||||
urgency_low = { # Colors
|
||||
background = "#${bg}";
|
||||
foreground = "#${text}";
|
||||
timeout = 4;
|
||||
};
|
||||
urgency_normal = {
|
||||
background = "#${bg}";
|
||||
foreground = "#${text}";
|
||||
timeout = 4;
|
||||
};
|
||||
urgency_critical = {
|
||||
background = "#${bg}";
|
||||
foreground = "#${text}";
|
||||
frame_color = "#${red}";
|
||||
timeout = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.dataFile."dbus-1/services/org.knopwob.dunst.service".source = "${pkgs.dunst}/share/dbus-1/services/org.knopwob.dunst.service";
|
||||
}
|
||||
22
modules/services/flameshot.nix
Normal file
22
modules/services/flameshot.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# Screenshots
|
||||
#
|
||||
|
||||
{ pkgs, user, ... }:
|
||||
|
||||
{
|
||||
services = { # sxhkd shortcut = Printscreen button (Print)
|
||||
flameshot = {
|
||||
enable = true;
|
||||
settings = {
|
||||
General = { # Settings
|
||||
savePath = "/home/${user}/";
|
||||
saveAsFileExtension = ".png";
|
||||
uiColor = "#2d0096";
|
||||
showHelp = "false";
|
||||
disabledTrayIcon = "true"; # Hide from systray
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
modules/services/udiskie.nix
Normal file
15
modules/services/udiskie.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# Mounting tool
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
udiskie = { # Udiskie wil automatically mount storage devices
|
||||
enable = true;
|
||||
automount = true;
|
||||
tray = "auto"; # Will only show up in systray when active
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user