infrastructure/iso/configuration.nix

43 lines
774 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
2023-12-20 13:15:57 +01:00
{ lib, pkgs, ... }:
2023-06-07 14:13:36 +02:00
let
dgn-keys = import ../keys;
2023-06-07 14:13:36 +02:00
2024-06-17 15:33:46 +02:00
dgn-members = (import ../meta lib).organization.groups.root;
2023-06-07 14:13:36 +02:00
in
{
imports = [ ./dgn-install ];
2023-06-07 14:13:36 +02:00
boot = {
blacklistedKernelModules = [ "snd_pcsp" ];
kernelPackages = pkgs.linuxPackages_latest;
2023-06-07 14:13:36 +02:00
tmp.cleanOnBoot = true;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
supportedFilesystems = [
"exfat"
"zfs"
"bcachefs"
2023-06-07 14:13:36 +02:00
];
2023-12-20 13:15:57 +01:00
swraid.enable = lib.mkForce false;
2023-06-07 14:13:36 +02:00
};
console.keyMap = "fr";
2023-06-07 14:13:36 +02:00
services = {
openssh.enable = true;
};
users.users.root.openssh.authorizedKeys.keys = dgn-keys.getKeys dgn-members;
2023-06-07 14:13:36 +02:00
}