summaryrefslogtreecommitdiff
path: root/user-profiles/core.nix
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles/core.nix')
-rw-r--r--user-profiles/core.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/user-profiles/core.nix b/user-profiles/core.nix
index 57fb7628..8b8da681 100644
--- a/user-profiles/core.nix
+++ b/user-profiles/core.nix
@@ -1,11 +1,19 @@
1{ flake, flakeInputs, 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, ... }: {
14 config._module.args = {
15 inherit sysConfig flake flakeInputs sources;
16 };
9 config.nix.settings = { 17 config.nix.settings = {
10 inherit (sysConfig.nix.settings) use-xdg-base-directories; 18 inherit (sysConfig.nix.settings) use-xdg-base-directories;
11 }; 19 };