diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-12-12 01:08:23 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-12-12 01:08:23 +0300 |
commit | 452110c88d2ef0137d28e9270a4551d26144d684 (patch) | |
tree | 45ecf70463792f317a26717fcbce022b6f20ae97 /modules | |
parent | 2023-12-10 (diff) |
2023-12-12
Diffstat (limited to '')
-rw-r--r-- | modules/common/qutebrowser.nix | 5 | ||||
-rw-r--r-- | modules/nixos/common/console.nix | 5 | ||||
-rw-r--r-- | modules/nixos/profiles/default.nix | 1 |
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 ]; |