From 4a103475dd8154b3e8487e5e4fa9575de67ca29f Mon Sep 17 00:00:00 2001 From: xqtc Date: Sun, 10 Nov 2024 11:47:28 +0100 Subject: [PATCH] config stuff; increase ulimit NOFILE for yosai --- home/config-files/wezterm.lua | 2 +- home/modules/foot.nix | 88 ++++++++++++++++++++-------- home/modules/nixvim.nix | 2 +- hosts/x86_64-linux/yosai/default.nix | 34 +++++++++-- 4 files changed, 94 insertions(+), 32 deletions(-) diff --git a/home/config-files/wezterm.lua b/home/config-files/wezterm.lua index fb8088f..5c11f99 100644 --- a/home/config-files/wezterm.lua +++ b/home/config-files/wezterm.lua @@ -144,6 +144,6 @@ config.enable_scroll_bar = false config.enable_tab_bar = true config.tab_bar_at_bottom = true config.hide_mouse_cursor_when_typing = false -config.enable_wayland = false +config.enable_wayland = true config.warn_about_missing_glyphs = false return config diff --git a/home/modules/foot.nix b/home/modules/foot.nix index cf17880..d5b613b 100644 --- a/home/modules/foot.nix +++ b/home/modules/foot.nix @@ -21,35 +21,75 @@ colors = { alpha = 0.8; - foreground = "cdd6f4"; - background = "1e1e2e"; + # catppuccin + # foreground = "cdd6f4"; + # background = "1e1e2e"; + # + # regular0 = "45475a"; + # regular1 = "f38ba8"; + # regular2 = "a6e3a1"; + # regular3 = "f9e2af"; + # regular4 = "89b4fa"; + # regular5 = "f5c2e7"; + # regular6 = "94e2d5"; + # regular7 = "bac2de"; + # + # bright0 = "585b70"; + # bright1 = "f38ba8"; + # bright2 = "a6e3a1"; + # bright3 = "f9e2af"; + # bright4 = "89b4fa"; + # bright5 = "f5c2e7"; + # bright6 = "94e2d5"; + # bright7 = "a6adc8"; + # + # selection-foreground = "cdd6f4"; + # selection-background = "414356"; + # + # search-box-no-match = "11111b f38ba8"; + # search-box-match = "cdd6f4 313244"; + # + # jump-labels = "11111b fab387"; + # urls = "89b4fa"; + # Base16 Apathy - foot color config - regular0 = "45475a"; - regular1 = "f38ba8"; - regular2 = "a6e3a1"; - regular3 = "f9e2af"; - regular4 = "89b4fa"; - regular5 = "f5c2e7"; - regular6 = "94e2d5"; - regular7 = "bac2de"; + background = "031a16"; + foreground = "81b5ac"; - bright0 = "585b70"; - bright1 = "f38ba8"; - bright2 = "a6e3a1"; - bright3 = "f9e2af"; - bright4 = "89b4fa"; - bright5 = "f5c2e7"; - bright6 = "94e2d5"; - bright7 = "a6adc8"; + # normal + regular0 = "031a16"; + regular1 = "3e9688"; + regular2 = "883e96"; + regular3 = "3e4c96"; + regular4 = "96883e"; + regular5 = "4c963e"; + regular6 = "963e4c"; + regular7 = "81b5ac"; - selection-foreground = "cdd6f4"; - selection-background = "414356"; + # bright + bright0 = "2b685e"; + bright1 = "3e7996"; + bright2 = "0b342d"; + bright3 = "184e45"; + bright4 = "5f9c92"; + bright5 = "a7cec8"; + bright6 = "3e965b"; + bright7 = "d2e7e4"; - search-box-no-match = "11111b f38ba8"; - search-box-match = "cdd6f4 313244"; + # extended + "16" = "3e7996"; + "17" = "3e965b"; + "18" = "0b342d"; + "19" = "184e45"; + "20" = "5f9c92"; + "21" = "a7cec8"; - jump-labels = "11111b fab387"; - urls = "89b4fa"; + # misc + selection-background = "81b5ac"; + selection-foreground = "031a16"; + urls = "5f9c92"; + jump-labels = "031a16 3e4c96"; + scrollback-indicator = "031a16 5f9c92"; }; }; }; diff --git a/home/modules/nixvim.nix b/home/modules/nixvim.nix index 83f3435..174933b 100644 --- a/home/modules/nixvim.nix +++ b/home/modules/nixvim.nix @@ -145,7 +145,7 @@ enable = true; settings.context = "buffers"; }; - neocord.enable = true; + neocord.enable = false; rustaceanvim = { enable = false; settings = { diff --git a/hosts/x86_64-linux/yosai/default.nix b/hosts/x86_64-linux/yosai/default.nix index d265719..8e564a3 100644 --- a/hosts/x86_64-linux/yosai/default.nix +++ b/hosts/x86_64-linux/yosai/default.nix @@ -30,6 +30,15 @@ }; }; + security.pam.loginLimits = [ + { + domain = "*"; + type = "soft"; + item = "nofile"; + value = "4096"; + } + ]; + nix.settings.experimental-features = ["nix-command" "flakes"]; programs.dconf.enable = true; @@ -87,9 +96,8 @@ users.users.xqtc = { isNormalUser = true; extraGroups = ["wheel"]; # Enable ‘sudo’ for the user. + shell = pkgs.zsh; packages = with pkgs; [ - firefox - neovim git foot tree @@ -98,10 +106,24 @@ # List packages installed in system profile. To search, run: # $ nix search wget - # environment.systemPackages = with pkgs; [ - # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - # wget - # ]; + environment.systemPackages = with pkgs; [ + vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. + wget + gcc13 + cargo + cargo-generate + sway + glib + #swaylock + swaylock-effects + tofi + waybar + wl-clipboard + wdisplays + #qemu_full + #surrealdb + zathura + ]; # Some programs need SUID wrappers, can be configured further or are # started in user sessions.