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
|
|
@ -19,9 +19,7 @@ topLevel: {
|
||||||
# TODO: dunno why I need this packge
|
# TODO: dunno why I need this packge
|
||||||
environment.systemPackages = [ pkgs.dconf ];
|
environment.systemPackages = [ pkgs.dconf ];
|
||||||
|
|
||||||
imports =
|
imports = with topLevel.config.flake.modules.nixos; [
|
||||||
with topLevel.config.flake.modules.nixos;
|
|
||||||
[
|
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
|
||||||
|
|
@ -41,22 +39,6 @@ topLevel: {
|
||||||
|
|
||||||
# Users
|
# Users
|
||||||
cholli
|
cholli
|
||||||
]
|
|
||||||
++ [
|
|
||||||
{
|
|
||||||
home-manager.users.cholli = {
|
|
||||||
imports = with topLevel.config.flake.modules.homeManager; [
|
|
||||||
inputs.catppuccin.homeModules.catppuccin
|
|
||||||
|
|
||||||
# components
|
|
||||||
base
|
|
||||||
|
|
||||||
# Activate all user based config
|
|
||||||
cholli
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
|
|
|
||||||
|
|
@ -52,24 +52,6 @@ topLevel: {
|
||||||
server
|
server
|
||||||
|
|
||||||
cholli
|
cholli
|
||||||
]
|
|
||||||
++ [
|
|
||||||
{
|
|
||||||
home-manager.users.cholli = {
|
|
||||||
imports = with topLevel.config.flake.modules.homeManager; [
|
|
||||||
inputs.catppuccin.homeModules.catppuccin
|
|
||||||
|
|
||||||
# components
|
|
||||||
base
|
|
||||||
|
|
||||||
# Activate all user based config
|
|
||||||
cholli
|
|
||||||
];
|
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/pull/398456
|
|
||||||
home.enableNixpkgsReleaseCheck = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
|
|
|
||||||
|
|
@ -12,31 +12,14 @@ topLevel: {
|
||||||
};
|
};
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
imports =
|
imports = with topLevel.config.flake.modules.nixos; [
|
||||||
with topLevel.config.flake.modules.nixos;
|
|
||||||
[
|
|
||||||
inputs.nixos-wsl.nixosModules.default
|
inputs.nixos-wsl.nixosModules.default
|
||||||
|
|
||||||
base
|
base
|
||||||
server
|
server
|
||||||
cholli
|
cholli
|
||||||
]
|
|
||||||
|
|
||||||
++ [
|
|
||||||
{
|
|
||||||
home-manager.users.cholli = {
|
|
||||||
imports = with topLevel.config.flake.modules.homeManager; [
|
|
||||||
inputs.catppuccin.homeModules.catppuccin
|
|
||||||
|
|
||||||
# components
|
|
||||||
base
|
|
||||||
|
|
||||||
# Activate all user based config
|
|
||||||
cholli
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
wsl = {
|
wsl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultUser = topLevel.config.flake.meta.users.cholli.username;
|
defaultUser = topLevel.config.flake.meta.users.cholli.username;
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ in
|
||||||
|
|
||||||
termscp
|
termscp
|
||||||
nixpkgs-review
|
nixpkgs-review
|
||||||
# inputs.nix-gaming.packages.${pkgs.stdenv.hostPlatform.system}.star-citizen
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.teamviewer.enable = true;
|
services.teamviewer.enable = true;
|
||||||
|
|
@ -41,9 +40,7 @@ in
|
||||||
AddressFamily inet
|
AddressFamily inet
|
||||||
'';
|
'';
|
||||||
|
|
||||||
imports =
|
imports = with config.flake.modules.nixos; [
|
||||||
with config.flake.modules.nixos;
|
|
||||||
[
|
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
||||||
inputs.nixos-hardware.nixosModules.common-pc
|
inputs.nixos-hardware.nixosModules.common-pc
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
@ -69,23 +66,7 @@ in
|
||||||
|
|
||||||
# Users
|
# Users
|
||||||
cholli
|
cholli
|
||||||
]
|
root
|
||||||
++ [
|
|
||||||
{
|
|
||||||
home-manager.users.cholli = {
|
|
||||||
imports = with config.flake.modules.homeManager; [
|
|
||||||
inputs.catppuccin.homeModules.catppuccin
|
|
||||||
|
|
||||||
# components
|
|
||||||
base
|
|
||||||
dev
|
|
||||||
|
|
||||||
# Activate all user based config
|
|
||||||
cholli
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,30 @@ topLevel: {
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
nixos.cholli =
|
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;
|
programs.fish.enable = true;
|
||||||
sops.secrets.passwordHash.neededForUsers = true;
|
sops.secrets.passwordHash.neededForUsers = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,28 @@
|
||||||
topLevel: {
|
topLevel: {
|
||||||
flake = {
|
flake = {
|
||||||
modules.nixos.root =
|
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;
|
programs.fish.enable = true;
|
||||||
sops.secrets.passwordHash.neededForUsers = true;
|
sops.secrets.passwordHash.neededForUsers = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue