move jokum to nixos bicep

This commit is contained in:
Daniel Olsen
2023-03-26 04:21:03 +02:00
parent dfe8b8b44c
commit 7620fb3dee
4 changed files with 21 additions and 12 deletions

View File

@@ -6,6 +6,7 @@
../../base.nix
./services/postgres.nix
./services/jokum.nix
];
sops.defaultSopsFile = ../../secrets/bicep/bicep.yaml;
@@ -13,15 +14,16 @@
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
sops.age.generateKey = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/disk/by-id/scsi-3600508b1001cb1a8751c137b30610682";
networking.hostName = "bicep";
# systemd.network.networks."30-ens33" = values.defaultNetworkConfig // {
# matchConfig.Name = "ens33";
# address = with values.hosts.bekkalokk; [ (ipv4 + "/25") (ipv6 + "/64") ];
# };
systemd.network.networks."30-enp6s0f0" = values.defaultNetworkConfig // {
matchConfig.Name = "enp6s0f0";
address = with values.hosts.bicep; [ (ipv4 + "/25") (ipv6 + "/64") ];
};
# Do not change, even during upgrades.
# See https://search.nixos.org/options?show=system.stateVersion

View File

@@ -0,0 +1,10 @@
{config, lib, pkgs, inputs, values, ...}:
{
# lfmao
containers.jokum = {
interfaces = [ "ens10f1" ];
# wtf
path = inputs.self.nixosConfigurations.jokum.config.system.build.toplevel;
};
}