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

@ -3,7 +3,7 @@
lib,
...
}: {
networking.hostName = "example";
networking.hostName = "nixos";
networking.firewall.enable = true;
networking.firewall.allowPing = false;
@ -26,13 +26,16 @@
users = {
mutableUsers = false; # Disallow creation of new users and groups
users."admin" = {
password = "changeme"; # TODO: Maybe put a throw here.
users."demo" = {
password = "demo"; # TODO: Maybe put a throw here.
isNormalUser = true;
extraGroups = ["wheel"];
};
};
services.getty.autoLogin = "demo";
console.keyMap = "de";
time.timeZone = "Europe/Vienna";
i18n.defaultLocale = "en_US.UTF-8";

View File

@ -0,0 +1,5 @@
{...}: {
imports = [
./basic.nix
];
}

View File

@ -21,20 +21,15 @@
pkgs = inputs.nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
default = inputs.nixpkgs.lib.nixosSystem {
nixos = inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [
inputs.disko.nixosModules.default
# {
# imports = [
# (import ./system/disko.nix {})
# ];
# }
inputs.impermanence.nixosModules.impermanence
./system
./custom
];
};
};

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"
];