Merge branch 'nixos' into nixos-work

This commit is contained in:
Moritz Böhme 2024-04-24 09:02:47 +02:00
commit 30322bd08a
23 changed files with 825 additions and 434 deletions

View file

@ -44,7 +44,7 @@ let
gi = pkgs.writeFishApplication {
name = "gi";
runtimeInputs = with pkgs; [ fzf gum curl ];
runtimeInputs = with pkgs; [ fzf gum curl coreutils-full ];
text = /* fish */ ''
set url https://www.gitignore.io/api
@ -57,10 +57,12 @@ let
set choice (string join "," $argv[1..])
end
set contents "$(curl -sL $url/$choice | head -n -2 | tail -n +4)"
if gum confirm "Overwrite current .gitignore?"
curl -sL $url/$choice > .gitignore
echo "$contents" > .gitignore
else
curl -sL $url/$choice >> .gitignore
echo "$contents" >> .gitignore
end
'';
completions = /* fish */ ''
@ -77,7 +79,7 @@ in
isNormalUser = true;
home = "/home/moritz";
extraGroups = [ "wheel" "networkmanager" "video" ];
initialPassword = "password"; # CHANGE ME PLEASE
# initialPassword = "password"; # CHANGE ME PLEASE
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGoAqa2m7hIzZ2LS96Z+RCIlRvhBM/j7h27tMBCwMT+a" # Moritz
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDhtwHDGAZshiQWKkCcPWV9tC83b+bKBgjDcjP/N2CKO" # Laptop
@ -247,7 +249,7 @@ in
parallel
ripgrep
vim
viu
(viu.override { withSixel = true; })
wget
];

View file

@ -68,6 +68,7 @@ in
".local/share/fish/fish_history"
".local/share/nix/trusted-settings.json"
".parallel/will-cite"
".local/state/tofi-history"
];
};
users.root = {