aww yeah imports

This commit is contained in:
Tyrel Souza 2023-01-02 11:56:47 -05:00
parent 1901824037
commit 20389d4f53
5 changed files with 77 additions and 84 deletions

24
hosts/_common/home.nix Normal file
View File

@ -0,0 +1,24 @@
{ pkgs, ... }:
{
home.stateVersion = "22.05";
home.sessionVariables = {
XDG_CONFIG_HOME = "/Users/tyrel/.config";
PAGER = "less -R";
EDITOR = "nvim";
};
home.packages = with pkgs; [
bat
ctags
exa
fzf
ripgrep
wget
];
home.file = {
".tmux.conf" = {
source = ../../home/tmux.conf;
recursive = true;
};
};
}

View File

@ -1,73 +0,0 @@
{ pkgs, ... }:
{
home.stateVersion = "22.05";
home.sessionVariables = {
PAGER = "less -R";
EDITOR = "nvim";
};
home.packages = with pkgs; [
bat
ctags
exa
fzf
ripgrep
wget
];
programs.tmux = {
enable = true;
};
home.file = {
".tmux.conf" = {
source = ../../home/tmux.conf;
recursive = true;
};
};
programs.git = {
enable = true;
includes = [
{ path = "~/code/tyrel.dev/dotfiles/home/gitconfig"; }
];
aliases = {
ap = "add -p";
};
extraConfig = {
pull.ff = "only";
};
};
programs.neovim = {
enable = true;
};
programs.fish = {
enable = true;
};
programs.htop = {
enable = true;
};
#xdg.configFile = {
# "htop" = {
# source = ../../home/config/htop;
# recursive = true;
# };
#};
# XDG CONFIGS
xdg.configFile = {
"nvim" = {
source = ../../home/config/nvim;
recursive = true;
};
"fish" = {
source = ../../home/config/fish;
recursive = true;
};
};
}

View File

@ -0,0 +1,32 @@
{ pkgs, ... }:
{
programs.home-manager.enable = true;
programs.tmux = {
enable = true;
};
programs.git = {
enable = true;
includes = [
{ path = "~/code/tyrel.dev/dotfiles/home/gitconfig"; }
];
aliases = {
ap = "add -p";
};
extraConfig = {
pull.ff = "only";
};
};
programs.neovim = {
enable = true;
};
programs.fish = {
enable = true;
};
programs.htop = {
enable = true;
};
}

14
hosts/_common/xdg.nix Normal file
View File

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
xdg.configFile = {
"nvim" = {
source = ../../home/config/nvim;
recursive = true;
};
"fish" = {
source = ../../home/config/fish;
recursive = true;
};
};
}

View File

@ -3,21 +3,17 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.tyrel = { pkgs, ... }: {
programs.home-manager.enable = true;
home.stateVersion = "22.05";
home.sessionVariables = {
XDG_CONFIG_HOME = "/Users/tyrel/.config";
};
# Load Common Packages
common = pkgs.callPackage ../_common/homepkgs.nix {};
# Common Imports
imports = [
../_common/home.nix
../_common/programs.nix
../_common/xdg.nix
];
# XDG CONFIGS
xdg.configFile = {
"karabiner" = {
xdg.configFile."karabiner" = {
source = ../../home/config/karabiner;
recursive = true;
};
};
}; # -- HomeManager