Serenity/modules/users/serenity.nix
2026-09-17 20:26:57 +10:00

43 lines
695 B
Nix

{ inputs, ... }:
{
# user module declaration
flake.nixosModules.serenity =
{ config, pkgs, ... }:
let
username = config.userOptions.username;
in
{
# necessary for home manager function
imports = [ inputs.home-manager.nixosModules.home-manager ];
# user declaration
users.users.${username} = {
# remember to change this
initialPassword = "password";
inherit home;
isNormalUser = true;
# groups to include user in
extraGroups = [
"wheel"
"networkmanager"
];
# dont hardcode this
# catgirl shell
shell = pkgs.fish;
};
};
}