users: let user module handle home-manager init
This commit is contained in:
parent
56da328707
commit
cc2a9e991b
6 changed files with 90 additions and 120 deletions
|
|
@ -18,8 +18,30 @@ topLevel: {
|
|||
|
||||
modules = {
|
||||
nixos.cholli =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
{
|
||||
home-manager.users.cholli = {
|
||||
imports = with topLevel.config.flake.modules.homeManager; [
|
||||
inputs.catppuccin.homeModules.catppuccin
|
||||
|
||||
# components
|
||||
base
|
||||
dev
|
||||
|
||||
# Activate all user based config
|
||||
cholli
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
programs.fish.enable = true;
|
||||
sops.secrets.passwordHash.neededForUsers = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,28 @@
|
|||
topLevel: {
|
||||
flake = {
|
||||
modules.nixos.root =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
{
|
||||
home-manager.users.root = {
|
||||
imports = with topLevel.config.flake.modules.homeManager; [
|
||||
inputs.catppuccin.homeModules.catppuccin
|
||||
|
||||
# components
|
||||
base
|
||||
|
||||
# Activate all user based config
|
||||
cholli # TODO: make root based config that makes it clear I am root user right now
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
programs.fish.enable = true;
|
||||
sops.secrets.passwordHash.neededForUsers = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue