more devices
This commit is contained in:
parent
1c6f6ef6d3
commit
921a59a30e
4 changed files with 97 additions and 18 deletions
29
hosts/_common/components/stormd.nix
Normal file
29
hosts/_common/components/stormd.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# ];
|
||||
|
||||
# TODO make a derivation for stormd binary and get it properlly in the store. This is super janky and the binary just has to exist there right now.
|
||||
|
||||
# networking.firewall.allowedUDPPorts = [ 4242 ];
|
||||
|
||||
systemd.services."stormd" = {
|
||||
description = "Stormd service";
|
||||
wants = [ "basic.target" ];
|
||||
after = [
|
||||
"basic.target"
|
||||
"network.target"
|
||||
];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "notify";
|
||||
Restart = "always";
|
||||
RestartSec = 1;
|
||||
ExecStart = "/etc/stormd/stormd daemon";
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitIntervalSec = 5;
|
||||
StartLimitBurst = 3;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -16,6 +16,7 @@
|
|||
(settings.hostsDir + "/_common/components/home_manager.nix")
|
||||
(settings.hostsDir + "/_common/components/gnome_xorg.nix")
|
||||
(settings.hostsDir + "/_common/components/docker.nix")
|
||||
# (settings.hostsDir + "/_common/components/stormd.nix") TODO figure out why this is failing
|
||||
(settings.hostsDir + "/_common/components/nebula.nix")
|
||||
# Users this machine has
|
||||
(settings.usersDir + "/root/configuration.nix")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue