configurations of hq services
https://hydra.hq.c3d2.de/jobset/c3d2/nix-config#tabs-jobs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
911 B
32 lines
911 B
{ pkgs, lib, ... }: |
|
|
|
{ |
|
imports = |
|
[ <nixpkgs/nixos/modules/profiles/minimal.nix> |
|
<nixpkgs/nixos/modules/profiles/docker-container.nix> |
|
]; |
|
nix.useSandbox = false; |
|
nix.maxJobs = lib.mkDefault 1; |
|
nix.buildCores = lib.mkDefault 4; |
|
|
|
boot.isContainer = true; |
|
# /sbin/init |
|
boot.loader.initScript.enable = true; |
|
boot.loader.grub.enable = false; |
|
|
|
# Create a few files early before packing tarball for Proxmox |
|
# architecture/OS detection. |
|
system.extraSystemBuilderCmds = |
|
'' |
|
mkdir -m 0755 -p $out/bin |
|
ln -s ${pkgs.bash}/bin/bash $out/bin/sh |
|
mkdir -m 0755 -p $out/sbin |
|
ln -s ../init $out/sbin/init |
|
''; |
|
|
|
fileSystems."/" = { fsType = "rootfs"; device = "rootfs"; }; |
|
|
|
# Required for remote deployment |
|
services.openssh.enable = true; |
|
users.users.root.openssh.authorizedKeys.keys = (import ../secrets/lib/authorized_keys).admins; |
|
}
|
|
|