refactor: extract users

This commit is contained in:
2026-04-25 01:28:28 +02:00
parent 0500aab3cb
commit 16712777dc
6 changed files with 74 additions and 85 deletions
-64
View File
@@ -1,69 +1,5 @@
{
config,
...
}:
let
homeModules = config.flake.modules.homeManager;
in
{
repo = {
accounts = {
kiri = {
realName = "Jelle Spreeuwenberg";
workstationModule = {
imports = [
homeModules.workstation-base
homeModules.syncthing
homeModules.qbittorrent-client
];
};
emails = {
personal = {
address = "mail@jelles.net";
primary = true;
scope = "personal";
type = "mxrouting";
};
old = {
address = "mail@jellespreeuwenberg.nl";
scope = null;
type = "mxrouting";
};
uni = {
address = "j.spreeuwenberg@student.tue.nl";
scope = null;
type = "office365";
};
work = {
address = "jelle.spreeuwenberg@yookr.org";
scope = "work";
type = "office365";
};
};
};
ergon = {
realName = "Jelle Spreeuwenberg";
sourceControl.projectScope = "work";
workstationModule = {
imports = [ homeModules.workstation-base ];
};
emails = {
personal = {
address = "mail@jelles.net";
scope = "personal";
type = "mxrouting";
};
work = {
address = "jelle.spreeuwenberg@yookr.org";
primary = true;
scope = "work";
type = "office365";
};
};
};
};
contact.email = "mail@jelles.net";
desktop = {
+9
View File
@@ -7,6 +7,7 @@
devenv
httpie
bruno
usql
];
programs.direnv = {
@@ -24,5 +25,13 @@
programs.bun.enable = true;
programs.ripgrep.enable = true;
programs.uv.enable = true;
programs.git.ignores = [
"devenv.*"
".devenv*"
".direnv"
"pre-commit-config.yaml"
".envrc"
];
};
}
+1 -20
View File
@@ -52,25 +52,6 @@ in
inputs.nixos-hardware.nixosModules.lenovo-yoga-7-14ARH7-amdgpu
];
home-manager.users = {
kiri.imports = [ homeModules.noctalia-portable ];
ergon.imports = [
homeModules.noctalia-portable
(
{ pkgs, ... }:
{
home.packages = [ pkgs.usql ];
programs.git.ignores = [
"devenv.*"
".devenv*"
".direnv"
"pre-commit-config.yaml"
".envrc"
];
}
)
];
};
home-manager.sharedModules = [ homeModules.noctalia-portable ];
};
}
+5 -1
View File
@@ -1,6 +1,7 @@
{ lib, config, ... }:
let
nixosModules = config.flake.modules.nixos;
hmModules = config.flake.modules.homeManager;
resolvePackagePath =
{
@@ -91,7 +92,10 @@ let
}) machine.users;
home-manager.users = lib.mapAttrs (_: user: {
imports = [ user.account.workstationModule ];
imports = [
hmModules.workstation-base
user.account.workstationModule
];
}) machine.users;
};
in
+20
View File
@@ -0,0 +1,20 @@
{ config, ... }:
{
repo.accounts.ergon = {
realName = "Jelle Spreeuwenberg";
sourceControl.projectScope = "work";
emails = {
personal = {
address = "mail@jelles.net";
scope = "personal";
type = "mxrouting";
};
work = {
address = "jelle.spreeuwenberg@yookr.org";
primary = true;
scope = "work";
type = "office365";
};
};
};
}
+39
View File
@@ -0,0 +1,39 @@
{ config, ... }:
let
hmModules = config.flake.modules.homeManager;
in
{
repo.accounts.kiri = {
realName = "Jelle Spreeuwenberg";
workstationModule = {
imports = [
hmModules.syncthing
hmModules.qbittorrent-client
];
};
emails = {
personal = {
address = "mail@jelles.net";
primary = true;
scope = "personal";
type = "mxrouting";
};
old = {
address = "mail@jellespreeuwenberg.nl";
scope = null;
type = "mxrouting";
};
uni = {
address = "j.spreeuwenberg@student.tue.nl";
scope = null;
type = "office365";
};
work = {
address = "jelle.spreeuwenberg@yookr.org";
scope = "work";
type = "office365";
};
};
};
}