updated
This commit is contained in:
@ -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";
|
5
template/custom/default.nix
Normal file
5
template/custom/default.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./basic.nix
|
||||
];
|
||||
}
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -4,8 +4,5 @@
|
||||
(import ./disko.nix {})
|
||||
./impermanence.nix
|
||||
./configuration.nix
|
||||
|
||||
# Your custom configuration
|
||||
./custom
|
||||
];
|
||||
}
|
||||
|
@ -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"
|
||||
];
|
||||
|
Reference in New Issue
Block a user