Initial drone container config
This commit is contained in:
parent
fd289c62d4
commit
7cb55cd7b2
4 changed files with 48 additions and 1 deletions
|
@ -32,4 +32,5 @@ rec {
|
|||
# nix-build ./krops.nix -A loki && ./result
|
||||
|
||||
loki = createHost "loki" "root@loki";
|
||||
drone = createHost "drone" "root@10.0.0.185";
|
||||
}
|
||||
|
|
40
machines/drone/configuration.nix
Normal file
40
machines/drone/configuration.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ self, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../users/root
|
||||
../../users/erwin
|
||||
];
|
||||
|
||||
eboskma = {
|
||||
docker.enable = true;
|
||||
nix-common.enable = true;
|
||||
};
|
||||
|
||||
boot.isContainer = true;
|
||||
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
|
||||
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
|
||||
|
||||
networking = {
|
||||
hostName = "drone";
|
||||
useDHCP = false;
|
||||
|
||||
interfaces = {
|
||||
eth0 = {
|
||||
ipv4.addresses = [{
|
||||
address = "10.0.0.202";
|
||||
prefixLength = "24";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
defaultGateway = "10.0.0.1";
|
||||
nameservers = [ "10.0.0.254" ];
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
system.stateVersion = "21.11";
|
||||
}
|
6
machines/drone/hardware-configuration.nix
Normal file
6
machines/drone/hardware-configuration.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/lxc-container.nix")
|
||||
];
|
||||
}
|
|
@ -10,7 +10,7 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
config.eboskma.docker.enable = true;
|
||||
eboskma.docker.enable = true;
|
||||
|
||||
virtualisation.oci-containers.containers = {
|
||||
element-web = {
|
||||
|
|
Loading…
Reference in a new issue