mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
zsh for root user
This commit is contained in:
parent
4cf48373fd
commit
a2c7be1bd3
@ -1,14 +1,6 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
# https://nixos.wiki/wiki/Command_Shell
|
||||
# https://nixos.wiki/wiki/Zsh
|
||||
programs.zsh.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
# Inside the following Home Manager configuration block,
|
||||
# `config` refers to Home Manager configuration.
|
||||
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
||||
programs.zsh = {
|
||||
let
|
||||
zsh-config = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
#ll = "ls -l";
|
||||
@ -18,10 +10,6 @@
|
||||
history.ignoreDups = true;
|
||||
#history.ignoreAllDups = true;
|
||||
|
||||
# nix-repl: config.home-manager.users.yoda.programs.zsh.history.path
|
||||
# -> /home/yoda/.local/share/.histfile
|
||||
history.path = "${config.xdg.dataHome}/.histfile";
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
@ -34,5 +22,25 @@
|
||||
theme = "agnoster";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
# https://nixos.wiki/wiki/Command_Shell
|
||||
# https://nixos.wiki/wiki/Zsh
|
||||
programs.zsh.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
# Inside the following Home Manager configuration block,
|
||||
# `config` refers to Home Manager configuration.
|
||||
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
||||
programs.zsh = zsh-config // {
|
||||
# nix-repl: config.home-manager.users.yoda.programs.zsh.history.path
|
||||
# -> ~/.local/share/.histfile
|
||||
history.path = "${config.xdg.dataHome}/.histfile";
|
||||
};
|
||||
};
|
||||
home-manager.users.root = { osConfig, config, pkgs, ... }: {
|
||||
programs.zsh = zsh-config // {
|
||||
history.path = "${config.xdg.dataHome}/.histfile";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user