config-perso/hive.nix

59 lines
1.5 KiB
Nix
Raw Normal View History

2024-03-13 11:11:16 +01:00
let
mods = import ./modules;
users = import ./users;
in {
2024-03-12 17:26:16 +01:00
meta.nixpkgs = <nixpkgs>;
2024-03-13 11:11:16 +01:00
meta.specialArgs = {
inherit mods users;
};
2024-03-12 17:26:16 +01:00
defaults = { pkgs, ... }: {
2024-03-16 20:03:01 +01:00
imports = [ <home-manager/nixos> ];
2024-03-12 17:26:16 +01:00
boot.tmp.useTmpfs = true;
};
kat-probook = { name, nodes, ... }: {
2024-03-16 20:03:01 +01:00
deployment.allowLocalDeployment = true;
2024-03-12 17:26:16 +01:00
imports = [
./machines/kat-probook/configuration.nix
2024-03-13 11:11:16 +01:00
users.root
users.catvayor
2024-03-12 17:26:16 +01:00
];
networking.hostName = name;
};
2024-03-15 10:46:02 +01:00
kat-r86s = { name, nodes, ... }: {
imports = [
./machines/kat-r86s/configuration.nix
users.root
];
networking.hostName = name;
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"
];
};
2024-03-16 20:03:01 +01:00
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"
];
};
2024-03-12 17:26:16 +01:00
}