Compare commits

...

2 Commits

Author SHA1 Message Date
c9a41ac3ef Merge branch 'main' of https://git.traphouse.cathoderaytube.net/chase/nix-config 2025-06-13 00:36:45 -04:00
33c00528c2 Added zsh 2025-06-13 00:34:31 -04:00
2 changed files with 45 additions and 14 deletions

View File

@@ -44,20 +44,36 @@
flavor = "mocha";
};
programs.bash = {
# programs.bash = {
# enable = true;
# enableCompletion = true;
# historyIgnore = [
# "ls"
# "ls -a"
# "ls -l"
# "ls -la"
# "cd"
# "exit"
# ];
# };
programs.zsh = {
enable = true;
enableCompletion = true;
bashrcExtra = ''
export SSH_AUTH_SOCK=/home/chase/.bitwarden-ssh-agent.sock
'';
historyIgnore = [
"ls"
"ls -a"
"ls -l"
"ls -la"
"cd"
"exit"
];
enableBashCompletion = true;
autosuggestion.enable = true;
history = {
append = true;
extended = true;
ignoreDups = true;
ignorePatterns = [
"ls *"
"cd *"
"gs"
"exit"
];
};
syntaxHighlighting.enable = true;
};
programs.bat.enable = true;

View File

@@ -56,11 +56,11 @@
};
# Configure keymap
console.keyMap = "jp106";
console.keyMap = lib.mkDefault "jp106";
services.xserver.xkb = {
layout = lib.mkDefault "jp";
model = "jp106";
model = lib.mkDefault "jp106";
};
# Enable CUPS to print documents.
@@ -80,6 +80,17 @@
blesh.enable = true;
};
# zsh config
programs.zsh = {
enable = true;
enableCompletion = true;
enableBashCompletion = true;
enableAutosuggestions = true;
syntaxHighlighting = {
enable = true;
};
};
# Define a user account
users.users.chase = {
isNormalUser = true;
@@ -95,6 +106,10 @@
"video"
"wheel"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFSQX+s8Krl312DcnUtoEWOA2silcUnt5URtyVZz8Yek"
];
shell = pkgs.zsh;
};
# Install git and enable cache