Added zsh config, powerline, and urxvt

This commit is contained in:
Nickiel12 2022-10-09 15:15:30 -07:00
parent 2bd188a33a
commit 995019d348
8 changed files with 1842 additions and 8 deletions

View file

@ -4,15 +4,15 @@
{ config, lib, pkgs, inputs, ... }:
let
user = "nixolas";
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# ./kmonad-module.nix
];
# nixpkgs.config.allowBroken = true;
boot.loader.systemd-boot.configurationLimit = 5;
boot.loader = {
efi = {
@ -56,11 +56,16 @@
services.xserver.xkbOptions = "caps:super";
services.kmonad = {
enable = true;
config = builtins.readFile ./rsrcs/keyboard.kbd;
defcfg = {
enable = true;
fallthrough = true;
keyboards.internal = {
device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
config = builtins.readFile ./rsrcs/keyboard.kbd;
defcfg = {
enable = true;
fallthrough = true;
};
};
};
@ -92,7 +97,7 @@
};
# Define a user account. Don't forget to set a password with passwd.
users.users.nixolas = {
users.users.${user} = {
isNormalUser = true;
extraGroups = [ "wheel" "video" "audio" "networkmanager" "lp" "scanner" "input" "uinput" ]; # Enable sudo for the user.
shell = pkgs.zsh;
@ -106,6 +111,12 @@
# wget
];
fonts.fonts = with pkgs; [
dejavu_fonts
meslo-lgs-nf
];
system.autoUpgrade.enable = true;
nix.settings.auto-optimise-store = true;

View file

@ -35,6 +35,8 @@
home-manager.users.${user} = {
imports = [
./home.nix
./modules/zsh.nix
./modules/urxvt.nix
];
};
}

View file

@ -29,13 +29,16 @@ in
neofetch
ranger
obsidian
powerline
# Gui application
firefox
libsForQt5.kate
];
sessionVariables = {
EDITOR = editor;
};
};
}

BIN
modules/.urxvt.nix.swp Normal file

Binary file not shown.

29
modules/urxvt.nix Normal file
View file

@ -0,0 +1,29 @@
{ config, pkgs, ... }:
let
in
{
programs.urxvt = {
enable = true;
package = pkgs.rxvt-unicode;
transparent = true;
fonts = [
"xft:MesloLGS NF:size=11"
"xft:DejaVuSansMono:size=10"
];
extraConfig = {
depth = 32;
foreground = "#F4EFD6";
background = "[80]#202020";
fontColor = "#ffffff";
blurRadius = "10"; # Doesn't seem to be affecting it
color1 = "#E44B4B";
color4 = "#0091F1";
color12 = "#48B3FB";
};
};
}

48
modules/zsh.nix Normal file
View file

@ -0,0 +1,48 @@
{ config, pkgs, lib, ... }:
let
in
{
programs.zsh = {
enable = true; # technically also enabled in user shell
dotDir = ".config/zsh";
initExtraFirst = ''
neofetch
'';
initExtra = ''
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
'';
autocd = true;
history = {
path = "$HOME/.histfile";
size = 2000;
share = true;
ignoreDups = false;
};
plugins = [
{
name = "powerline10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
];
};
home.file.".p10k.zsh" = {
source = ../rsrcs/.p10k.zsh;
};
# programs.zsh.ohMyZsh = {
# enable = true;
# };
}

1741
rsrcs/.p10k.zsh Normal file

File diff suppressed because it is too large Load diff