Serenity/home/users/default.nix
2024-09-20 22:14:41 +10:00

57 lines
1.1 KiB
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
...
}:
{
imports = [
inputs.home-manager.nixosModules.default
./sync.nix
./sync-hecate.nix
];
users.users = {
## Define users like this
serenity = {
description = "Serenity Amalgam";
isNormalUser = true;
extraGroups = [
"wheel"
"networkmanager"
];
## be sure to change this with 'passwd'
initialPassword = "password";
## A catgirl's favourite shell
shell = pkgs.fish;
};
};
home-manager = {
## This line passes in specialArgs from flake.nix
extraSpecialArgs = { inherit inputs outputs; };
## This line ensures all packages declared follow the
## same nix-channel we declared in the flake.nix
useGlobalPkgs = true;
useUserPackages = true;
users = {
## Also make sure to include a user definition here
serenity = {
## This is where the user configs/packages are imported
imports = [ ./u-serenity.nix];
home = {
username = "serenity";
homeDirectory = "/home/serenity";
};
};
};
};
}