summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2026-09-24 18:40:08 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2026-09-24 18:40:08 +0200
commit9a85dc9c31a10eaf0640d228230e9f2de79238b4 (patch)
treeed50109441d812ddbf2845f75fd56931807039aa /user-profiles
parentd2e6663085652df3c581062d85e063c013f905cf (diff)
downloadnixos-9a85dc9c31a10eaf0640d228230e9f2de79238b4.tar
nixos-9a85dc9c31a10eaf0640d228230e9f2de79238b4.tar.gz
nixos-9a85dc9c31a10eaf0640d228230e9f2de79238b4.tar.bz2
nixos-9a85dc9c31a10eaf0640d228230e9f2de79238b4.tar.xz
nixos-9a85dc9c31a10eaf0640d228230e9f2de79238b4.zip
...
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/core.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/user-profiles/core.nix b/user-profiles/core.nix
index 7034f17e..8b8da681 100644
--- a/user-profiles/core.nix
+++ b/user-profiles/core.nix
@@ -1,10 +1,15 @@
1{ flake, flakeInputs, sources, path, userName, config, lib, utils, ... }: 1{ flake, flakeInputs, sources, path, userName, hostName, config, lib, utils, ... }:
2 2
3with lib; 3with lib;
4 4
5{ 5{
6 config = { 6 config = {
7 users.users.${userName} = {}; # Just make sure the user is created 7 users.users.${userName} = { # Make sure the user is created
8 openssh.authorizedPrincipals = [
9 "${userName}@${hostName}"
10 "${userName}@*"
11 ];
12 };
8 home-manager.users.${userName} = let sysConfig = config; in { config, ... }: { 13 home-manager.users.${userName} = let sysConfig = config; in { config, ... }: {
9 config._module.args = { 14 config._module.args = {
10 inherit sysConfig flake flakeInputs sources; 15 inherit sysConfig flake flakeInputs sources;