nixserver service
This commit is contained in:
parent
b4cc4c66f2
commit
c2bf899017
2 changed files with 29 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
||||||
# Users this machine has
|
# Users this machine has
|
||||||
(settings.usersDir + "/root/configuration.nix")
|
(settings.usersDir + "/root/configuration.nix")
|
||||||
(settings.usersDir + "/luser/configuration.nix")
|
(settings.usersDir + "/luser/configuration.nix")
|
||||||
|
|
||||||
|
(settings.hostsDir + "/h002/nixserver.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
|
|
27
hosts/h002/nixserver.nix
Normal file
27
hosts/h002/nixserver.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ settings, pkgs, ... }:
|
||||||
|
{
|
||||||
|
# [Unit]
|
||||||
|
# Description=Nixserver Agent
|
||||||
|
# After=network.target
|
||||||
|
|
||||||
|
# [Service]
|
||||||
|
# ExecStart=/usr/local/bin/nixserver agent run
|
||||||
|
# Restart=always
|
||||||
|
# User=luser
|
||||||
|
# Group=luser
|
||||||
|
|
||||||
|
# [Install]
|
||||||
|
# WantedBy=multi-user.target
|
||||||
|
|
||||||
|
systemd.services.nixserver_agent = {
|
||||||
|
description = "Nixserver Agent";
|
||||||
|
after = [ "network.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Environment = "PATH=/run/wrappers/bin:/home/luser/.nix-profile/bin:/nix/profile/bin:/home/luser/.local/state/nix/profile/bin:/etc/profiles/per-user/luser/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin";
|
||||||
|
ExecStart = "/usr/local/bin/nixserver agent run";
|
||||||
|
Restart = "always";
|
||||||
|
User = "luser";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue