nix-config/hosts/containers/ledstripes/configuration.nix

41 lines
1.0 KiB
Nix
Raw Normal View History

2020-08-04 17:15:07 +02:00
{ config, pkgs, lib, modulesPath, ... }:
{
imports = [
2020-08-04 17:15:07 +02:00
(modulesPath + "/profiles/minimal.nix")
../../../lib
../../../lib/lxc-container.nix
../../../lib/shared.nix
];
c3d2 = {
isInHq = true;
hq.interface = "eth0";
enableHail = false;
};
networking.hostName = "ledstripes";
networking.useNetworkd = true;
# Required for krops
services.openssh.enable = true;
environment.systemPackages = [ pkgs.git ];
2020-04-04 00:56:53 +02:00
systemd.services.ledball =
2020-08-04 17:15:07 +02:00
let pile = import ../../../lib/pkgs/pile.nix { inherit pkgs; };
2020-04-04 00:56:53 +02:00
in {
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pile.ledball}/bin/rows";
Restart = "always";
};
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "20.03"; # Did you read the comment?
}