yeet
This commit is contained in:
0
nixos/modules/system/locale.nix
Normal file
0
nixos/modules/system/locale.nix
Normal file
0
nixos/modules/system/networking.nix
Normal file
0
nixos/modules/system/networking.nix
Normal file
12
nixos/modules/users/packages.nix
Normal file
12
nixos/modules/users/packages.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
users.users.users.packages = with pkgs; [
|
||||
btop
|
||||
ncdu
|
||||
tmux
|
||||
curl
|
||||
bat
|
||||
nethogs
|
||||
]
|
||||
}
|
||||
14
nixos/modules/users/users.nix
Normal file
14
nixos/modules/users/users.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./zsh.nix
|
||||
];
|
||||
# Define user account and dont forget to set a password with 'passwd'
|
||||
users.users.cerberus = {
|
||||
isNormalUser = true;
|
||||
description = "cerberus";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
||||
36
nixos/modules/users/zsh.nix
Normal file
36
nixos/modules/users/zsh.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
users.users.cerberus.packages = with pkgs; [
|
||||
zoxide
|
||||
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)"
|
||||
'';
|
||||
};
|
||||
|
||||
# Setting aliases
|
||||
environment.shellAliases = {
|
||||
ls = "ls -l --color --hyperlink=auto";
|
||||
# ".." = "cd ..";
|
||||
# "..." = "cd ../.."
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user