Téléverser les fichiers vers "/"
This commit is contained in:
+14
-14
@@ -2,34 +2,34 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Le matériel reste propre à la machine et n'est pas stocké dans le dépôt.
|
||||
# Avec un build Flake, utiliser --impure afin d'autoriser cet import local.
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
|
||||
./modules/software.nix
|
||||
./modules/users.nix
|
||||
./modules/homed.nix
|
||||
./modules/security.nix
|
||||
./modules/workstation-setup.nix
|
||||
./modules/provisioning.nix
|
||||
];
|
||||
|
||||
# Pré-provisionnement automatique : le rebuild crée Alice avec systemd-homed
|
||||
# et un home LUKS2. L'assistant se lance ensuite à sa première session.
|
||||
nixosWorkstations.homedUser = {
|
||||
enable = true;
|
||||
user = "alice";
|
||||
realName = "Alice";
|
||||
initialPassword = "LaboTest@1980";
|
||||
diskSize = "10G";
|
||||
};
|
||||
# Les flakes utilisent encore les fonctionnalités expérimentales du client Nix.
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
nixosWorkstations.workstationSetup = {
|
||||
enable = true;
|
||||
user = "alice";
|
||||
};
|
||||
# Cette configuration est volontairement commune. Elle doit toujours être
|
||||
# appelée par une fiche de poste qui choisit explicitement un utilisateur.
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.nixosWorkstations.provisioning.enable;
|
||||
message = "Sélectionnez une fiche dans hosts/ au lieu de construire configuration.nix directement.";
|
||||
}
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "bureautix-01";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
Reference in New Issue
Block a user