fix luci home.nix
This commit is contained in:
parent
fad66ef62d
commit
bafcb6cb21
|
@ -1,6 +1,8 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
homeConfig = config.homeConfig;
|
||||
userName = "jaci";
|
||||
fullName = "Jaci Anderson";
|
||||
email = "jaci.s.anderson@gmail.com";
|
||||
in
|
||||
{
|
||||
# nixpkgs.overlays = [
|
||||
|
@ -9,24 +11,23 @@ in
|
|||
|
||||
# nixpkgs.config.allowUnfree = true;
|
||||
# inputs.nixpkgs-stable.config.allowUnfree = true;
|
||||
options.homeConfig = {
|
||||
userName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Main username for system";
|
||||
};
|
||||
hostName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Hostname for system";
|
||||
};
|
||||
fullName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Hostname for system";
|
||||
};
|
||||
};
|
||||
# options.homeConfig = {
|
||||
# userName = lib.mkOption {
|
||||
# type = lib.types.str;
|
||||
# description = "Main username for system";
|
||||
# };
|
||||
# hostName = lib.mkOption {
|
||||
# type = lib.types.str;
|
||||
# description = "Hostname for system";
|
||||
# };
|
||||
# fullName = lib.mkOption {
|
||||
# type = lib.types.str;
|
||||
# description = "Hostname for system";
|
||||
# };
|
||||
# };
|
||||
|
||||
config = {
|
||||
home.username = homeConfig.userName;
|
||||
home.homeDirectory = "/home/${homeConfig.userName}";
|
||||
home.username = userName;
|
||||
home.homeDirectory = "/home/${userName}";
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
|
@ -71,8 +72,8 @@ in
|
|||
# Git setup
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = homeConfig.email;
|
||||
userName = homeConfig.fullName;
|
||||
userEmail = email;
|
||||
userName = fullName;
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
@ -103,5 +104,5 @@ in
|
|||
alias grep="rg"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user