add tooling

This commit is contained in:
Grimmauld 2024-02-07 09:58:10 +01:00
parent b1b40c6dba
commit 5edc29dced
4 changed files with 53 additions and 5 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
result result
.miracle-sink.history

View File

@ -119,12 +119,9 @@ in {
hyfetch hyfetch
usbutils usbutils
pciutils pciutils
git
btop
git-lfs
lm_sensors lm_sensors
btop
file file
(writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@")
raspberrypi-eeprom raspberrypi-eeprom
libraspberrypi libraspberrypi
]; ];

View File

@ -20,9 +20,10 @@
nixos-hardware.nixosModules.raspberry-pi-4 nixos-hardware.nixosModules.raspberry-pi-4
agenix.nixosModules.default agenix.nixosModules.default
./miraclecast.nix ./miraclecast.nix
./modules/toolchains.nix
]; ];
}; };
# formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra; formatter.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.alejandra;
}; };
} }

49
modules/toolchains.nix Normal file
View File

@ -0,0 +1,49 @@
{config, pkgs, ...}: let
git_user = "Grimmauld";
in {
environment.systemPackages = with pkgs; [
(writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@")
(writeShellScriptBin "systemd-owner" "systemctl show -pUser,UID $@")
(writeShellScriptBin "nix-referrers" "nix-store --query --referrers $@")
mkpasswd
];
programs.git = {
enable = true;
lfs.enable = true;
config = {
init.defaultBranch = "main";
credential.username = git_user;
core.editor = "${pkgs.neovim}/bin/nvim";
user.name = git_user;
user.email = "${git_user}@grimmauld.de";
};
};
programs.tmux = {
enable = true;
historyLimit = 42000;
#keyMode = "vi";
};
programs.neovim = {
enable = true;
viAlias = true;
defaultEditor = true;
configure = {
customRC = ''
set number
set hidden
set nocompatible
'';
packages.myVimPackage = with pkgs.vimPlugins; {
# loaded on launch
start = [ vim-nix vim-scala fugitive autoclose-nvim ];
# manually loadable by calling `:packadd $plugin-name`
opt = [ ];
};
};
};
programs.xonsh.enable = true;
}