39 lines
686 B
Nix
39 lines
686 B
Nix
{
|
|
pkgs,
|
|
username,
|
|
hostname,
|
|
modulesPath,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
system.stateVersion = "25.11";
|
|
|
|
imports = builtins.trace "${inputs.mysecrets}" [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
./network.nix
|
|
./hardware-configuration.nix
|
|
../../modules/core
|
|
../../modules/optionnals/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}"
|
|
];
|
|
};
|
|
};
|
|
}
|