mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
Moved nix files from home-manager to flake to be more generalized
This commit is contained in:
parent
d65ec62e43
commit
6b848b363a
21 changed files with 2 additions and 2 deletions
|
|
@ -1,161 +0,0 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
# lib,
|
||||
# config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home.username = "tyler";
|
||||
home.homeDirectory = "/home/tyler";
|
||||
|
||||
home.enableNixpkgsReleaseCheck = false;
|
||||
|
||||
xdg.enable = true;
|
||||
|
||||
imports = [
|
||||
./fish.nix
|
||||
./nushell.nix
|
||||
# ./nom.nix
|
||||
# ./neovim.nix
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
outputs.overlays.additions
|
||||
outputs.overlays.modifications
|
||||
outputs.overlays.unstable-packages
|
||||
|
||||
inputs.helix.overlays.default
|
||||
];
|
||||
};
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Fonts
|
||||
(nerdfonts.override {fonts = ["JetBrainsMono"];})
|
||||
|
||||
unstable.nix-output-monitor
|
||||
|
||||
# dotfiles
|
||||
age
|
||||
unstable.chezmoi
|
||||
|
||||
# backup
|
||||
restic
|
||||
libnotify
|
||||
|
||||
distrobox
|
||||
|
||||
wl-clipboard
|
||||
usbutils
|
||||
|
||||
yadm
|
||||
|
||||
# Shell
|
||||
bash
|
||||
starship
|
||||
btop
|
||||
ripgrep
|
||||
fh
|
||||
fd
|
||||
glow
|
||||
gitoxide
|
||||
lnav
|
||||
|
||||
fzf
|
||||
zoxide
|
||||
|
||||
# Software Dev
|
||||
tig
|
||||
mold
|
||||
|
||||
# language servers
|
||||
efm-langserver
|
||||
sumneko-lua-language-server
|
||||
nil
|
||||
alejandra
|
||||
lemminx
|
||||
pylyzer
|
||||
ltex-ls # Spell checker
|
||||
];
|
||||
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
package = inputs.helix.packages.${pkgs.system}.default;
|
||||
};
|
||||
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
theme = "GitHub";
|
||||
};
|
||||
};
|
||||
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.thefuck = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
enableInstantMode = true;
|
||||
};
|
||||
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.yazi;
|
||||
enableFishIntegration = true;
|
||||
shellWrapperName = "y";
|
||||
};
|
||||
|
||||
services.darkman = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.darkman;
|
||||
settings = {
|
||||
lat = 45.408;
|
||||
lng = -74.159;
|
||||
};
|
||||
|
||||
darkModeScripts = {
|
||||
helix-editor = ''
|
||||
sed -i 's/theme = ".*"/theme = "catppuccin_macchiato"/' $HOME/.config/helix/config.toml
|
||||
'';
|
||||
|
||||
alacritty = ''
|
||||
ln -fs ~/.config/alacritty/themes/catppuccin_macchiato.toml ~/.config/alacritty/themes/_active.toml
|
||||
touch ~/.config/alacritty/alacritty.toml
|
||||
'';
|
||||
};
|
||||
|
||||
lightModeScripts = {
|
||||
helix-editor = ''
|
||||
sed -i 's/theme = ".*"/theme = "catppuccin_latte"/' $HOME/.config/helix/config.toml
|
||||
'';
|
||||
|
||||
alacritty = ''
|
||||
ln -fs ~/.config/alacritty/themes/catppuccin_latte.toml ~/.config/alacritty/themes/_active.toml
|
||||
touch ~/.config/alacritty/alacritty.toml
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue