nix-config/hosts/containers/ledstripes/configuration.nix
Emery Hemingway f066f4cb82 Split "lib" into "config" and "modules"
Separate modules that add options from modules that change
configuration.
2022-01-15 21:04:38 +01:00

39 lines
1001 B
Nix

{ config, pkgs, lib, modulesPath, ... }:
{
imports = [
(modulesPath + "/profiles/minimal.nix")
../../../config
../../../config/lxc-container.nix
../../../config/shared.nix
];
c3d2 = {
isInHq = true;
hq.interface = "eth0";
};
networking.hostName = "ledstripes";
networking.useNetworkd = true;
# Required for krops
services.openssh.enable = true;
systemd.services.ledball =
let pile = import ../../../config/pkgs/pile.nix { inherit pkgs; };
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?
}