cleanups and move steamdeck to desktop module
This commit is contained in:
@@ -1,26 +1,3 @@
|
||||
#
|
||||
# Services
|
||||
#
|
||||
# flake.nix
|
||||
# ├─ ./hosts
|
||||
# │ └─ home.nix
|
||||
# └─ ./modules
|
||||
# └─ ./services
|
||||
# └─ default.nix *
|
||||
# └─ ...
|
||||
#
|
||||
|
||||
[
|
||||
#./dunst.nix
|
||||
#./flameshot.nix
|
||||
#./picom.nix
|
||||
#./polybar.nix
|
||||
#./sxhkd.nix
|
||||
#./udiskie.nix
|
||||
#./redshift.nix
|
||||
#./kanshi.nix
|
||||
./keyring.nix
|
||||
]
|
||||
|
||||
# picom, polybar and sxhkd are pulled from desktop module
|
||||
# redshift temporarely disables
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
#
|
||||
# System notifications
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
colors = import ../themes/colors.nix; # Import colors theme
|
||||
|
||||
dunst-volume-notification = pkgs.writeShellScriptBin "volume-notify" ''
|
||||
if [ "$(pulsemixer --get-mute)" = "0" ]; then dunstify -u low -r 1 " 🔊 $(pulsemixer --get-volume | awk '{print $1}')%"
|
||||
else dunstify -u low -r 1 "🔈 Muted"; fi
|
||||
'';
|
||||
dunst-brightness-notification = pkgs.writeShellScriptBin "brightness-notify" ''
|
||||
dunstify -u low -r 1 " $(light -G)%"
|
||||
'';
|
||||
in
|
||||
{
|
||||
cmds.notifications.volume = "volume-notify";
|
||||
cmds.notifications.brightness = "brightness-notify";
|
||||
|
||||
home.packages = [
|
||||
dunst-volume-notification
|
||||
dunst-brightness-notification
|
||||
pkgs.libnotify
|
||||
];
|
||||
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
monitor = 0;
|
||||
follow = "keyboard";
|
||||
indicate_hidden = "yes";
|
||||
shrink = true;
|
||||
transparency = 0;
|
||||
origin = "top-center";
|
||||
offset = "0x20";
|
||||
seperator_height = 0;
|
||||
padding = 12;
|
||||
horizontal_padding = 20;
|
||||
frame_width = 4;
|
||||
seperator_color = "auto";
|
||||
font = "${config.theme.font}";
|
||||
markup = "full";
|
||||
format = "<span foreground='#b3cfa7'><b>%s</b>%p</span>\n%b";
|
||||
alignment = "center";
|
||||
show_age_threshold = 60;
|
||||
word_wrap = "yes";
|
||||
ellipsize = "middle";
|
||||
ignore_newline = "no";
|
||||
stack_duplicates = true;
|
||||
hide_duplicate_count = true;
|
||||
show_indicators = "yes";
|
||||
icon_position = "off";
|
||||
sticky_history = "yes";
|
||||
history_length = 20;
|
||||
always_run_script = true;
|
||||
browser = "/usr/bin/xdg-open";
|
||||
corner_radius = 12;
|
||||
force_xinerama = false;
|
||||
mouse_left_click = "close_current";
|
||||
mouse_middle_click = "do_action";
|
||||
mouse_right_click = "close_all";
|
||||
progress_bar_min_width = "200";
|
||||
enable_recursive_icon_lookup = true;
|
||||
};
|
||||
|
||||
urgency_low.timeout = 4;
|
||||
urgency_normal.timeout = 8;
|
||||
urgency_critical.timeout = 0;
|
||||
};
|
||||
|
||||
};
|
||||
xdg.dataFile."dbus-1/services/org.knopwob.dunst.service".source = "${pkgs.dunst}/share/dbus-1/services/org.knopwob.dunst.service";
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
#
|
||||
# System notifications
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
settings = [
|
||||
{
|
||||
profile = {
|
||||
name = "undocked";
|
||||
outputs = [
|
||||
{ criteria = "eDP-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
profile = {
|
||||
name = "docked_c";
|
||||
outputs = [
|
||||
{ criteria = "eDP-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; scale = 1.5; }
|
||||
{ criteria = "DP-1"; status = "enable"; mode = "2560x1080"; position = "1920,0"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
profile = {
|
||||
name = "docked_triple";
|
||||
outputs = [
|
||||
{ criteria = "eDP-1"; status = "disable"; mode = "1920x1080"; position = "4480,0"; }
|
||||
{ criteria = "HDMI-A-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; }
|
||||
{ criteria = "DP-1"; status = "enable"; mode = "2560x1080"; position = "1920,0"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,18 +1,15 @@
|
||||
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
services.mealie = {
|
||||
enable = true;
|
||||
#package = pkgs-unstable.mealie;
|
||||
listenAddress = "127.0.0.1";
|
||||
credentialsFile = config.age.secrets."services/mealie/credentialsFile".path;
|
||||
settings = {
|
||||
ALLOW_SIGNUP = "false";
|
||||
DB_ENGINE = "postgres";
|
||||
TZ = "Europe/Berlin";
|
||||
PGID = "911";
|
||||
PUID = "911";
|
||||
DB_ENGINE = "postgres";
|
||||
TZ = "Europe/Berlin";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -27,21 +24,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
users = {
|
||||
users = {
|
||||
mealie = {
|
||||
uid = 911;
|
||||
group = "mealie";
|
||||
isSystemUser = true;
|
||||
};
|
||||
};
|
||||
groups = {
|
||||
mealie = {
|
||||
gid = 911;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets."services/mealie/credentialsFile" = {
|
||||
file = ../../../secrets/services/mealie/credentialsFile.age;
|
||||
owner = "mealie";
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
#
|
||||
# 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