feat: full refactoring - work in progress...
This commit is contained in:
11
modules/home-manager/bundles/default.nix
Normal file
11
modules/home-manager/bundles/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./desktop-apps.nix
|
||||
./myhypr.nix
|
||||
./shell.nix
|
||||
./work-apps.nix
|
||||
];
|
||||
}
|
||||
20
modules/home-manager/bundles/desktop-apps.nix
Normal file
20
modules/home-manager/bundles/desktop-apps.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
19
modules/home-manager/bundles/myhypr.nix
Normal file
19
modules/home-manager/bundles/myhypr.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
79
modules/home-manager/bundles/shell.nix
Normal file
79
modules/home-manager/bundles/shell.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
16
modules/home-manager/bundles/work-apps.nix
Normal file
16
modules/home-manager/bundles/work-apps.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user