57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
username,
|
|
hostname,
|
|
modulesPath,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
system.stateVersion = "25.11";
|
|
|
|
imports = builtins.trace "${inputs.mysecrets}" [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
./network.nix
|
|
./disk-config.nix
|
|
./hardware-configuration.nix
|
|
../../modules/core
|
|
../../modules/optionnal/hosts/${hostname}.nix
|
|
];
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
nix = {
|
|
settings = {
|
|
## Enable flakes
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
## Users trusted to use flake command
|
|
trusted-users = [
|
|
"root"
|
|
"${username}"
|
|
];
|
|
};
|
|
};
|
|
|
|
## Enable virtualisation guest settings
|
|
services.qemuGuest.enable = true;
|
|
services.spice-vdagentd.enable = true;
|
|
services.xserver = {
|
|
videoDrivers = [ "modesetting" ]; # Driver vidéo optimisé pour QEMU/KVM
|
|
};
|
|
|
|
environment.systemPackages = [
|
|
pkgs.spice-gtk # Outils SPICE
|
|
pkgs.spice-protocol # Protocoles SPICE
|
|
];
|
|
|
|
#fileSystems."/" = {
|
|
# device = "/dev/vda2"; # Disque virtuel typique
|
|
# fsType = "btrfs";
|
|
#};
|
|
}
|