Move fonts to be defined when needed, move program shell integration settings into shell-specific expressions

This commit is contained in:
Evie Litherland-Smith 2023-04-29 12:38:42 +01:00
parent 6d510896f6
commit 6b1a530820
21 changed files with 54 additions and 104 deletions

View file

@ -0,0 +1,25 @@
{ pkgs, ... }:
{
imports = [
../../browser/librewolf.nix
../../desktop/wayland/hyprland.nix
../../env/bash.nix
../../env/fish.nix
../../env/bat.nix
../../env/direnv.nix
../../env/keychain.nix
../../env/ssh.nix
../../env/starship.nix
../../terminal/wezterm.nix
../../tui/neovim.nix
../../tui/lazygit.nix
];
home.packages = with pkgs; [
bitwarden
file
marktext
silver-searcher
signal-desktop
zotero
];
}

View file

@ -1,35 +1,15 @@
{ pkgs, ... }:
{
imports = [
../../browser/librewolf.nix
../../desktop/wayland/hyprland.nix
../../env/fonts/firacode.nix
../../env/shell/bash.nix
../../env/shell/fish.nix
../../env/bat.nix
../../env/direnv.nix
../../env/keychain.nix
../../env/nixpkgs.nix
../../env/ssh.nix
../../env/starship.nix
../common/desktop.nix
../../git/personal.nix
../../terminal/foot.nix
../../terminal/wezterm.nix
../../tui/neovim.nix
../../tui/lazygit.nix
];
home.packages = with pkgs; [
bitwarden
file
marktext
mesa
neovide
nomachine-client
otpclient
silver-searcher
signal-desktop
steam
steam-run
zotero
];
}

View file

@ -1,35 +1,15 @@
{ pkgs, ... }:
{
imports = [
../../browser/librewolf.nix
../../desktop/wayland/hyprland.nix
../../env/fonts/firacode.nix
../../env/shell/bash.nix
../../env/shell/fish.nix
../../env/bat.nix
../../env/direnv.nix
../../env/keychain.nix
../../env/nixpkgs.nix
../../env/ssh.nix
../../env/starship.nix
../common/desktop.nix
../../git/work.nix
../../terminal/wezterm.nix
../../terminal/foot.nix
../../tui/neovim.nix
../../tui/lazygit.nix
];
home.packages = with pkgs; [
bitwarden
file
libreoffice-fresh
marktext
neovide
nomachine-client
otpclient
silver-searcher
signal-desktop
teams
zoom-us
zotero
];
}

View file

@ -30,6 +30,7 @@ in
# text = "# test";
};
xsession.enable = true;
programs.keychain.enableXsessionIntegration = true;
wayland.windowManager.hyprland = {
enable = true;
xwayland = {

View file

@ -1,5 +1,9 @@
{ ... }:
{ pkgs, ... }:
{
home.packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
bluez
];
xdg.configFile."waybar".source = ./config/waybar;
programs.waybar.enable = true;
}

View file

@ -1,2 +1,5 @@
{ ... }:
{ xsession.enable = true; }
{
xsession.enable = true;
programs.keychain.enableXsessionIntegration = true;
}

View file

@ -1,5 +1,6 @@
{ pkgs, ... }:
{
imports = [ ./common.nix ];
xresources.extraConfig = builtins.readFile
(
pkgs.fetchFromGitHub

View file

@ -11,4 +11,6 @@
xnv = "WINIT_UNIX_BACKEND=x11 neovide --multigrid --maximized";
};
};
programs.keychain.enableBashIntegration = true;
programs.starship.enableBashIntegration = true;
}

View file

@ -1,6 +1,5 @@
{ pkgs, ... }:
{
imports = [ ../env/fonts];
programs.bat = {
enable = true;
config = {

View file

@ -1,10 +1,4 @@
{...}:
{ ... }:
{
imports = [ ./shell ];
programs.direnv = {
enable = true;
#enableBashIntegration = true;
#enableZshIntegration = true;
#enableFishIntegration = true;
};
programs.direnv.enable = true;
}

View file

@ -14,4 +14,6 @@
rxnv = "WINIT_UNIX_BACKEND=x11 neovide --multigrid --maximized --server ~/.nvim.sock";
};
};
programs.keychain.enableFishIntegration = true;
programs.starship.enableFishIntegration = true;
}

View file

@ -1,7 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
fira-code
(nerdfonts.override { fonts = [ "FiraCode" ]; })
];
}

View file

@ -1,7 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
iosevka
(nerdfonts.override { fonts = [ "Iosevka" ]; })
];
}

View file

@ -1,12 +1,7 @@
{ ... }:
{
imports = [ ./shell ];
programs.keychain = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
enableXsessionIntegration = true;
extraFlags = [
"--quiet"
"--ignore-missing"

View file

@ -1,4 +0,0 @@
{ ... }:
{
nixpkgs.config.allowUnfree = true;
}

View file

@ -1,8 +0,0 @@
{ ... }:
{
imports = [
./bash.nix
./zsh.nix
./fish.nix
];
}

View file

@ -1,6 +1,5 @@
{ ... }:
{
imports = [ ./shell ];
programs.ssh = {
enable = true;
includes = [ "config.d/*" ];

View file

@ -1,11 +1,6 @@
{ ... }:
{ pkgs, ... }:
{
imports = [ ./shell ];
home.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" ]; }) ];
xdg.configFile."starship.toml".source = ./config/starship.toml;
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
};
programs.starship.enable = true;
}

View file

@ -17,4 +17,6 @@
path = "${config.xdg.dataHome}/zsh/history";
};
};
programs.keychain.enableZshIntegration = true;
programs.starship.enableZshIntegration = true;
}

View file

@ -1,6 +1,6 @@
{ ... }:
{ pkgs, ... }:
{
fonts.fontconfig.enable = true;
home.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" ]; }) ];
programs.foot = {
enable = true;
settings = {
@ -9,9 +9,6 @@
font = "FiraCode Nerd Font:size=12";
dpi-aware = "yes";
};
mouse = {
hide-when-typing = true;
};
colors = {
# Catppuccin Macchiato
foreground = "cad3f5"; # Text

View file

@ -1,11 +1,8 @@
{ ... }:
{ pkgs, ... }:
{
imports = [ ../env/fonts ];
home.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" ]; }) ];
programs.urxvt = {
enable = true;
fonts = [
"xft:FiraCode Nerd Font Mono:pixelsize=16"
"xft:Iosevka Nerd Font Mono:pixelsize=16"
];
fonts = [ "xft:FiraCode Nerd Font Mono:pixelsize=16" ];
};
}