cette fois ce sera la bonne ?

cephiroth-v3
Lzebulon 2026-01-26 20:02:39 +01:00
parent af2421c44e
commit f45f8973d4
No known key found for this signature in database
GPG Key ID: D6CDAB8050CBBE7D
3 changed files with 120 additions and 0 deletions

View File

@ -44,6 +44,11 @@
specialArgs = inputs;
modules = [ ./hosts/vm/apprentix ] ++ baseModules;
};
cephiroth = nixosSystem {
specialArgs = inputs;
modules = [ ./hosts/physiques/cephiroth ] ++ baseModules;
};
jitsi = nixosSystem {
specialArgs = inputs;

View File

@ -0,0 +1,49 @@
{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
networking.hostId = "121cdcb4";
networking.hostName = "cephiroth";
boot.loader.grub.enable = true;
boot.loader.grub.efiSupport = true;
boot.loader.grub.device = "nodev";
boot.loader.grub.mirroredBoots = [
{
devices = [ "nodev" ];
path = "/boot-fallback";
}
];
crans = {
enable = true;
networking = {
id = 3;
adm = {
enable = true;
interface = "bond0";
};
srvNat = {
enable = true;
interface = "bond0";
};
};
resticClient.enable = false;
};
networking = {
bonds.bond0 = {
interfaces = [ "enp11s0f0" "enp11s0f1" ];
driverOptions.mode = "802.3ad";
};
};
system.stateVersion = "24.05";
}

View File

@ -0,0 +1,66 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"ehci_pci"
"ata_piix"
"uhci_hcd"
"hpsa"
"usbhid"
"usb_storage"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/backups" = {
device = "backups";
fsType = "zfs";
};
fileSystems."/" = {
device = "head";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8E4A-8E9F";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
# networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.eno2.useDHCP = lib.mkDefault true;
# networking.interfaces.eno3.useDHCP = lib.mkDefault true;
# networking.interfaces.eno4.useDHCP = lib.mkDefault true;
# networking.interfaces.enp4s0f0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp4s0f1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}