This commit is contained in:
2024-04-09 13:27:55 +02:00
parent 3656d672c4
commit f3cda941e4
9 changed files with 102 additions and 20 deletions

View File

@ -1,50 +0,0 @@
{
pkgs,
lib,
...
}: {
networking.hostName = "example";
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
users."admin" = {
password = "changeme"; # TODO: Maybe put a throw here.
isNormalUser = true;
extraGroups = ["wheel"];
};
};
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";
};
}

View File

@ -4,8 +4,5 @@
(import ./disko.nix {})
./impermanence.nix
./configuration.nix
# Your custom configuration
./custom
];
}

View File

@ -30,7 +30,7 @@
directories = [
{
directory = "/etc/nixos";
user = "admin";
user = "demo";
mode = "u=rwx,g=rx,o=rx";
}
"/var/log"
@ -47,7 +47,7 @@
}
];
users."admin" = {
users."demo" = {
directories = [
"this-will-persist"
];