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

View file

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

View file

@ -29,13 +29,16 @@ in
neofetch neofetch
ranger ranger
obsidian obsidian
powerline
# Gui application # Gui application
firefox firefox
libsForQt5.kate
]; ];
sessionVariables = { sessionVariables = {
EDITOR = editor; 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