mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:26:51 +01:00
Make non module
This commit is contained in:
parent
cdb2c7e1ab
commit
cc3225dd1b
3 changed files with 2 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
{ home-manager, nixpkgs, nur, prismlauncher, config, ... }:
|
||||
{ home-manager, nixpkgs, nur, prismlauncher, ... }:
|
||||
|
||||
{
|
||||
home-manager = {
|
||||
|
|
|
@ -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
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue