added users.nix
This commit is contained in:
parent
7de8782c38
commit
37f1e87030
|
@ -0,0 +1,66 @@
|
|||
# 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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue