34 lines
529 B
Nix
34 lines
529 B
Nix
{
|
|
pkgs,
|
|
username,
|
|
hostname,
|
|
modulesPath,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
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}"
|
|
];
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
hostName = "${hostname}";
|
|
networkmanager.enable = true;
|
|
firewall.enable = true;
|
|
};
|
|
} |