about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/common/qutebrowser.nix5
-rw-r--r--modules/nixos/common/console.nix5
-rw-r--r--modules/nixos/profiles/default.nix1
3 files changed, 5 insertions, 6 deletions
diff --git a/modules/common/qutebrowser.nix b/modules/common/qutebrowser.nix
index 8eadf5a..96da894 100644
--- a/modules/common/qutebrowser.nix
+++ b/modules/common/qutebrowser.nix
@@ -532,8 +532,9 @@ in {
       home.activation.installQutebrowserDictionaries = let
         dictcli = "${pkgs.qutebrowser}/share/qutebrowser/scripts/dictcli.py";
       in ''
-        # TODO Check if already installed.
-        ${dictcli} install en-US en-GB ru-RU
+        if [[ ! -d "''${XDG_DATA_HOME:-$HOME/.local/share}/qutebrowser/qtwebengine_dictionaries" ]]; then
+            ${dictcli} install en-US en-GB ru-RU
+        fi
       '';
     };
   };
diff --git a/modules/nixos/common/console.nix b/modules/nixos/common/console.nix
index 60a7153..e280919 100644
--- a/modules/nixos/common/console.nix
+++ b/modules/nixos/common/console.nix
@@ -1,13 +1,10 @@
 {
   config,
-  lib,
   pkgs,
   ...
-}:
-with lib; {
+}: {
   console = {
     earlySetup = true;
-    colors = take 16 (mapAttrsToList (_: removePrefix "#") config.colourScheme);
     font = "${pkgs.terminus_font}/share/consolefonts/ter-v16b.psf.gz";
     useXkbConfig = config.services.xserver.enable;
   };
diff --git a/modules/nixos/profiles/default.nix b/modules/nixos/profiles/default.nix
index e19d8b1..2027758 100644
--- a/modules/nixos/profiles/default.nix
+++ b/modules/nixos/profiles/default.nix
@@ -27,6 +27,7 @@ in {
       lsof
       pciutils
       psmisc
+      sysstat
       usbutils
       util-linux
     ];

Consider giving Nix/NixOS a try! <3