Whovian9369
d9046b8321
- Adds `mySSHKeys` via `inherit` from `system/sshKeys.nix` for easier setting of allowed SSH keys - Especially useful for self-built `x86_64-linux` NixOS ISO. - Swap where user groups are set to `system/users.nix` - Add `myOptions.isWSL` to identify if an environment is used in WSL or not. - Used for setting user groups between WSL and bare-metal. - Requires adding `myOptions` as module to WSL systems? - Need to investiage if this properly works on bare-metal machines - So likely needs tested in VM? - Added `myOptions.isWSL` option to `nixos-wsl` for group setting reasons, see above. - Fleshed out `nixosConfigurations.isoimage-pc` to make keep some tools handy for live environment. - Plus, gave ssh key access to `root` user on ISO. - Need to double check if `nixos` user needs keys too. - Is that user still even generated with current config? Need to test. - Added `unnix_script` to `home-manager` environment's `home.packages`, so I can remove Nix Store paths from text input easily for ease of comparing against other builds.
23 lines
402 B
Nix
23 lines
402 B
Nix
{
|
|
myWslGroups = [
|
|
"wheel"
|
|
# Enable 'sudo' for the user.
|
|
];
|
|
|
|
myHardwareGroups = [
|
|
"wheel"
|
|
# Enable 'sudo' for the user.
|
|
"networkmanager"
|
|
# Enable use of NetworkManager
|
|
"usb"
|
|
# This should enable access to usb devices.
|
|
"docker"
|
|
# Enable 'docker' for the user.
|
|
];
|
|
|
|
users.groups = {
|
|
usb = {
|
|
# Placeholder to create group.
|
|
};
|
|
};
|
|
}
|