Compare commits
3
Commits
368f092bd3
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c6953c610 | ||
|
|
087d0f27ec | ||
|
|
02882967c8 |
+4
-4
@@ -1,17 +1,17 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
options = {
|
options.shell = {
|
||||||
name = lib.mkOption {
|
name = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
#default = "nyx";
|
default = "nyx";
|
||||||
};
|
};
|
||||||
homeDirectory = lib.mkOption {
|
homeDirectory = lib.mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
default = "/home/${config.name}";
|
default = "/home/${config.shell.name}";
|
||||||
};
|
};
|
||||||
email = lib.mkOption {
|
email = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
#default = "${config.name}@configureme.guv";
|
default = "${config.shell.name}@configureme.guv";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -2,8 +2,8 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "${config.name}";
|
name = "${config.shell.name}";
|
||||||
homeDir = "${config.homeDirectory}";
|
homeDir = "${config.shell.homeDirectory}";
|
||||||
myAliases = {
|
myAliases = {
|
||||||
ll = "ls -hl";
|
ll = "ls -hl";
|
||||||
la = "ls -ahl";
|
la = "ls -ahl";
|
||||||
@@ -67,7 +67,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings.user = {
|
settings.user = {
|
||||||
inherit name;
|
inherit name;
|
||||||
email = config.email;
|
email = config.shell.email;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
starship = {
|
starship = {
|
||||||
|
|||||||
Reference in New Issue
Block a user