configs again

This commit is contained in:
KoenDR06 2024-03-25 21:41:10 +01:00
parent 573e3fb940
commit c07a3d00ee
5 changed files with 55 additions and 0 deletions

9
git-push.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
cd /home/horseman/nix-config
cp -r nixos machines/pc
git add *
git commit *
git push

View file

@ -0,0 +1,6 @@
#!bin/bash
cd /home/horseman/nix-config
git pull
sudo nixos-rebuild switch --flake .#laptop-koen
exit 0

View file

@ -136,6 +136,23 @@
services.xserver.displayManager.gdm.enable = true;
boot.loader.systemd-boot.enable = true;
systemd.timers."update-config" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "1m";
Unit = "update-config.service";
};
};
systemd.services."update-config" = {
script = ''
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
# TODO: Configure your system-wide user settings (groups, etc), add more users as needed.
users.users = {

View file

@ -0,0 +1,6 @@
#!bin/bash
cd /home/horseman/nix-config
git pull
sudo nixos-rebuild switch --flake .#pc-koen
exit 0

View file

@ -136,6 +136,23 @@
services.xserver.displayManager.gdm.enable = true;
boot.loader.systemd-boot.enable = true;
systemd.timers."update-config" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "1m";
Unit = "update-config.service";
};
};
systemd.services."update-config" = {
script = ''
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
# TODO: Configure your system-wide user settings (groups, etc), add more users as needed.
users.users = {