Manage users with the option system

This commit is contained in:
SebastianStork 2025-06-13 16:21:42 +02:00
parent 9386dc29d7
commit d7070b6fb5
15 changed files with 79 additions and 71 deletions

View file

@ -1,3 +0,0 @@
_: {
imports = [ ../user.nix ];
}

View file

@ -1,3 +0,0 @@
_: {
imports = [ ../user.nix ];
}

View file

@ -1,3 +0,0 @@
_: {
imports = [ ../user.nix ];
}

View file

@ -1,12 +0,0 @@
{ pkgs, ... }:
{
imports = [
../../home-manager.nix
../user.nix
];
users.users.seb.shell = pkgs.zsh;
programs.zsh.enable = true;
home-manager.users.seb = ./home.nix;
}

View file

@ -1,12 +0,0 @@
{ pkgs, ... }:
{
imports = [
../../home-manager.nix
../user.nix
];
users.users.seb.shell = pkgs.zsh;
programs.zsh.enable = true;
home-manager.users.seb = ./home.nix;
}

View file

@ -19,8 +19,6 @@ let
};
in
{
imports = [ ../shared-home.nix ];
home.sessionVariables.NH_FLAKE = "~/Projects/nixos-config";
custom = {

View file

@ -1,11 +0,0 @@
{ config, ... }:
{
sops.secrets."seb-password".neededForUsers = true;
users.users.seb = {
isNormalUser = true;
description = "Sebastian Stork";
hashedPasswordFile = config.sops.secrets."seb-password".path;
extraGroups = [ "wheel" ];
};
}