Make non module

This commit is contained in:
Johannes Jöns 2023-05-16 15:02:51 +02:00
parent cdb2c7e1ab
commit cc3225dd1b
3 changed files with 2 additions and 14 deletions

View file

@ -1,4 +1,4 @@
{ home-manager, nixpkgs, nur, prismlauncher, config, ... }:
{ home-manager, nixpkgs, nur, prismlauncher, ... }:
{
home-manager = {

View file

@ -1,16 +1,10 @@
{ options, config, pkgs, ... }:
let
cfg = config.custom.user.jopejoe1.home;
hcfg = config.home-manager.users.jopejoe1;
in
{
options.custom.user.jopejoe1.home = with types; {
enable = mkBoolOpt false "Enable the home-manger for jopejoe1";
};
config = mkIf cfg.enable {
home-manager.users.jopejoe1 = {
home-manager.users.jopejoe1 = {
home = {
# Basic information for home-manager
username = "jopejoe1";
@ -210,5 +204,4 @@ in
};
};
};
};
}

View file

@ -1,14 +1,9 @@
{ options, config, pkgs, ... }:
let
cfg = config.custom.user.root.home;
hcfg = config.home-manager.users.root;
in
{
options.custom.user.root.home = with types; {
enable = mkBoolOpt false "Enable the home-manger for root";
};
config = mkIf cfg.enable {
home-manager.users.root = {
home = {