mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-22 22:53:07 +01:00
Fix remaining issues
This commit is contained in:
parent
b2734b71e6
commit
25a559bb4d
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, username, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let inherit (import ../../options.nix) flakeDir theShell; in
|
||||
lib.mkIf (theShell == "bash") {
|
||||
@ -33,5 +33,4 @@ lib.mkIf (theShell == "bash") {
|
||||
".."="cd ..";
|
||||
};
|
||||
};
|
||||
users.users.${username}.shell = pkgs.bash;
|
||||
}
|
||||
|
@ -1,20 +1,12 @@
|
||||
{ config, pkgs, username, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let inherit (import ../../options.nix) flakeDir theShell; in
|
||||
lib.mkIf (theShell == "zsh") {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
autosuggestions = {
|
||||
enable = true;
|
||||
async = true;
|
||||
highlightStyle = "fg=cyan";
|
||||
strategy = ["completion"];
|
||||
};
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = ["history-substring-search"];
|
||||
};
|
||||
enableAutosuggestions = true;
|
||||
historySubstringSearch.enable = true;
|
||||
profileExtra = ''
|
||||
#if [ -z "$DISPLAY" ] && [ "$XDG_VNTR" = 1 ]; then
|
||||
# exec Hyprland
|
||||
@ -64,5 +56,4 @@ lib.mkIf (theShell == "zsh") {
|
||||
".."="cd ..";
|
||||
};
|
||||
};
|
||||
users.users.${username}.shell = pkgs.zsh;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
let
|
||||
inherit (import ./options.nix)
|
||||
theLocale theTimezone gitUsername
|
||||
wallpaperDir wallpaperGit
|
||||
theShell wallpaperDir wallpaperGit
|
||||
theLCVariables theKBDLayout;
|
||||
in {
|
||||
imports =
|
||||
@ -43,6 +43,8 @@ in {
|
||||
isNormalUser = true;
|
||||
description = "${gitUsername}";
|
||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
|
||||
shell = pkgs.${theShell};
|
||||
ignoreShellProgramCheck = true;
|
||||
packages = with pkgs; [];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user