From b71b8335bbbdf82e6605c5b016b326ab90a9974e Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 1 Jan 2022 12:52:02 +0530 Subject: cleanse --- home.nix | 1 + hosts/olive/configuration.nix | 9 +++++---- scripts/battery.nix | 5 ++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/home.nix b/home.nix index a51f12f..5392ce8 100644 --- a/home.nix +++ b/home.nix @@ -57,6 +57,7 @@ stylish-haskell libnotify inotify-tools + rtorrent # meta nixpkgs-review diff --git a/hosts/olive/configuration.nix b/hosts/olive/configuration.nix index 9ad0e09..91d7b1c 100644 --- a/hosts/olive/configuration.nix +++ b/hosts/olive/configuration.nix @@ -22,11 +22,12 @@ interfaces = [ "wlp2s0" ]; + environmentFile = "/run/secrets/wireless.env"; networks = { - Sanic.pskRaw = "03fbbe8c6b400af40c64ea475be59812ca1d13f40beaf0bf188c50a1e959c8fd"; - Gopalan.pskRaw = "52f7f6548fa6f7f24965aae2bd7aa1a34d22a650cdc319d9d6a8567f91be85c8"; - Srividhya.pskRaw = "f4302c17d20d0ac8791960495bb3ca4e790677d87d16a7d8c414350dd67c9713"; - sage.pskRaw = "576e51f80e4a6c2c6928f5655b9a75db0dac80aba30626a96b93b67c7c66c761"; + Sanic.pskRaw = "@PSK_SANI@"; + Gopalan.pskRaw = "@PSK_GOPA@"; + Srividhya.pskRaw = "@PSK_SRIV@"; + sage.pskRaw = "@PSK_SAGE@"; }; extraConfig = '' ctrl_interface=/run/wpa_supplicant diff --git a/scripts/battery.nix b/scripts/battery.nix index e75116b..e89ad46 100644 --- a/scripts/battery.nix +++ b/scripts/battery.nix @@ -1,10 +1,9 @@ - -{ pkgs, ...}: +{ pkgs, ... }: let name = "bat"; in - pkgs.writeScriptBin name +pkgs.writeScriptBin name '' red="\e[31m" grn="\e[32m" -- cgit v1.2.3