diff options
-rw-r--r-- | flake.lock | 42 | ||||
-rw-r--r-- | hm/sils/default.nix | 1 | ||||
-rw-r--r-- | hm/waybar/default.nix | 50 | ||||
-rw-r--r-- | modules/hm/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/hm/sils/hyfetch.nix | 2 | ||||
-rw-r--r-- | modules/hm/sils/poweralertd/default.nix | 14 | ||||
-rw-r--r-- | readme.md | 14 | ||||
l--------- | result-man | 1 |
8 files changed, 88 insertions, 37 deletions
diff --git a/flake.lock b/flake.lock index 32e9e63..a2e16c2 100644 --- a/flake.lock +++ b/flake.lock @@ -114,11 +114,11 @@ }, "crane": { "locked": { - "lastModified": 1755537552, - "narHash": "sha256-Tg+P8kFIneqnQLT8E0QqlCrldtdLo1n1y619/mxRD44=", + "lastModified": 1755993354, + "narHash": "sha256-FCRRAzSaL/+umLIm3RU3O/+fJ2ssaPHseI2SSFL8yZU=", "owner": "ipetkov", "repo": "crane", - "rev": "3c40c97e1881fff381e4615e82557b333edf65c4", + "rev": "25bd41b24426c7734278c2ff02e53258851db914", "type": "github" }, "original": { @@ -287,11 +287,11 @@ ] }, "locked": { - "lastModified": 1755446520, - "narHash": "sha256-I0Ok1OGDwc1jPd8cs2VvAYZsHriUVFGIUqW+7uSsOUM=", + "lastModified": 1755960406, + "narHash": "sha256-RF7j6C1TmSTK9tYWO6CdEMtg6XZaUKcvZwOCD2SICZs=", "owner": "cachix", "repo": "git-hooks.nix", - "rev": "4b04db83821b819bbbe32ed0a025b31e7971f22e", + "rev": "e891a93b193fcaf2fc8012d890dc7f0befe86ec2", "type": "github" }, "original": { @@ -344,11 +344,11 @@ ] }, "locked": { - "lastModified": 1755810213, - "narHash": "sha256-QdenO8f0PTg+tC6HuSvngKcbRZA5oZKmjUT+MXKOLQg=", + "lastModified": 1756022458, + "narHash": "sha256-J1i35r4HfNDdPpwL0vOBaZopQudAUVtartEerc1Jryc=", "owner": "nix-community", "repo": "home-manager", - "rev": "6911d3e7f475f7b3558b4f5a6aba90fa86099baa", + "rev": "9e3a33c0bcbc25619e540b9dfea372282f8a9740", "type": "github" }, "original": { @@ -570,11 +570,11 @@ "systems": "systems_2" }, "locked": { - "lastModified": 1755814403, - "narHash": "sha256-2iULLpTIzhRF+7ppTlfAfTGqFJknKOPjjUHlm2lqFMs=", + "lastModified": 1755924483, + "narHash": "sha256-wNqpEXZuAwPjW8hYKIYzmN+fgEZT/Qx+sUIWXg3EIWU=", "owner": "nix-community", "repo": "nixvim", - "rev": "d96069b1e14c7d9b756cc7c1dcf59f04ef35756b", + "rev": "91f51aede7c9c769c19f74ba9042b8fdb4ed2989", "type": "github" }, "original": { @@ -742,11 +742,11 @@ ] }, "locked": { - "lastModified": 1755830208, - "narHash": "sha256-fMa/Hcg+4O2h+kl3gNPjtGSWPI8NtCl3LYMsejK6qGA=", + "lastModified": 1756003222, + "narHash": "sha256-lmEMhIIbjt8Wp1EYbNqCojuU9ygyDFv8Tu0X1k8qIMc=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "802a7b97f8ff672ba2dec70c9e354f51f844e796", + "rev": "88ceedecde53e809b4bf8b5fd10d181889d9bac7", "type": "github" }, "original": { @@ -796,11 +796,11 @@ "tinted-zed": "tinted-zed" }, "locked": { - "lastModified": 1755708361, - "narHash": "sha256-RmqBx2EamhIk0WVhQSNb8iehaVhilO7D0YAnMoFPqJQ=", + "lastModified": 1755997543, + "narHash": "sha256-/fejmCQ7AWa655YxyPxRDbhdU7c5+wYsFSjmEMXoBCM=", "owner": "danth", "repo": "stylix", - "rev": "2355da455d7188228aaf20ac16ea9386e5aa6f0c", + "rev": "f47c0edcf71e802378b1b7725fa57bb44fe85ee8", "type": "github" }, "original": { @@ -957,11 +957,11 @@ ] }, "locked": { - "lastModified": 1754847726, - "narHash": "sha256-2vX8QjO5lRsDbNYvN9hVHXLU6oMl+V/PsmIiJREG4rE=", + "lastModified": 1755934250, + "narHash": "sha256-CsDojnMgYsfshQw3t4zjRUkmMmUdZGthl16bXVWgRYU=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "7d81f6fb2e19bf84f1c65135d1060d829fae2408", + "rev": "74e1a52d5bd9430312f8d1b8b0354c92c17453e5", "type": "github" }, "original": { diff --git a/hm/sils/default.nix b/hm/sils/default.nix index 191b186..a5a63db 100644 --- a/hm/sils/default.nix +++ b/hm/sils/default.nix @@ -41,6 +41,7 @@ kdeconnect.enable = true; mail.enable = true; nextcloud.enable = true; + poweralertd.enable = true; sway.enable = true; swaync.enable = true; theming.enable = true; diff --git a/hm/waybar/default.nix b/hm/waybar/default.nix index 0569fce..201e15d 100644 --- a/hm/waybar/default.nix +++ b/hm/waybar/default.nix @@ -5,7 +5,10 @@ mainBar = { layer = "top"; position = "top"; - modules-left = ["hyprland/workspaces" "clock"]; + modules-left = [ + "hyprland/workspaces" + "clock" + ]; modules-center = ["hyprland/window"]; modules-right = [ "pulseaudio" @@ -34,7 +37,11 @@ pulseaudio = { format = " {icon} "; format-muted = "ﱝ"; - format-icons = ["奄" "奔" "墳"]; + format-icons = [ + "奄" + "奔" + "墳" + ]; tooltip = true; tooltip-format = "{volume}%"; }; @@ -50,7 +57,17 @@ backlight = { device = "intel_backlight"; format = "{icon}"; - format-icons = ["" "" "" "" "" "" "" "" ""]; + format-icons = [ + "" + "" + "" + "" + "" + "" + "" + "" + "" + ]; tooltip = true; tooltip-format = "{percent}%"; }; @@ -59,11 +76,30 @@ states = { warning = 30; critical = 15; + catastrophic = 10; + }; + events = { + on-discharging-warning = "${pkgs.libnotify}/bin/notify-send -u normal 'Low Battery'"; + on-discharging-critical = "${pkgs.libnotify}/bin/notify-send -u critical 'Very Low Battery' 'Hibernating soon'"; + on-discharging-catastrophic = "${pkgs.libnotify}/bin/notify-send -u critical 'Very Low Battery' 'Hibernating now' && sleep 30 && ${pkgs.systemd}/bin/systemctl hibernate --check-inhibitors=no"; }; format = "{capacity}% {icon}"; format-charging = ""; format-plugged = ""; - format-icons = ["" "" "" "" "" "" "" "" "" "" "" ""]; + format-icons = [ + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + ]; tooltip = true; tooltip-format = "{capacity}%"; }; @@ -78,10 +114,8 @@ tooltip-format = '' <big>{:%Y %B}</big> <tt><small>{calendar}</small></tt>''; - format-alt = '' - {:%d %m %Y}''; - format = '' - {:%H %M}''; + format-alt = ''{:%d %m %Y}''; + format = ''{:%H %M}''; }; tray = { diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix index 9d1fb47..c27a29c 100644 --- a/modules/hm/sils/default.nix +++ b/modules/hm/sils/default.nix @@ -16,6 +16,7 @@ ./kdeconnect.nix ./mail.nix ./nextcloud.nix + ./poweralertd ./sway.nix ./swaync ./theming.nix diff --git a/modules/hm/sils/hyfetch.nix b/modules/hm/sils/hyfetch.nix index c06d8b0..08321e6 100644 --- a/modules/hm/sils/hyfetch.nix +++ b/modules/hm/sils/hyfetch.nix @@ -13,7 +13,7 @@ in { programs.hyfetch = { enable = true; settings = { - preset = "rainbow"; + preset = "nonbinary"; mode = "rgb"; light_dark = "dark"; lightness = 0.5; diff --git a/modules/hm/sils/poweralertd/default.nix b/modules/hm/sils/poweralertd/default.nix new file mode 100644 index 0000000..15cfdc9 --- /dev/null +++ b/modules/hm/sils/poweralertd/default.nix @@ -0,0 +1,14 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.poweralertd; +in { + options.sils.poweralertd.enable = lib.mkEnableOption "poweralertd"; + config = lib.mkIf cfg.enable { + services.poweralertd = { + enable = true; + }; + }; +} diff --git a/readme.md b/readme.md index 45c6f40..7ff6c7a 100644 --- a/readme.md +++ b/readme.md @@ -7,10 +7,10 @@ focused I'll probably "finish" this someday in the not so foreseeable future. ## ToDos -[] Documentation - [] How to add Printers (very important!) -[] Switch back to declarative Wifi -[] Automate Installation - [] Make adding new Hosts interactive - [] Build batteries included ISO -[] Switch away from Hyprland - just to anything else +- [] Documentation + - [] How to add Printers (very important!) +- [] Switch back to declarative Wifi +- [] Automate Installation + - [] Make adding new Hosts interactive + - [] Build batteries included ISO +- [] Switch away from Hyprland - just to anything else diff --git a/result-man b/result-man new file mode 120000 index 0000000..6bd4f75 --- /dev/null +++ b/result-man @@ -0,0 +1 @@ +/nix/store/rw3a44jhk6jm0742yh56kpcl7f9kv4cb-libnotify-0.8.6-man \ No newline at end of file |