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

38 lines
957 B
Nix

{ config, pkgs, lib, modulesPath, ... }:
{
imports = [
(modulesPath + "/profiles/minimal.nix")
../../../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 ];
systemd.services.ledball = {
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.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?
}