cleanup by gurjaka
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
users.users.users.packages = with pkgs; [
|
||||
btop
|
||||
ncdu
|
||||
tmux
|
||||
curl
|
||||
bat
|
||||
nethogs
|
||||
]
|
||||
btop
|
||||
ncdu
|
||||
tmux
|
||||
curl
|
||||
bat
|
||||
nethogs
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
{pkgs, ...}: let
|
||||
user = "cerberus";
|
||||
in {
|
||||
imports = [
|
||||
./zsh.nix
|
||||
(import ./zsh.nix {inherit pkgs user;})
|
||||
./zoxide.nix
|
||||
];
|
||||
|
||||
# Define user account and dont forget to set a password with 'passwd'
|
||||
users.users.cerberus = {
|
||||
isNormalUser = true;
|
||||
users.users."${user}" = {
|
||||
isNormalUser = true;
|
||||
description = "cerberus";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
||||
|
||||
9
nixos/modules/users/zoxide.nix
Normal file
9
nixos/modules/users/zoxide.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
@@ -1,36 +1,37 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
users.users.cerberus.packages = with pkgs; [
|
||||
zoxide
|
||||
fzf
|
||||
pkgs,
|
||||
user,
|
||||
...
|
||||
}: {
|
||||
users.users.${user}.packages = with pkgs; [
|
||||
fzf
|
||||
];
|
||||
|
||||
# ZSH configuration
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestions.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
histSize = 10000;
|
||||
histFile = "$HOME/.zsh_history";
|
||||
setOptions = [
|
||||
"HIST_IGNORE_ALL_DUPS"
|
||||
"APPEND_HISTORY"
|
||||
"SHARE_HISTORY"
|
||||
"HIST_IGNORE_SPACE"
|
||||
"EXTENDED_GLOB"
|
||||
"CORRECT"
|
||||
];
|
||||
shellInit = ''
|
||||
eval "$(zoxide init zsh)"
|
||||
eval "$(fzf --zsh)"
|
||||
'';
|
||||
};
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestions.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
histSize = 10000;
|
||||
histFile = "$HOME/.zsh_history";
|
||||
setOptions = [
|
||||
"HIST_IGNORE_ALL_DUPS"
|
||||
"APPEND_HISTORY"
|
||||
"SHARE_HISTORY"
|
||||
"HIST_IGNORE_SPACE"
|
||||
"EXTENDED_GLOB"
|
||||
"CORRECT"
|
||||
];
|
||||
shellInit = ''
|
||||
eval "$(fzf --zsh)"
|
||||
alias ..="cd .."
|
||||
alias ...="cd ../.."
|
||||
'';
|
||||
};
|
||||
|
||||
# Setting aliases
|
||||
environment.shellAliases = {
|
||||
ls = "ls -l --color --hyperlink=auto";
|
||||
# ".." = "cd ..";
|
||||
# "..." = "cd ../.."
|
||||
};
|
||||
ls = "ls -l --color --hyperlink=auto";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user