add flurry to nuos
This commit is contained in:
parent
5028d3958b
commit
570422d801
1 changed files with 41 additions and 19 deletions
|
|
@ -109,26 +109,45 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services."update-from-flake" = {
|
||||
path = with pkgs; [
|
||||
nixos-rebuild
|
||||
git
|
||||
];
|
||||
script = ''
|
||||
nixos-rebuild boot --flake github:itepastra/nixconf#nuOS
|
||||
shutdown -r +5 "System will reboot in 5 minutes"
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
systemd.services = {
|
||||
"update-from-flake" = {
|
||||
path = with pkgs; [
|
||||
nixos-rebuild
|
||||
git
|
||||
];
|
||||
script = ''
|
||||
nixos-rebuild boot --flake github:itepastra/nixconf#nuOS
|
||||
shutdown -r +5 "System will reboot in 5 minutes"
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
wants = [
|
||||
"network-online.target"
|
||||
];
|
||||
after = [
|
||||
"network-online.target"
|
||||
];
|
||||
restartIfChanged = false;
|
||||
};
|
||||
|
||||
"flurry" = {
|
||||
description = "Pixelflut server";
|
||||
confinement.enable = true;
|
||||
serviceConfig = {
|
||||
ExecStart = "${inputs.flurry.packages.${pkgs.system}.default}/bin/flurry";
|
||||
ExecStop = "pkill flurry";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
wants = [
|
||||
"network-online.target"
|
||||
];
|
||||
after = [
|
||||
"network-online.target"
|
||||
];
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
wants = [
|
||||
"network-online.target"
|
||||
];
|
||||
after = [
|
||||
"network-online.target"
|
||||
];
|
||||
restartIfChanged = false;
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
|
|
@ -279,6 +298,7 @@
|
|||
};
|
||||
|
||||
"calendar.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:29341";
|
||||
"flurry.itepastra.nl" = proxy "itepastra.nl" "http://127.0.0.1:3000";
|
||||
|
||||
# home-assistant proxy
|
||||
"home.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:8123";
|
||||
|
|
@ -311,6 +331,8 @@
|
|||
|
||||
8443 # nifi
|
||||
|
||||
7791 # flurry
|
||||
|
||||
25565 # minecraft
|
||||
24454 # minecraft (voice)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue