configs again
This commit is contained in:
parent
573e3fb940
commit
c07a3d00ee
5 changed files with 55 additions and 0 deletions
9
git-push.sh
Executable file
9
git-push.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /home/horseman/nix-config
|
||||
|
||||
cp -r nixos machines/pc
|
||||
|
||||
git add *
|
||||
git commit *
|
||||
git push
|
||||
6
machines/laptop/update-config.sh
Normal file
6
machines/laptop/update-config.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!bin/bash
|
||||
|
||||
cd /home/horseman/nix-config
|
||||
git pull
|
||||
sudo nixos-rebuild switch --flake .#laptop-koen
|
||||
exit 0
|
||||
|
|
@ -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 = {
|
||||
|
|
|
|||
6
machines/pc/update-config.sh
Normal file
6
machines/pc/update-config.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!bin/bash
|
||||
|
||||
cd /home/horseman/nix-config
|
||||
git pull
|
||||
sudo nixos-rebuild switch --flake .#pc-koen
|
||||
exit 0
|
||||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue