mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-06 12:26:50 +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 = {
|
home-manager = {
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
{ options, config, pkgs, ... }:
|
{ options, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.custom.user.jopejoe1.home;
|
|
||||||
hcfg = config.home-manager.users.jopejoe1;
|
hcfg = config.home-manager.users.jopejoe1;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.custom.user.jopejoe1.home = with types; {
|
home-manager.users.jopejoe1 = {
|
||||||
enable = mkBoolOpt false "Enable the home-manger for jopejoe1";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home-manager.users.jopejoe1 = {
|
|
||||||
home = {
|
home = {
|
||||||
# Basic information for home-manager
|
# Basic information for home-manager
|
||||||
username = "jopejoe1";
|
username = "jopejoe1";
|
||||||
|
@ -210,5 +204,4 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
{ options, config, pkgs, ... }:
|
{ options, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.custom.user.root.home;
|
|
||||||
hcfg = config.home-manager.users.root;
|
hcfg = config.home-manager.users.root;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.custom.user.root.home = with types; {
|
|
||||||
enable = mkBoolOpt false "Enable the home-manger for root";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.root = {
|
home-manager.users.root = {
|
||||||
home = {
|
home = {
|
||||||
|
|
Loading…
Reference in a new issue