From c154e11c9ecb3a234f7403a15caf9241e3f1d95c Mon Sep 17 00:00:00 2001 From: dracoling Date: Fri, 23 Aug 2024 00:50:16 -0400 Subject: [PATCH] move home-manager and flake config --- .../home-manager => home-manager}/flake.nix | 0 .../home-manager => home-manager}/home.nix | 43 ++++++++++--------- 2 files changed, 23 insertions(+), 20 deletions(-) rename {dotfiles/home-manager => home-manager}/flake.nix (100%) rename {dotfiles/home-manager => home-manager}/home.nix (66%) diff --git a/dotfiles/home-manager/flake.nix b/home-manager/flake.nix similarity index 100% rename from dotfiles/home-manager/flake.nix rename to home-manager/flake.nix diff --git a/dotfiles/home-manager/home.nix b/home-manager/home.nix similarity index 66% rename from dotfiles/home-manager/home.nix rename to home-manager/home.nix index b9e8d69..8ba12aa 100644 --- a/dotfiles/home-manager/home.nix +++ b/home-manager/home.nix @@ -3,8 +3,8 @@ { # Home Manager needs a bit of information about you and the paths it should # manage. - home.username = "nixos"; - home.homeDirectory = "/home/nixos"; + home.username = "draco"; + home.homeDirectory = "/home/draco"; # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release @@ -21,27 +21,16 @@ pkgs.glances pkgs.taskwarrior3 pkgs.vit - # # Adds the 'hello' command to your environment. It prints a friendly - # # "Hello, world!" when run. - # pkgs.hello - - # # It is sometimes useful to fine-tune packages, for example, by applying - # # overrides. You can do that directly here, just don't forget the - # # parentheses. Maybe you want to install Nerd Fonts with a limited number of - # # fonts? - # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) - - # # You can also create simple shell scripts directly inside your - # # configuration. For example, this adds a command 'my-hello' to your - # # environment: - # (pkgs.writeShellScriptBin "my-hello" '' - # echo "Hello, ${config.home.username}!" - # '') ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. home.file = { + ".config/nvim" = { + source = dotfiles/nvim; + recursive = true; + }; + # # Building this configuration will create a copy of 'dotfiles/screenrc' in # # the Nix store. Activating the configuration will then make '~/.screenrc' a # # symlink to the Nix store copy. @@ -74,6 +63,20 @@ # EDITOR = "emacs"; }; - # Let Home Manager install and manage itself. - programs.home-manager.enable = true; + programs = { + # Let Home Manager install and manage itself. + home-manager.enable = true; + + fish = { + enable = true; + # Fish shellAbbrs + shellAbbrs = { + garbage = "sudo nix-collect-garbage --delete-older-than 7d"; + rbs = "sudo nixos-rebuild switch"; + rebuild-all = "sudo nix-collect-garbage --delete-older-than 7d && sudo nixos-rebuild switch"; + make-tide-prompt = "tide configure --auto --style=Rainbow --prompt_colors='True color' --show_time='24-hour format' --rainbow_prompt_separators=Vertical --powerline_prompt_heads=Round --powerline_prompt_tails=Flat --powerline_prompt_style='Two lines, character' --prompt_connection=Disconnected --powerline_right_prompt_frame=No --prompt_spacing=Compact --icons='Many icons' --transient=No" + }; + }; + }; + }