refactor: extract users
This commit is contained in:
@@ -1,69 +1,5 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
homeModules = config.flake.modules.homeManager;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
repo = {
|
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";
|
contact.email = "mail@jelles.net";
|
||||||
|
|
||||||
desktop = {
|
desktop = {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
devenv
|
devenv
|
||||||
httpie
|
httpie
|
||||||
bruno
|
bruno
|
||||||
|
usql
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
@@ -24,5 +25,13 @@
|
|||||||
programs.bun.enable = true;
|
programs.bun.enable = true;
|
||||||
programs.ripgrep.enable = true;
|
programs.ripgrep.enable = true;
|
||||||
programs.uv.enable = true;
|
programs.uv.enable = true;
|
||||||
|
|
||||||
|
programs.git.ignores = [
|
||||||
|
"devenv.*"
|
||||||
|
".devenv*"
|
||||||
|
".direnv"
|
||||||
|
"pre-commit-config.yaml"
|
||||||
|
".envrc"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,25 +52,6 @@ in
|
|||||||
inputs.nixos-hardware.nixosModules.lenovo-yoga-7-14ARH7-amdgpu
|
inputs.nixos-hardware.nixosModules.lenovo-yoga-7-14ARH7-amdgpu
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users = {
|
home-manager.sharedModules = [ homeModules.noctalia-portable ];
|
||||||
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"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
)
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
nixosModules = config.flake.modules.nixos;
|
nixosModules = config.flake.modules.nixos;
|
||||||
|
hmModules = config.flake.modules.homeManager;
|
||||||
|
|
||||||
resolvePackagePath =
|
resolvePackagePath =
|
||||||
{
|
{
|
||||||
@@ -91,7 +92,10 @@ let
|
|||||||
}) machine.users;
|
}) machine.users;
|
||||||
|
|
||||||
home-manager.users = lib.mapAttrs (_: user: {
|
home-manager.users = lib.mapAttrs (_: user: {
|
||||||
imports = [ user.account.workstationModule ];
|
imports = [
|
||||||
|
hmModules.workstation-base
|
||||||
|
user.account.workstationModule
|
||||||
|
];
|
||||||
}) machine.users;
|
}) machine.users;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user