diff options
Diffstat (limited to '')
26 files changed, 16 insertions, 60 deletions
diff --git a/modules/common/aria2.nix b/modules/common/aria2.nix index f33acb9..449d96c 100644 --- a/modules/common/aria2.nix +++ b/modules/common/aria2.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: with lib; let diff --git a/modules/common/common/documentation.nix b/modules/common/common/documentation.nix index 55f6138..e9d4a79 100644 --- a/modules/common/common/documentation.nix +++ b/modules/common/common/documentation.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, this, ... }: diff --git a/modules/common/emacs/default.nix b/modules/common/emacs/default.nix index 7395c51..bdbbf43 100644 --- a/modules/common/emacs/default.nix +++ b/modules/common/emacs/default.nix @@ -1,6 +1,5 @@ { config, - inputs, lib, pkgs, pkgsStable, diff --git a/modules/common/openconnect.nix b/modules/common/openconnect.nix index 780f93f..936c9d1 100644 --- a/modules/common/openconnect.nix +++ b/modules/common/openconnect.nix @@ -10,7 +10,7 @@ in { options.nixfiles.modules.openconnect.enable = mkEnableOption "OpenConnect VPN"; - config = mkIf.enable { + config = mkIf cfg.enable { assertions = [ { assertion = config.networking.networkmanager.enable; @@ -35,7 +35,7 @@ in { networking.networkmanager.plugins = with pkgs; [ ((networkmanager-openconnect.override { withGnome = false; - openconnect = openconnect.overrideAttrs (_: super: { + openconnect = openconnect.overrideAttrs (_: _: { version = "unstable-2022-10-23"; src = fetchFromGitLab { owner = "openconnect"; diff --git a/modules/common/profiles/dev/default.nix b/modules/common/profiles/dev/default.nix index b05aeac..366590f 100644 --- a/modules/common/profiles/dev/default.nix +++ b/modules/common/profiles/dev/default.nix @@ -2,7 +2,6 @@ config, lib, pkgs, - this, ... }: with lib; let diff --git a/modules/common/vim/default.nix b/modules/common/vim/default.nix index 0328e10..2ee8a0b 100644 --- a/modules/common/vim/default.nix +++ b/modules/common/vim/default.nix @@ -2,7 +2,6 @@ config, lib, pkgs, - this, ... }: with lib; let diff --git a/modules/common/vscode.nix b/modules/common/vscode.nix index 6671973..92ce5b5 100644 --- a/modules/common/vscode.nix +++ b/modules/common/vscode.nix @@ -132,35 +132,15 @@ in { git.allowForcePush = true; - vim = let - applyInputMethod = { - "ibus" = let - bin = "${pkgs.ibus}/bin/ibus"; - in { - enable = true; - defaultIM = "xkb:us::eng"; - obtainIMCmd = "${bin} engine"; - switchIMCmd = "${bin} engine {im}"; - }; - "fcitx" = let - bin = "${pkgs.fcitx}/bin/fcitx-remote"; - in { - enable = true; - defaultIM = "1"; - obtainIMCmd = bin; - switchIMCmd = "${bin} -t {im}"; - }; - }; - in - mkIf cfg.vim.enable rec { - easymotion = true; - easymotionMarkerFontFamily = fontFamily; - easymotionMarkerFontSize = fontSize; + vim = mkIf cfg.vim.enable rec { + easymotion = true; + easymotionMarkerFontFamily = fontFamily; + easymotionMarkerFontSize = fontSize; - leader = " "; + leader = " "; - useSystemClipboard = true; - }; + useSystemClipboard = true; + }; }; }; }; diff --git a/modules/darwin/homebrew.nix b/modules/darwin/homebrew.nix index 35e8e77..990afae 100644 --- a/modules/darwin/homebrew.nix +++ b/modules/darwin/homebrew.nix @@ -1,8 +1,6 @@ { config, - inputs, lib, - pkgs, ... }: with lib; let diff --git a/modules/darwin/profiles/default.nix b/modules/darwin/profiles/default.nix index 3e783b9..ac3f652 100644 --- a/modules/darwin/profiles/default.nix +++ b/modules/darwin/profiles/default.nix @@ -2,7 +2,6 @@ config, lib, pkgs, - this, ... }: with lib; let diff --git a/modules/darwin/profiles/headful.nix b/modules/darwin/profiles/headful.nix index 5484dfe..2a4c773 100644 --- a/modules/darwin/profiles/headful.nix +++ b/modules/darwin/profiles/headful.nix @@ -1,8 +1,6 @@ { config, lib, - pkgs, - this, ... }: with lib; let diff --git a/modules/nixos/android.nix b/modules/nixos/android.nix index 307490a..41b7ef9 100644 --- a/modules/nixos/android.nix +++ b/modules/nixos/android.nix @@ -1,8 +1,6 @@ { config, lib, - inputs, - pkgs, ... }: with lib; let diff --git a/modules/nixos/bluetooth.nix b/modules/nixos/bluetooth.nix index 76131bf..26d081d 100644 --- a/modules/nixos/bluetooth.nix +++ b/modules/nixos/bluetooth.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: with lib; let diff --git a/modules/nixos/common/nix.nix b/modules/nixos/common/nix.nix index 48c52b3..efebe97 100644 --- a/modules/nixos/common/nix.nix +++ b/modules/nixos/common/nix.nix @@ -2,7 +2,6 @@ config, inputs, lib, - this, ... }: with lib; let diff --git a/modules/nixos/common/security.nix b/modules/nixos/common/security.nix index d146cee..7a3d3b3 100644 --- a/modules/nixos/common/security.nix +++ b/modules/nixos/common/security.nix @@ -1,8 +1,4 @@ -{ - inputs, - lib, - ... -}: +{lib, ...}: with lib; { security = { sudo = { diff --git a/modules/nixos/endlessh.nix b/modules/nixos/endlessh.nix index 67789fd..1350a6a 100644 --- a/modules/nixos/endlessh.nix +++ b/modules/nixos/endlessh.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: with lib; let diff --git a/modules/nixos/matrix/synapse.nix b/modules/nixos/matrix/synapse.nix index 6ff5e0d..1117f23 100644 --- a/modules/nixos/matrix/synapse.nix +++ b/modules/nixos/matrix/synapse.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: with lib; let diff --git a/modules/nixos/monitoring/default.nix b/modules/nixos/monitoring/default.nix index 57a0d09..a48701e 100644 --- a/modules/nixos/monitoring/default.nix +++ b/modules/nixos/monitoring/default.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: with lib; let diff --git a/modules/nixos/openssh.nix b/modules/nixos/openssh.nix index 6f4614c..164f5bb 100644 --- a/modules/nixos/openssh.nix +++ b/modules/nixos/openssh.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: with lib; let diff --git a/modules/nixos/postgresql.nix b/modules/nixos/postgresql.nix index df05e7e..79515e8 100644 --- a/modules/nixos/postgresql.nix +++ b/modules/nixos/postgresql.nix @@ -43,6 +43,9 @@ in { inherit (cfg) package; + # In hindsight, it was a poor choice to use ICU as a locale provider. + # Now each time ICU version is bumped, I need to carefully upgrade each + # database to match the version. initdbArgs = [ "--encoding=UTF8" "--locale-provider=icu" @@ -52,6 +55,9 @@ in { "--lc-ctype=C" ]; + # This crutch is here because some services cannot work via a UNIX + # socket connection and I can't be bothered to configure proper + # authentication. authentication = '' local all all trust ''; diff --git a/modules/nixos/profiles/default.nix b/modules/nixos/profiles/default.nix index 0c78b0f..e19d8b1 100644 --- a/modules/nixos/profiles/default.nix +++ b/modules/nixos/profiles/default.nix @@ -2,7 +2,6 @@ config, lib, pkgs, - this, ... }: with lib; let diff --git a/modules/nixos/profiles/dev/default.nix b/modules/nixos/profiles/dev/default.nix index 8cb2356..bba8ebd 100644 --- a/modules/nixos/profiles/dev/default.nix +++ b/modules/nixos/profiles/dev/default.nix @@ -1,8 +1,6 @@ { config, lib, - pkgs, - this, ... }: with lib; let diff --git a/modules/nixos/profiles/headful.nix b/modules/nixos/profiles/headful.nix index ede921a..71addbf 100644 --- a/modules/nixos/profiles/headful.nix +++ b/modules/nixos/profiles/headful.nix @@ -2,7 +2,6 @@ config, lib, pkgs, - this, ... }: with lib; let diff --git a/modules/nixos/profiles/headless.nix b/modules/nixos/profiles/headless.nix index efe4d03..40f68ed 100644 --- a/modules/nixos/profiles/headless.nix +++ b/modules/nixos/profiles/headless.nix @@ -2,7 +2,6 @@ config, lib, pkgs, - this, ... }: with lib; let diff --git a/modules/nixos/syncthing.nix b/modules/nixos/syncthing.nix index b690ab4..b0d98bc 100644 --- a/modules/nixos/syncthing.nix +++ b/modules/nixos/syncthing.nix @@ -2,7 +2,6 @@ config, inputs, lib, - pkgs, this, ... }: diff --git a/modules/nixos/x11.nix b/modules/nixos/x11.nix index cd8dfbe..f2d850b 100644 --- a/modules/nixos/x11.nix +++ b/modules/nixos/x11.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: with lib; let diff --git a/modules/nixos/xmonad.nix b/modules/nixos/xmonad.nix index 2cc7ad6..da005b2 100644 --- a/modules/nixos/xmonad.nix +++ b/modules/nixos/xmonad.nix @@ -1,6 +1,5 @@ { config, - inputs, lib, pkgs, ... |