Compare commits

...

2 Commits

Author SHA1 Message Date
Moritz Böhme 4ff3bfbf50
feat: remove programs/services and add others 2024-03-21 18:47:46 +01:00
Moritz Böhme 10f9389319
feat: improve gi script 2024-03-21 18:46:06 +01:00
2 changed files with 7 additions and 5 deletions

View File

@ -19,6 +19,7 @@
gaming.enable = true; gaming.enable = true;
personal.enable = true; personal.enable = true;
impermanence.enable = true; impermanence.enable = true;
webis.enable = true;
}; };
programs.hyprland = { programs.hyprland = {
nvidiaSupport = true; nvidiaSupport = true;
@ -26,9 +27,8 @@
extraConfig = "exec=hyprctl keyword monitor HDMI-A-1,3840x2160@120,auto,1.2"; extraConfig = "exec=hyprctl keyword monitor HDMI-A-1,3840x2160@120,auto,1.2";
keyboardLayouts = [ "us" "de" ]; keyboardLayouts = [ "us" "de" ];
}; };
programs.exercism.enable = true;
services.wallpaper.enable = true; services.wallpaper.enable = true;
services.ollama.enable = true;
programs.ledger.enable = true;
}; };
home-manager.users.moritz.home.packages = with pkgs; [ home-manager.users.moritz.home.packages = with pkgs; [

View File

@ -44,7 +44,7 @@ let
gi = pkgs.writeFishApplication { gi = pkgs.writeFishApplication {
name = "gi"; name = "gi";
runtimeInputs = with pkgs; [ fzf gum curl ]; runtimeInputs = with pkgs; [ fzf gum curl coreutils-full ];
text = /* fish */ '' text = /* fish */ ''
set url https://www.gitignore.io/api set url https://www.gitignore.io/api
@ -57,10 +57,12 @@ let
set choice (string join "," $argv[1..]) set choice (string join "," $argv[1..])
end end
set contents "$(curl -sL $url/$choice | head -n -2 | tail -n +4)"
if gum confirm "Overwrite current .gitignore?" if gum confirm "Overwrite current .gitignore?"
curl -sL $url/$choice > .gitignore echo "$contents" > .gitignore
else else
curl -sL $url/$choice >> .gitignore echo "$contents" >> .gitignore
end end
''; '';
completions = /* fish */ '' completions = /* fish */ ''