import fixes
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
{ self, ... }:
|
{ self, ... }:
|
||||||
{
|
{
|
||||||
config.flake.factory.user = username: isAdmin: {
|
config.flake.factory.user = username: isAdmin: {
|
||||||
|
|
||||||
nixos."${username}" = { lib, pkgs, ... }: {
|
nixos."${username}" = { lib, pkgs, ... }: {
|
||||||
users.users."${username}" = {
|
users.users."${username}" = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
@@ -16,6 +15,8 @@
|
|||||||
"wheel"
|
"wheel"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Import the corresponding homeManager module for the given username
|
||||||
home-manager.users."${username}" = {
|
home-manager.users."${username}" = {
|
||||||
imports = [
|
imports = [
|
||||||
self.modules.homeManager."${username}"
|
self.modules.homeManager."${username}"
|
||||||
@@ -25,6 +26,7 @@
|
|||||||
|
|
||||||
homeManager."${username}" = {
|
homeManager."${username}" = {
|
||||||
home.username = "${username}";
|
home.username = "${username}";
|
||||||
|
home.homeDirectory = "/home/${username}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -22,11 +22,6 @@ in
|
|||||||
{
|
{
|
||||||
# https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect
|
# https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect
|
||||||
nixos."${username}" = { pkgs, ... }: {
|
nixos."${username}" = { pkgs, ... }: {
|
||||||
home-manager.users."${username}" = {
|
|
||||||
imports = [
|
|
||||||
inputs.self.modules.homeManager."${username}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
users.users."${username}" = {
|
users.users."${username}" = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
openssh.authorizedKeys.keys = inputs.self.meta.users."${username}".authorizedKeys;
|
openssh.authorizedKeys.keys = inputs.self.meta.users."${username}".authorizedKeys;
|
||||||
@@ -42,9 +37,7 @@ in
|
|||||||
programs.git.settings.user.email = "32917998+jsl12@users.noreply.github.com";
|
programs.git.settings.user.email = "32917998+jsl12@users.noreply.github.com";
|
||||||
|
|
||||||
imports = with inputs.self.modules.homeManager; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
# base
|
base
|
||||||
# docker
|
|
||||||
# resticprofile
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user