nix-build: remove
This commit is contained in:
parent
00f59d9e37
commit
6ac424c4bf
|
@ -401,12 +401,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
nix-build = nixosSystem' {
|
||||
modules = [
|
||||
./hosts/containers/nix-build
|
||||
];
|
||||
};
|
||||
|
||||
pulsebert = nixosSystem' {
|
||||
modules = [
|
||||
./hosts/pulsebert
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
scp ./*.nix 172.22.99.156:/etc/nixos/
|
|
@ -1,45 +0,0 @@
|
|||
{ hostRegistry, zentralwerk, config, pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "nix-build"; # Define your hostname.
|
||||
useDHCP = false;
|
||||
interfaces.enp6s18 = {
|
||||
ipv4.addresses = [{
|
||||
address = config.c3d2.hosts.nix-build.ip4;
|
||||
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
|
||||
}];
|
||||
useDHCP = false;
|
||||
};
|
||||
defaultGateway = "172.20.73.1";
|
||||
# TODO: enable firewall
|
||||
firewall.enable = false;
|
||||
nameservers = [ "172.20.73.8" "9.9.9.9" ];
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.efiSysMountPoint = "/boot";
|
||||
};
|
||||
|
||||
tmpOnTmpfs = true;
|
||||
cleanTmpDir = true;
|
||||
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
binfmt.emulatedSystems = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" "riscv64-linux" ];
|
||||
};
|
||||
|
||||
nix = {
|
||||
buildCores = 40;
|
||||
maxJobs = 4;
|
||||
trustedUsers = [ "client" ];
|
||||
};
|
||||
|
||||
services.openssh.permitRootLogin = lib.mkForce "yes";
|
||||
|
||||
system.stateVersion = "20.09"; # Did you read the comment?
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/41971a70-fb7f-4538-ae13-e1f4b27648fa";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/3320-D356";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
}
|
|
@ -1,8 +1,5 @@
|
|||
{ hostRegistry, config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
nix-build = "client@${config.c3d2.hosts.nix-build.ip4}";
|
||||
in {
|
||||
{
|
||||
nix = {
|
||||
extraOptions = ''
|
||||
allowed-uris = http:// https:// ssh://
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
};
|
||||
# mount the server's /nix/store
|
||||
"/nix/store" = {
|
||||
device = "${hostRegistry.hosts.nix-build.ip4}:/nix/store";
|
||||
device = "${hostRegistry.hosts.nfsroot.ip4}:/nix/store";
|
||||
fsType = "nfs";
|
||||
options = [ "nfsvers=3" "proto=tcp" "nolock" "hard" "async" "ro" ];
|
||||
neededForBoot = true;
|
||||
|
|
Loading…
Reference in New Issue