many changes (begin proper git tracking)

This commit is contained in:
Daniella / Tove 2024-10-19 02:16:31 +02:00
parent f426085c43
commit 1a053321b2
3 changed files with 40 additions and 0 deletions

View file

@ -36,6 +36,8 @@ in
git
pavucontrol
zip unzip
networkmanagerapplet
libproxy
modemmanager
modem-manager-gui
fastfetch
@ -50,6 +52,12 @@ in
proot
inetutils
openjdk17
gnupg
rage
pinentry-qt
wireguard-tools
iftop
pciutils
(import ./sl.script.nix)
(import ./startsync.script.nix)
(import ./bright.script.nix)
@ -57,6 +65,7 @@ in
(import ./sshpc.script.nix)
(import ./pushfile.script.nix)
(import ./dropfile.script.nix)
(import ./nixos-edit.script.nix)
];
programs.fish.enable = true;
@ -122,6 +131,7 @@ in
xclip
clipit
];
services.gvfs.enable = true;
services.logind.lidSwitch = "ignore";
# Configure keymap in X11

View file

@ -32,7 +32,14 @@ in
bluej
pcmanfm
filezilla
tree-sitter
gnome-network-displays
prismlauncher
prusa-slicer
evcxr
tcpdump
] ++ (with pkgs; [
freecad
nheko
olm
mkchromecast

23
nixos-edit.script.nix Normal file
View file

@ -0,0 +1,23 @@
with import <nixpkgs> {};
pkgs.writeShellScriptBin "nixos-edit" ''
#!/bin/sh
cd /etc/nixos
if [ "$1" = "pull" ] ; then
git pull
fi
if [ "$1" = "edit" ] || [ "$1" = "" ] ; then
sudo hx .
git add .
EDITOR=hx git commit -a
git push
fi
if [ "$1" = "update" ] ; then
git push
sudo nixos-rebuild switch --upgrade
else
sudo nixos-rebuild switch
fi
''