diff --git a/home/ags/default.nix b/home/ags/default.nix index e4724be..cc8356f 100644 --- a/home/ags/default.nix +++ b/home/ags/default.nix @@ -1,4 +1,4 @@ -{ inputs, pkgs, ... }: +{ inputs, config, pkgs, ... }: { imports = [ inputs.ags.homeManagerModules.default ]; home.packages = [ @@ -14,4 +14,9 @@ accountsservice ]; }; + + # home.file."${config.xdg.configHome}/ags" = { + # source = config.lib.file.mkOutOfStoreSymlink ./files; + # recursive = true; + # }; } diff --git a/home/ags/files/config.js b/home/ags/files/config.js index 0a27c33..a740586 100644 --- a/home/ags/files/config.js +++ b/home/ags/files/config.js @@ -13,7 +13,8 @@ const batteryIndicator = Widget.Box({ Widget.Icon().hook(battery, self => { const thresholds = [...Array(11).keys()].map( i => i * 10); const icon = thresholds.find(threshold => threshold >= battery.percent) - self.icon = battery.charging? `battery-level-${icon}-charging-symbolic` : `battery-level-${icon}-symbolic` + const charging_name = battery.percent === 100 ? "charging" : "charged" + self.icon = battery.charging? `battery-level-${icon}-${charging_name}-symbolic` : `battery-level-${icon}-symbolic` self.tooltip_text = `Battery ${battery.percent}%` self.class_name = "battery-item"; }), diff --git a/hosts/Aloria/default.nix b/hosts/Aloria/default.nix index 90737d1..9cc36a6 100644 --- a/hosts/Aloria/default.nix +++ b/hosts/Aloria/default.nix @@ -18,12 +18,27 @@ zramSwap.enable = true; services.logind.extraConfig = ''HandlePowerKey=ignore''; + networking.wg-quick.interfaces = { - wg0 = { + Tunnel = { address = [ "10.0.0.5/24" "2a02:a03f:83ad:2101::5/128" ]; privateKeyFile = "/home/user/.secrets/Wireguard/Aloria.key"; listenPort = 51820; - postUp = "resolvectl dns wg0 10.0.0.1; resolvectl domain wg0 ~thomasave.be;"; + autostart = false; + postUp = "resolvectl dns Tunnel 10.0.0.1; resolvectl domain Tunnel ~thomasave.be;"; + peers = [{ + publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c="; + allowedIPs = [ "0.0.0.0/0" "::/0" ]; + endpoint = "h.thomasave.be:13231"; + persistentKeepalive = 25; + }]; + }; + OPNsense = { + address = [ "10.0.0.5/24" "2a02:a03f:83ad:2101::5/128" ]; + privateKeyFile = "/home/user/.secrets/Wireguard/Aloria.key"; + listenPort = 51820; + autostart = true; + postUp = "resolvectl dns OPNsense 10.0.0.1; resolvectl domain OPNsense ~thomasave.be;"; peers = [{ publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c="; allowedIPs = [ "10.0.0.1/8" "192.168.1.2/32" ];