move home-manager and flake config

This commit is contained in:
dracoling 2024-08-23 00:50:16 -04:00
parent 2e56832d94
commit c154e11c9e
2 changed files with 23 additions and 20 deletions

View file

@ -3,8 +3,8 @@
{ {
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
home.username = "nixos"; home.username = "draco";
home.homeDirectory = "/home/nixos"; home.homeDirectory = "/home/draco";
# This value determines the Home Manager release that your configuration is # This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release # compatible with. This helps avoid breakage when a new Home Manager release
@ -21,27 +21,16 @@
pkgs.glances pkgs.glances
pkgs.taskwarrior3 pkgs.taskwarrior3
pkgs.vit 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 # Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'. # plain files is through 'home.file'.
home.file = { home.file = {
".config/nvim" = {
source = dotfiles/nvim;
recursive = true;
};
# # Building this configuration will create a copy of 'dotfiles/screenrc' in # # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a # # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy. # # symlink to the Nix store copy.
@ -74,6 +63,20 @@
# EDITOR = "emacs"; # EDITOR = "emacs";
}; };
programs = {
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; 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"
};
};
};
} }