Refactor user configuration

This commit is contained in:
SebastianStork 2025-08-17 16:25:41 +02:00
parent 4785c99ea4
commit 9ecc4cf9ea
15 changed files with 72 additions and 75 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,7 @@
{ pkgs, ... }:
{
imports = [ ../shared-home.nix ];
home.sessionVariables.NH_FLAKE = "~/Projects/nixos-config";
custom = {

11
users/seb/user.nix Normal file
View file

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