45 lines
684 B
Nix
45 lines
684 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
users = {
|
|
users = {
|
|
demo = {
|
|
password = "demo";
|
|
uid = 1000;
|
|
createHome = true;
|
|
home = "/home/demo";
|
|
shell = pkgs.bashInteractive;
|
|
isNormalUser = true;
|
|
extraGroups = [
|
|
"wheel"
|
|
"networkmanager"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
home-manager = {
|
|
users = {
|
|
demo = {
|
|
imports = [ ./home/default.nix ];
|
|
};
|
|
};
|
|
};
|
|
|
|
environment.persistence = {
|
|
persistence = {
|
|
directories = [
|
|
{
|
|
directory = "/home/demo";
|
|
user = "demo";
|
|
group = "users";
|
|
mode = "u=rwx,g=,o=";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|