diff --git a/config/optional/dev.nix b/config/optional/dev.nix index 641cd36..527a146 100644 --- a/config/optional/dev.nix +++ b/config/optional/dev.nix @@ -28,7 +28,9 @@ lib.optionalAttrs (!minimal) { }; documentation = { dev.enable = true; + doc.enable = false; man.enable = true; info.enable = false; + nixos.enable = false; }; } diff --git a/config/services/octoprint.nix b/config/services/octoprint.nix index b075681..2ec57dd 100644 --- a/config/services/octoprint.nix +++ b/config/services/octoprint.nix @@ -3,14 +3,15 @@ client.via = "elisabeth"; firewallRuleForNode.elisabeth.allowedTCPPorts = [config.services.octoprint.port]; }; - networking.firewall.allowedTCPPorts = [3000]; services.octoprint = { port = 3000; enable = true; + plugins = ps: with ps; [ender3v2tempfix costestimation themeify dashboard]; extraConfig = { accessControl = { addRemoteUser = true; trustRemoteUser = true; + remoteUserHeader = "X-User"; }; }; }; diff --git a/hosts/elisabeth/guests.nix b/hosts/elisabeth/guests.nix index 1f2204f..ad6509f 100644 --- a/hosts/elisabeth/guests.nix +++ b/hosts/elisabeth/guests.nix @@ -30,7 +30,7 @@ in "${domains.${hostName}}.${config.secrets.secrets.global.domains.web}"; # TODO hard coded elisabeth nicht so schön ipOf = hostName: - if nodes ? hostName + if nodes ? ${hostName} then nodes.${hostName}.config.wireguard.elisabeth.ipv4 else nodes."elisabeth-${hostName}".config.wireguard.elisabeth.ipv4; in { diff --git a/users/common/graphical/wayland/waybar/default.nix b/users/common/graphical/wayland/waybar/default.nix index 4ad7a06..9ec6410 100644 --- a/users/common/graphical/wayland/waybar/default.nix +++ b/users/common/graphical/wayland/waybar/default.nix @@ -66,7 +66,7 @@ format = "{icon} {capacity}%"; format-icons = ["" "" "" "" "" "" "" "" ""]; states = { - critical = 15; + critical = 10; warning = 20; }; }; diff --git a/users/common/graphical/wayland/waybar/waybar.css b/users/common/graphical/wayland/waybar/waybar.css index aa977b9..cbf7698 100644 --- a/users/common/graphical/wayland/waybar/waybar.css +++ b/users/common/graphical/wayland/waybar/waybar.css @@ -96,13 +96,20 @@ button:hover { color: #000000; } } +#battery { + color: #ffffff; + background-color: #000000; +} /* Using steps() instead of linear as a timing function to limit cpu usage */ +/* I would like for this to just blink sadly I don't think thats possible*/ +/* you cannot have step with 'jump-none' so you will always be not fully red or black*/ +/* and the animation delay is only applied once not in every iteration*/ #battery.critical:not(.charging) { background-color: #e05f65; animation-name: blink; animation-duration: 0.5s; - animation-timing-function: steps(12); + animation-timing-function: steps(2); animation-iteration-count: infinite; animation-direction: alternate; }