config: added name and home directory options
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
name = lib.mkOption { type = lib.types.str; };
|
||||||
|
homeDirectory = lib.mkOption { type = lib.types.path; };
|
||||||
|
};
|
||||||
|
}
|
||||||
+5
-2
@@ -2,8 +2,8 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "${config.home.username}";
|
name = "${config.name}";
|
||||||
homeDir = "${config.home.homeDirectory}";
|
homeDir = "${config.homeDirectory}";
|
||||||
myAliases = {
|
myAliases = {
|
||||||
ll = "ls -hl";
|
ll = "ls -hl";
|
||||||
la = "ls -ahl";
|
la = "ls -ahl";
|
||||||
@@ -18,6 +18,9 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./options.nix
|
||||||
|
];
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "26.05";
|
stateVersion = "26.05";
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
|
|||||||
Reference in New Issue
Block a user