break apart

This commit is contained in:
Tyrel Souza 2023-01-01 22:24:23 -05:00
parent d8eb4fad8a
commit e441422dc1
5 changed files with 108 additions and 96 deletions

View File

@ -22,7 +22,13 @@
}; };
darwinConfigurations."ts-tl-mbp" = darwin.lib.darwinSystem { darwinConfigurations."ts-tl-mbp" = darwin.lib.darwinSystem {
system = "x86_64-darwin"; system = "x86_64-darwin";
modules = [ home-manager.darwinModules.home-manager ./hosts/ts-tl-mbp/default.nix ]; modules = [
home-manager.darwinModules.home-manager
./hosts/ts-tl-mbp/default.nix
./hosts/ts-tl-mbp/home-manager.nix
./hosts/ts-tl-mbp/brew.nix
./hosts/ts-tl-mbp/fonts.nix
];
}; };
}; };

12
hosts/ts-tl-mbp/brew.nix Normal file
View File

@ -0,0 +1,12 @@
{ pkgs, config, lib, ... }:
{
homebrew = {
enable = true;
casks = [
"alfred"
"discord"
"slack"
"karabiner-elements"
];
};
}

View File

@ -2,100 +2,5 @@
{ {
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;
system.defaults.dock.autohide = true; system.defaults.dock.autohide = true;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.tyrel = { pkgs, ... }: {
programs.home-manager.enable = true;
home.stateVersion = "22.05";
home.file = {
bin.source = lib.file.mkOutOfStoreSymlink "../../bin";
};
home.sessionVariables = {
PAGER = "less -R";
EDITOR = "nvim";
};
home.packages = with pkgs; [
ctags
fzf
ripgrep
wget
];
programs.tmux = {
enable = true;
};
#home.file.".tmux".source = "../../tmux";
#home.file.".tmux.conf".source = "../../tmux.conf";
programs.git = {
enable = true;
includes = [
{ path = "~/code/tyrel.dev/dotfiles/gitconfig"; }
];
aliases = {
ap = "add -p";
};
extraConfig = {
pull.ff = "only";
};
};
programs.neovim = {
enable = true;
};
xdg.configFile = {
"nvim" = {
source = ../../config/nvim;
recursive = true;
};
};
programs.fish = {
enable = true;
};
xdg.configFile = {
"fish" = {
source = ../../config/fish;
recursive = true;
};
};
programs.htop = {
enable = true;
};
#xdg.configFile = {
# "htop" = {
# source = ../../config/htop;
# recursive = true;
# };
#};
}; # -- HomeManager
homebrew = {
enable = true;
casks = [
"alfred"
"discord"
"slack"
"karabiner-elements"
];
};
fonts.fonts = with pkgs; [
noto-fonts
dejavu_fonts
nerdfonts # Includes font-awesome, material-icons, powerline-fonts
iosevka
];
} }

10
hosts/ts-tl-mbp/fonts.nix Normal file
View File

@ -0,0 +1,10 @@
{ pkgs, config, lib, ... }:
{
fonts.fonts = with pkgs; [
noto-fonts
dejavu_fonts
nerdfonts # Includes font-awesome, material-icons, powerline-fonts
iosevka
];
}

View File

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