From 452110c88d2ef0137d28e9270a4551d26144d684 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 12 Dec 2023 01:08:23 +0300 Subject: 2023-12-12 --- modules/common/qutebrowser.nix | 5 +++-- modules/nixos/common/console.nix | 5 +---- modules/nixos/profiles/default.nix | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'modules') 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 ]; -- cgit 1.4.1