iso
This commit is contained in:
parent
02df8796e1
commit
c7c42c178e
3 changed files with 32 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
|||
result
|
||||
installer-iso-image
|
||||
|
|
32
hive.nix
32
hive.nix
|
@ -7,18 +7,17 @@ in {
|
|||
inherit mods users;
|
||||
};
|
||||
defaults = { pkgs, ... }: {
|
||||
imports = [
|
||||
(import <home-manager/nixos>)
|
||||
];
|
||||
imports = [ <home-manager/nixos> ];
|
||||
boot.tmp.useTmpfs = true;
|
||||
};
|
||||
kat-probook = { name, nodes, ... }: {
|
||||
deployment.allowLocalDeployment = true;
|
||||
|
||||
imports = [
|
||||
./machines/kat-probook/configuration.nix
|
||||
users.root
|
||||
users.catvayor
|
||||
];
|
||||
deployment.allowLocalDeployment = true;
|
||||
networking.hostName = name;
|
||||
};
|
||||
kat-r86s = { name, nodes, ... }: {
|
||||
|
@ -31,4 +30,29 @@ in {
|
|||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"
|
||||
];
|
||||
};
|
||||
kat-iso = { name, ... }:{
|
||||
deployment = {
|
||||
allowLocalDeployment = false;
|
||||
targetHost = null;
|
||||
};
|
||||
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix>
|
||||
users.root
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = name;
|
||||
networkmanager.enable = true;
|
||||
wireless.enable = false;
|
||||
};
|
||||
console.keyMap = "fr";
|
||||
|
||||
boot.supportedFilesystems = [ "bcachefs" ];
|
||||
programs.zsh.enable = true;
|
||||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
3
make-iso.sh
Executable file
3
make-iso.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
drv=$(colmena eval -E "{ nodes, ... }: nodes.kat-iso.config.system.build.isoImage" --instantiate --show-trace)
|
||||
nix-store --realize --add-root "installer-iso-image" --indirect $drv
|
Loading…
Reference in a new issue