Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
39
module/user/guest.nix
Normal file
39
module/user/guest.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
name = "guest";
|
||||
shell = "zsh";
|
||||
in
|
||||
{
|
||||
meta = {
|
||||
${name} = {
|
||||
fullname = "Minion";
|
||||
key = "";
|
||||
keygrip = [ ];
|
||||
authorizedKeys = [ ];
|
||||
};
|
||||
};
|
||||
|
||||
den.aspects = {
|
||||
${name} = {
|
||||
nixos =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
nix.settings.trusted-users = [ name ];
|
||||
users.users.${name} = {
|
||||
description = "i'm a guest";
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
extraGroups = [
|
||||
"audio"
|
||||
"input"
|
||||
"networkmanager"
|
||||
"sound"
|
||||
"tty"
|
||||
];
|
||||
shell = pkgs.${shell};
|
||||
initialPassword = "id";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue