66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
|
# users - note: packages defined here will only be installed for the current user
|
||
|
|
||
|
{ pkgs, username, ... }:
|
||
|
|
||
|
let
|
||
|
inherit (import ./variables.nix) gitUsername;
|
||
|
in
|
||
|
{
|
||
|
users = {
|
||
|
mutableUsers = true;
|
||
|
users."${username}" = {
|
||
|
homeMode = "755";
|
||
|
isNormalUser = true;
|
||
|
description = "${gitUsername}";
|
||
|
extraGroups = [
|
||
|
"networkmanager"
|
||
|
"wheel"
|
||
|
"libvirtd"
|
||
|
"scanner"
|
||
|
"lp"
|
||
|
"video"
|
||
|
"input"
|
||
|
"audio"
|
||
|
];
|
||
|
|
||
|
# define user packages here
|
||
|
packages = with pkgs; [
|
||
|
|
||
|
];
|
||
|
};
|
||
|
|
||
|
defaultUserShell = pkgs.zsh;
|
||
|
};
|
||
|
|
||
|
environment.shells = with pkgs; [ zsh ];
|
||
|
environment.systemPackages = with pkgs; [ fzf ];
|
||
|
|
||
|
programs = {
|
||
|
# zsh configuration
|
||
|
zsh = {
|
||
|
enable = true;
|
||
|
enableCompletion = true;
|
||
|
ohMyZsh = {
|
||
|
enable = true;
|
||
|
plugins = [ "git" ];
|
||
|
theme = "funky";
|
||
|
};
|
||
|
|
||
|
autosuggestions.enable = true;
|
||
|
syntaxHighlighting.enable = true;
|
||
|
|
||
|
promptInit = ''
|
||
|
fastfetch -c $HOME/.config/fastfetch/config-compact.jsonc
|
||
|
|
||
|
#pokemon colorscripts like. Make sure to install krabby package
|
||
|
#krabby random --no-mega --no-gmax --no-regional --no-title -s;
|
||
|
|
||
|
source <(fzf --zsh);
|
||
|
HISTFILE=~/.zsh_history;
|
||
|
HISTSIZE=10000;
|
||
|
SAVEHIST=10000;
|
||
|
setopt appendhistory;
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|