feat(util): Added option to easily add new programs/modules using just
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled

feat(virtualisation): Added waydroid
chore(structure): moved all individual home.packages into their own files
This commit is contained in:
2026-01-13 11:35:11 +05:30
parent 165dff7faa
commit fd2ea0ba07
24 changed files with 69 additions and 49 deletions

View File

@@ -431,7 +431,7 @@
# };
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [sops just openssl];
packages = with pkgs; [sops just openssl ast-grep];
};
};
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = [
pkgs._1password-cli
];
}

View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.alejandra];}

1
home/programs/aria2.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.aria2];}

View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.ast-grep];}

1
home/programs/bottom.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.bottom];}

1
home/programs/btop.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.btop];}

1
home/programs/cachix.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.cachix];}

View File

@@ -5,28 +5,46 @@
}: {
imports = [
../../modules
./1password-cli.nix
./aichat.nix
./alejandra.nix
./aria2.nix
./ast-grep.nix
./atuin.nix
./bat.nix
./bottom.nix
./btop.nix
./cachix.nix
./carapace.nix
./ddcbacklight.nix
./deploy-rs.nix
./direnv.nix
./dust.nix
./eilmeldung.nix
./eza.nix
./fastfetch.nix
./fd.nix
./file.nix
./fish.nix
./fzf.nix
./gh.nix
./git.nix
./gnupg.nix
./himalaya.nix
./hyprshade.nix
./jq.nix
./just.nix
./ncpamixer.nix
./neomutt.nix
./neovim.nix
./nix-index.nix
./nushell.nix
./opencode.nix
./p7zip.nix
./pkg-config.nix
./ripgrep.nix
./rustup.nix
./sd.nix
./sops.nix
./ssh.nix
./starship.nix
@@ -59,28 +77,7 @@
# ./zellij.nix
];
home.packages = with pkgs;
[
_1password-cli
alejandra
aria2
bottom
btop
cachix
deploy-rs.deploy-rs
dust
fd
file
fzf
gnupg
jq
just
macchina
p7zip
pfetch-rs
pkg-config
ripgrep
sd
]
[]
++ lib.optionals (!device.isServer) [
monaspace
nerd-fonts.fira-code

View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.deploy-rs.deploy-rs];}

1
home/programs/dust.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.dust];}

1
home/programs/fd.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.fd];}

1
home/programs/file.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.file];}

View File

@@ -1,13 +1 @@
{
pkgs,
lib,
device,
...
}: {
programs.fzf = {
enable = true;
package = pkgs.fzf;
enableFishIntegration = true;
tmux.enableShellIntegration = true;
};
}
{pkgs, ...}: { home.packages = [pkgs.fzf];}

1
home/programs/gnupg.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.gnupg];}

1
home/programs/jq.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.jq];}

1
home/programs/just.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.just];}

1
home/programs/p7zip.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.p7zip];}

View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.pkg-config];}

View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.ripgrep];}

1
home/programs/sd.nix Normal file
View File

@@ -0,0 +1 @@
{pkgs, ...}: {home.packages = [pkgs.sd];}

View File

@@ -30,3 +30,12 @@ nvim:
[linux]
rollback:
sudo nixos-rebuild switch --rollback --flake .
add program:
echo '{pkgs, ...}: { home.packages = [pkgs.{{program}}];}' > home/programs/{{program}}.nix
ast-grep run -p '{ imports = [$$$ITEMS] }' --selector binding --rewrite 'imports = [$$$ITEMS ./{{program}}.nix ]' home/programs/default.nix -i
git add home/programs/{{program}}.nix
alejandra fmt home/programs/{{program}}.nix home/programs/default.nix

View File

@@ -10,7 +10,7 @@
./programs
./containers
./apps
# ./vms
./vms
];
security.tpm2 = {

View File

@@ -1,17 +1,21 @@
{
{pkgs, ...}: {
virtualisation = {
libvirtd = {
# libvirtd = {
# enable = true;
# qemu = {
# runAsRoot = true;
# swtpm.enable = true;
# # ovmf = {
# # enable = true;
# # };
# };
# };
waydroid = {
enable = true;
qemu = {
runAsRoot = true;
swtpm.enable = true;
# ovmf = {
# enable = true;
# };
};
package = pkgs.waydroid-nftables;
};
};
imports = [
./win11.nix
];
# imports = [
# ./win11.nix
# ];
}