From 569b36c7529e6552cd8f1b8152d5019c7b36ce8f Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Tue, 30 Apr 2024 12:08:28 +0200 Subject: [PATCH] tweak tooling --- common/network/default.nix | 1 + common/tooling/default.nix | 10 ++++++++++ common/tooling/nix.nix | 11 ++++++++++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/common/network/default.nix b/common/network/default.nix index 0d348bc..a45ace2 100644 --- a/common/network/default.nix +++ b/common/network/default.nix @@ -11,6 +11,7 @@ in environment.systemPackages = with pkgs; [ wireguard-tools + openconnect ]; }; diff --git a/common/tooling/default.nix b/common/tooling/default.nix index 6680d81..c88da07 100644 --- a/common/tooling/default.nix +++ b/common/tooling/default.nix @@ -21,6 +21,7 @@ in pkg-config unzip p7zip + dos2unix tea eza @@ -63,9 +64,17 @@ in user.name = cfg.tooling.git_user; user.email = cfg.tooling.git_email; push.autoSetupRemote = true; + core.autocrlf = "input"; + commit.gpgsign = true; + pull.rebase = true; }; }; + environment.shellAliases = { + ":q" = "exit"; + "ls" = "eza"; + }; + programs.tmux = { enable = true; historyLimit = 42000; @@ -95,6 +104,7 @@ in set fileencodings=utf-8 set nocompatible set clipboard+=unnamedplus + set ff=unix luafile ${luarc} diff --git a/common/tooling/nix.nix b/common/tooling/nix.nix index cf90d22..0fd6b0e 100644 --- a/common/tooling/nix.nix +++ b/common/tooling/nix.nix @@ -27,7 +27,16 @@ in ]; nixpkgs.config.allowUnfree = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings = { + experimental-features = [ "nix-command" "flakes" ]; + warn-dirty = false; + }; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; nix.package = pkgs.nixVersions.unstable; + nix.optimise.automatic = true; nixpkgs.hostPlatform = system; }