From cc3225dd1b504b0b1c4296ec8225141eb299331f Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 16 May 2023 15:02:51 +0200 Subject: [PATCH] Make non module --- common.nix | 2 +- home/jopejoe1.nix | 9 +-------- home/root.nix | 5 ----- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/common.nix b/common.nix index 63ba043..4b0b29d 100644 --- a/common.nix +++ b/common.nix @@ -1,4 +1,4 @@ -{ home-manager, nixpkgs, nur, prismlauncher, config, ... }: +{ home-manager, nixpkgs, nur, prismlauncher, ... }: { home-manager = { diff --git a/home/jopejoe1.nix b/home/jopejoe1.nix index 2a49df0..577267b 100644 --- a/home/jopejoe1.nix +++ b/home/jopejoe1.nix @@ -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 }; }; }; - }; } diff --git a/home/root.nix b/home/root.nix index 83abac1..8cacc07 100644 --- a/home/root.nix +++ b/home/root.nix @@ -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 = {