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, ... }: { 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,8 +18,13 @@ let
}; };
in in
{ {
imports = [
./options.nix
];
home = { home = {
stateVersion = "26.05"; stateVersion = "26.05";
homeDirectory = homeDir;
username = name;
sessionVariables = { sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
XDG_CONFIG_HOME = "${homeDir}/.config"; XDG_CONFIG_HOME = "${homeDir}/.config";
@@ -49,6 +54,7 @@ in
shellAliases = myAliases; shellAliases = myAliases;
history.size = 10000; history.size = 10000;
setOptions = [ "NO_BEEP" ]; setOptions = [ "NO_BEEP" ];
dotDir = "${config.xdg.configHome}/zsh";
plugins = [ plugins = [
{ {
name = "vi-mode"; name = "vi-mode";
@@ -61,7 +67,7 @@ in
enable = true; enable = true;
settings.user = { settings.user = {
inherit name; inherit name;
email = config.accounts.email.accounts.${name}.address; email = config.email;
}; };
}; };
starship = { starship = {