nix-config/hosts/common/users/layla/default.nix
Greg Burd f3fd89af54
A fork of Misterio77 and his standard template.
Many thangs to the hard work and generous availability of:
git@github.com:Misterio77/nix-config.git
2023-09-15 10:53:38 -04:00

26 lines
511 B
Nix

{ pkgs, lib, config, ... }:
{
imports = [ ./packages.nix ];
users.mutableUsers = false;
users.users.layla = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = [
"wheel"
"video"
"audio"
];
passwordFile = config.sops.secrets.layla-password.path;
};
sops.secrets.layla-password = {
sopsFile = ../../secrets.yaml;
neededForUsers = true;
};
# Persist entire home
environment.persistence = {
"/persist".directories = [ "/home/layla" ];
};
}