add tooling
This commit is contained in:
parent
b1b40c6dba
commit
5edc29dced
4 changed files with 53 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
result
|
||||
.miracle-sink.history
|
||||
|
|
|
@ -119,12 +119,9 @@ in {
|
|||
hyfetch
|
||||
usbutils
|
||||
pciutils
|
||||
git
|
||||
btop
|
||||
git-lfs
|
||||
lm_sensors
|
||||
btop
|
||||
file
|
||||
(writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@")
|
||||
raspberrypi-eeprom
|
||||
libraspberrypi
|
||||
];
|
||||
|
|
|
@ -20,9 +20,10 @@
|
|||
nixos-hardware.nixosModules.raspberry-pi-4
|
||||
agenix.nixosModules.default
|
||||
./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
49
modules/toolchains.nix
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue