moved user declaration to file and invoking in the end
This commit is contained in:
@@ -12,15 +12,8 @@
|
|||||||
../../modules/raspberrypi.nix
|
../../modules/raspberrypi.nix
|
||||||
../../modules/common/networking.nix
|
../../modules/common/networking.nix
|
||||||
../../modules/common/shell.nix
|
../../modules/common/shell.nix
|
||||||
|
./user.nix
|
||||||
];
|
];
|
||||||
users.users.boxuser = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = ["wheel" "docker" "networkmanager"]; # Enable ‘sudo’ for the user.
|
|
||||||
password = "boxuser";
|
|
||||||
packages = with pkgs; [
|
|
||||||
fastfetch
|
|
||||||
];
|
|
||||||
};
|
|
||||||
networking.hostName = "box";
|
networking.hostName = "box";
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
# This will be overridden by system/default.nix
|
# This will be overridden by system/default.nix
|
||||||
|
|||||||
11
hosts/box/user.nix
Normal file
11
hosts/box/user.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{ config, pkgs, lib, ...}:
|
||||||
|
{
|
||||||
|
users.users.boxuser = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = ["wheel" "docker" "networkmanager"]; # Enable ‘sudo’ for the user.
|
||||||
|
password = "boxuser";
|
||||||
|
packages = with pkgs; [
|
||||||
|
fastfetch
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user