Compare commits

..

3 Commits

3 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
smb-secrets
nixos-switch.log

View File

@@ -244,6 +244,7 @@ in
ibm-plex
imagemagick
kdePackages.kdenlive
libnotify
libreoffice
logiops
nerd-fonts.blex-mono
@@ -253,6 +254,8 @@ in
runelite
];
services.mako.enable = true;
services.mpd = {
enable = true;
extraConfig = ''

11
home/scripts/nixswitch.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
cd ~/nixos-config
sudo nixos-rebuild switch --flake . &>nixos-switch.log || (cat nixos-switch.log | grep --color error && exit 1)
current=$(nixos-rebuild list-generations | grep current)
git commit -am "$current"
notify-send -e "NixOS Rebuilt OK!" --icon=software-update-available