Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce24efde01 | ||
|
|
27fc4a3619 | ||
|
|
fc103684f0 | ||
|
|
790b66c86b | ||
|
|
2dcff861fe | ||
|
|
a21447169e | ||
|
|
013231c401 | ||
|
|
79808ec949 | ||
|
|
c1f029289c |
@@ -0,0 +1 @@
|
||||
result
|
||||
@@ -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
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user