feat(homes/rafiq): switch to fish shell
This commit is contained in:
parent
b9ad8ac2ca
commit
1f70a57e11
3 changed files with 10 additions and 29 deletions
|
@ -7,23 +7,8 @@ let
|
|||
in
|
||||
{
|
||||
home.shell.enableShellIntegration = true;
|
||||
#TODO: change to fish
|
||||
home.sessionVariables.SHELL = "zsh";
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableVteIntegration = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
historySubstringSearch.enable = true;
|
||||
history = {
|
||||
append = true;
|
||||
extended = true;
|
||||
ignoreDups = true;
|
||||
ignoreSpace = true;
|
||||
save = 10000;
|
||||
share = true;
|
||||
size = 10000;
|
||||
};
|
||||
};
|
||||
home.sessionVariables.SHELL = "fish";
|
||||
programs.fish.enable = true;
|
||||
programs.zsh.initContent =
|
||||
mkOrder 1200
|
||||
# zsh
|
||||
|
|
|
@ -11,6 +11,7 @@ let
|
|||
str
|
||||
coercedTo
|
||||
submodule
|
||||
shellPackage
|
||||
;
|
||||
inherit (lib.pantheon) mkStrOption;
|
||||
inherit (lib.snowfall.fs) get-file;
|
||||
|
@ -43,6 +44,9 @@ in
|
|||
name = mkStrOption;
|
||||
publicKey = mkStrOption;
|
||||
email = mkStrOption;
|
||||
shell = mkOption {
|
||||
type = shellPackage;
|
||||
};
|
||||
};
|
||||
persistDirs = mkOption {
|
||||
type = listOf (coercedTo str (d: { directory = d; }) rootDir);
|
||||
|
@ -78,6 +82,7 @@ in
|
|||
members = [ "${config.mainUser.name}" ];
|
||||
};
|
||||
users."${config.mainUser.name}" = {
|
||||
inherit (config.mainUser) shell;
|
||||
uid = 1000;
|
||||
isNormalUser = true;
|
||||
hashedPasswordFile = config.sops.secrets."${config.mainUser.name}/hashedPassword".path;
|
||||
|
|
|
@ -1,22 +1,13 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs) zsh;
|
||||
in
|
||||
{
|
||||
mainUser = {
|
||||
name = "rafiq";
|
||||
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n";
|
||||
email = "rafiq@rrv.sh";
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
server.mountHelios = true;
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/atelier-cave.yaml";
|
||||
users.defaultUserShell = zsh;
|
||||
programs = {
|
||||
zsh.enable = true;
|
||||
zsh.enableCompletion = true;
|
||||
nix-ld = {
|
||||
enable = true;
|
||||
libraries = with pkgs; [ ];
|
||||
};
|
||||
};
|
||||
programs.fish.enable = true;
|
||||
programs.nix-ld.enable = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue