tweaked home/scripts

This commit is contained in:
serenity-F 2024-12-27 01:46:44 +10:00
parent 8500c1e4a6
commit 1795a4ba02
2 changed files with 1 additions and 5 deletions

View file

@ -54,7 +54,7 @@ in {
defaultWorkspace = "workspace number 1"; defaultWorkspace = "workspace number 1";
## Use Wofi as menu ## Use Wofi as menu
menu = "${pkgs.menu}"; menu = "menu";
## Use kitty as default terminal ## Use kitty as default terminal
terminal = "kitty"; terminal = "kitty";
## Startup scripts and programs ## Startup scripts and programs

View file

@ -1,9 +1,6 @@
{ pkgs, hostname, flakePath, ... }: { pkgs, hostname, flakePath, ... }:
let let
nixsyu = pkgs.writeShellScriptBin "nixsyu" ''
cd ${flakePath} && sudo nix flake update && sudo nixos-rebuild switch --upgrade-all --flake .#${hostname} --show-trace && sudo nix-collect-garbage -d && sudo nix-store --optimise
'';
nixrb = pkgs.writeShellScriptBin "nixrb" '' nixrb = pkgs.writeShellScriptBin "nixrb" ''
cd ${flakePath} && sudo nixos-rebuild switch --flake .#${hostname} --show-trace cd ${flakePath} && sudo nixos-rebuild switch --flake .#${hostname} --show-trace
@ -23,7 +20,6 @@ let
in { in {
home.packages = [ home.packages = [
nixsyu
nixrb nixrb
nixcb nixcb
nixgc nixgc