feat: full refactoring - work in progress...

This commit is contained in:
Xavier Morel
2025-07-23 16:49:52 +02:00
parent 66f7edf9a3
commit 85fdab6375
38 changed files with 726 additions and 774 deletions

View File

@@ -0,0 +1,11 @@
{
...
}:
{
imports = [
./desktop-apps.nix
./myhypr.nix
./shell.nix
./work-apps.nix
];
}

View File

@@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
...
}:
{
options.myHome.bundle.desktop-apps.enable = lib.mkEnableOption "enable desktop-apps bundle";
config = lib.mkIf config.myHome.bundle.desktop-apps.enable {
myHome.programs.kitty.enable = true;
home.packages = map lib.lowPrio [
pkgs.bottles
pkgs.ungoogled-chromium
pkgs.xfce.thunar
pkgs.xfce.thunar-archive-plugin
pkgs.xfce.thunar-volman
pkgs.vial
];
};
}

View File

@@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}:
{
options.myHome.bundle.myhypr.enable = lib.mkEnableOption "enable hypr bundle";
config = lib.mkIf config.myHome.bundle.myhypr.enable {
myHome.services.hyprland.enable = true;
myHome.services.waybar.enable = true;
home.packages = map lib.lowPrio [
pkgs.mako
pkgs.swayidle
pkgs.swaylock
pkgs.swaybg
];
};
}

View File

@@ -0,0 +1,79 @@
{
pkgs,
lib,
config,
...
}:
{
options.myHome.bundle.shell.enable = lib.mkEnableOption "enable shell bundle";
config = lib.mkIf config.myHome.bundle.shell.enable {
home.packages = with pkgs; [
commitizen
pre-commit
curl
devenv
git
just
killall
lazyjj
neofetch
p7zip
ripgrep
tree
typst
unrar
unzip
wget
yt-dlp
];
programs = {
awscli.enable = true;
bat = {
enable = true;
extraPackages = [ pkgs.bat-extras.batman ];
};
btop = {
enable = true;
settings.vim_keys = true;
};
direnv.enable = true;
eza = {
enable = true;
extraOptions = [ "--group-directories-first" ];
git = true;
icons = "auto";
};
nix-your-shell = {
enable = true;
enableFishIntegration = true;
};
fish = {
enable = true;
shellAliases = {
ls = "eza";
cat = "bat";
l = "eza -lh";
ll = "eza -lh";
la = "eza -lah";
man = "batman";
".." = "cd ..";
};
interactiveShellInit = ''
fish_vi_key_bindings
'';
};
starship = {
enable = true;
enableFishIntegration = true;
};
fzf.enable = true;
gh.enable = true;
gpg.enable = true;
jujutsu.enable = true;
lazygit.enable = true;
ripgrep.enable = true;
yazi.enable = true;
};
};
}

View File

@@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
{
options.myHome.bundle.work-apps.enable = lib.mkEnableOption "enable work-apps bundle";
config = lib.mkIf config.myHome.bundle.work-apps.enable {
home.packages = map lib.lowPrio [
pkgs.tailscale-systray
pkgs.slack
pkgs.openvpn
];
};
}