Compare commits

...
9 Commits
3 changed files with 27 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
result
+17
View File
@@ -0,0 +1,17 @@
{ config, lib, ... }:
{
options = {
name = lib.mkOption {
type = lib.types.str;
default = "nyx";
};
homeDirectory = lib.mkOption {
type = lib.types.path;
default = "/home/${config.name}";
};
email = lib.mkOption {
type = lib.types.str;
default = "${config.name}@configureme.guv";
};
};
}
+9 -3
View File
@@ -2,8 +2,8 @@
{ pkgs, config, ... }:
let
name = "${config.home.username}";
homeDir = "${config.home.homeDirectory}";
name = "${config.name}";
homeDir = "${config.homeDirectory}";
myAliases = {
ll = "ls -hl";
la = "ls -ahl";
@@ -18,8 +18,13 @@ let
};
in
{
imports = [
./options.nix
];
home = {
stateVersion = "26.05";
homeDirectory = homeDir;
username = name;
sessionVariables = {
EDITOR = "nvim";
XDG_CONFIG_HOME = "${homeDir}/.config";
@@ -49,6 +54,7 @@ in
shellAliases = myAliases;
history.size = 10000;
setOptions = [ "NO_BEEP" ];
dotDir = "${config.xdg.configHome}/zsh";
plugins = [
{
name = "vi-mode";
@@ -61,7 +67,7 @@ in
enable = true;
settings.user = {
inherit name;
email = config.accounts.email.accounts.${name}.address;
email = config.email;
};
};
starship = {