diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2023-09-30 03:52:11 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2023-09-30 03:52:11 -0600 |
| commit | d9e3d1977e79ea36da7bc615699b67f431913c23 (patch) | |
| tree | 3627bb75e08a8a88c3706e9d8b96751fbf62143f /home-manager | |
| parent | 8f317ee332fffe934ec8bf61a77efc1eb57bb9df (diff) | |
adding theming and config from ryan4yin nix-config on git
Diffstat (limited to 'home-manager')
| -rw-r--r-- | home-manager/btop.nix | 12 | ||||
| -rw-r--r-- | home-manager/helix.nix | 25 | ||||
| -rw-r--r-- | home-manager/home.nix | 22 | ||||
| -rw-r--r-- | home-manager/hyprland.nix | 6 | ||||
| -rw-r--r-- | home-manager/shell.nix | 12 | ||||
| -rw-r--r-- | home-manager/starship.nix | 11 |
6 files changed, 73 insertions, 15 deletions
diff --git a/home-manager/btop.nix b/home-manager/btop.nix new file mode 100644 index 0000000..b736efe --- /dev/null +++ b/home-manager/btop.nix @@ -0,0 +1,12 @@ +{ catppuccin-btop, ... }: { + home.file.".config/btop/themes".source = "${catppuccin-btop}/themes"; + + #replace htop/nmon + programs.btop = { + enable = true; + settings = { + color_theme = "catppuccing_mocha"; + theme_background = false; # make btop transparent + }; + }; +} diff --git a/home-manager/helix.nix b/home-manager/helix.nix new file mode 100644 index 0000000..a8891a5 --- /dev/null +++ b/home-manager/helix.nix @@ -0,0 +1,25 @@ +{ pkgs, catppuccin-helix, ... }: { + # https://github.com/catppuccin/helix + xdg.configFile."helix/themes".source = "${catppuccin-helix}/themes/default"; + + programs.helix = { + enable = true; + package = pkgs.helix; + # defaultEditor = true; + settings = { + theme = "catppuccin_mocha"; + editor = { + line-number = "relative"; + cursorline = true; + color-modes = true; + lsp.display-messages = true; + cursor.shape = { + insert = "bar"; + normal = "block"; + select = "underline"; + }; + indent-guides.render = true; + }; + }; + }; +} diff --git a/home-manager/home.nix b/home-manager/home.nix index 8ce8d5e..02785bb 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -4,9 +4,13 @@ # unstable = import <nixpkgs-unstable>{}; # in { - # imports = [ - # (import "${home-manager}/nixos") - # ]; + imports = [ + ./hyprland.nix + ./starship.nix + ./btop.nix + ./helix.nix + ./shell.nix + ]; nixpkgs = { # texlive.combined.scheme-medium; @@ -126,18 +130,6 @@ }; }; - starship = { - enable = true; - settings = { - command_timeout = 1000; - }; - }; - - helix = { - enable = true; - # defaultEditor = true; - settings.theme = "base16_transparent"; - }; # Let Home Manager install and manage itself. # home-manager.enable = true; }; diff --git a/home-manager/hyprland.nix b/home-manager/hyprland.nix new file mode 100644 index 0000000..0540606 --- /dev/null +++ b/home-manager/hyprland.nix @@ -0,0 +1,6 @@ +{ config, lib, ...}: +{ + programs.hyprland.enable = true; + # Optional, hint electron apps to use wayland: + environment.sessionVariables.NIXOS_OZONE_WL = "1"; +}
\ No newline at end of file diff --git a/home-manager/shell.nix b/home-manager/shell.nix new file mode 100644 index 0000000..c86190e --- /dev/null +++ b/home-manager/shell.nix @@ -0,0 +1,12 @@ +{nushell-scripts, ... }: { + programs.nushell = { + extraConfig = '' + use ${nushell-scripts}/custom-completions/pass/pass-completions.nu * + use ${nushell-scripts}/custom-completions/nix/nix-completions.nu * + use ${nushell-scripts}/custom-completions/man/man-completions.nu * + use ${nushell-scripts}/custom-completions/cargo/cargo-completions.nu * + use ${nushell-scripts}/custom-completions/make/make-completions.nu * + use ${nushell-scripts}/custom-completions/git/git-completions.nu * + ''; + }; +} diff --git a/home-manager/starship.nix b/home-manager/starship.nix new file mode 100644 index 0000000..12d6f6b --- /dev/null +++ b/home-manager/starship.nix @@ -0,0 +1,11 @@ +{ catppuccin-starship, ... }: { + programs.starship = { + enable = true; + + settings = { + command_timeout = 1000; + + palette = "catppuccin_mocha"; + } // builtins.fromTOML (builtins.readFile "${catppuccin-starship}/palettes/mocha.toml"); + }; +}
\ No newline at end of file |
