Fix remaining issues

This commit is contained in:
Jerry Starke 2024-02-09 05:32:21 +01:00
parent b2734b71e6
commit 25a559bb4d
3 changed files with 7 additions and 15 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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; [];
};