2021-09-15 18:37:57 +03:00
|
|
|
{ modulesPath, lib, inputs, pkgs, ... }: {
|
2022-12-07 22:05:00 +03:00
|
|
|
imports = with inputs.self; [
|
|
|
|
"${toString modulesPath}/installer/cd-dvd/installation-cd-graphical-plasma5.nix"
|
2021-09-15 18:37:57 +03:00
|
|
|
];
|
|
|
|
|
2022-12-14 23:53:18 +03:00
|
|
|
options = {
|
|
|
|
device = lib.mkOption { type = lib.types.str; };
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
networking.hostName = "Flakes-ISO";
|
|
|
|
|
|
|
|
programs.ssh.extraConfig = ''
|
|
|
|
Host nix-builder
|
|
|
|
hostname 192.168.0.100
|
|
|
|
user ${config.mainuser}
|
|
|
|
identitiesOnly yes
|
|
|
|
identityFile /home/nixos/ssh-builder
|
2022-12-07 22:05:00 +03:00
|
|
|
'';
|
2022-12-14 23:53:18 +03:00
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.git ];
|
|
|
|
nix = {
|
|
|
|
nixPath = lib.mkForce [ "self=/etc/self/compat" "nixpkgs=/etc/nixpkgs" ];
|
|
|
|
registry.self.flake = inputs.self;
|
|
|
|
registry.nixpkgs.flake = inputs.nixpkgs;
|
|
|
|
extraOptions = ''
|
|
|
|
builders-use-substitutes = true
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
flake-registry = ${inputs.flake-registry}/flake-registry.json
|
|
|
|
'';
|
|
|
|
buildMachines = [{
|
|
|
|
hostName = "nix-builder";
|
|
|
|
maxJobs = 8;
|
|
|
|
sshUser = config.mainuser;
|
|
|
|
sshKey = "/home/nixos/ssh-builder";
|
|
|
|
systems = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
|
|
|
}];
|
|
|
|
distributedBuilds = true;
|
|
|
|
};
|
|
|
|
environment.etc.nixpkgs.source = inputs.nixpkgs;
|
|
|
|
environment.etc.self.source = inputs.self;
|
2022-08-24 18:33:53 +03:00
|
|
|
};
|
2021-09-15 18:37:57 +03:00
|
|
|
}
|