Compare commits
13
Commits
ae93a6803d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c6953c610 | ||
|
|
087d0f27ec | ||
|
|
02882967c8 | ||
|
|
368f092bd3 | ||
|
|
ce24efde01 | ||
|
|
27fc4a3619 | ||
|
|
fc103684f0 | ||
|
|
790b66c86b | ||
|
|
2dcff861fe | ||
|
|
a21447169e | ||
|
|
013231c401 | ||
|
|
79808ec949 | ||
|
|
c1f029289c |
@@ -0,0 +1 @@
|
|||||||
|
result
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
|
options.shell = {
|
||||||
|
name = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "nyx";
|
||||||
|
};
|
||||||
|
homeDirectory = lib.mkOption {
|
||||||
|
type = lib.types.path;
|
||||||
|
default = "/home/${config.shell.name}";
|
||||||
|
};
|
||||||
|
email = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "${config.shell.name}@configureme.guv";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
+9
-3
@@ -2,8 +2,8 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "${config.home.username}";
|
name = "${config.shell.name}";
|
||||||
homeDir = "${config.home.homeDirectory}";
|
homeDir = "${config.shell.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.shell.email;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
starship = {
|
starship = {
|
||||||
|
|||||||
Reference in New Issue
Block a user