impermanence-talk/template/custom/basic.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

2024-04-07 18:58:02 +00:00
{
pkgs,
lib,
...
}: {
2024-04-09 11:27:55 +00:00
networking.hostName = "nixos";
2024-04-07 18:58:02 +00:00
networking.firewall.enable = true;
networking.firewall.allowPing = false;
environment.systemPackages = with pkgs; [
git
];
nix.settings = {
experimental-features = lib.mkDefault "nix-command flakes";
auto-optimise-store = true;
trusted-users = ["root" "@wheel"];
};
security.sudo = {
enable = true;
execWheelOnly = true;
wheelNeedsPassword = false; # So we don't have to set a password for our user
};
users = {
mutableUsers = false; # Disallow creation of new users and groups
2024-04-09 11:27:55 +00:00
users."demo" = {
password = "demo"; # TODO: Maybe put a throw here.
2024-04-07 18:58:02 +00:00
isNormalUser = true;
extraGroups = ["wheel"];
};
};
2024-04-09 11:27:55 +00:00
services.getty.autoLogin = "demo";
console.keyMap = "de";
2024-04-07 18:58:02 +00:00
time.timeZone = "Europe/Vienna";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_AT.UTF-8";
LC_IDENTIFICATION = "de_AT.UTF-8";
LC_MEASUREMENT = "de_AT.UTF-8";
LC_MONETARY = "de_AT.UTF-8";
LC_NAME = "de_AT.UTF-8";
LC_NUMERIC = "de_AT.UTF-8";
LC_PAPER = "de_AT.UTF-8";
LC_TELEPHONE = "de_AT.UTF-8";
LC_TIME = "de_AT.UTF-8";
};
}