feat(util): Added option to easily add new programs/modules using just
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
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:
9
justfile
9
justfile
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user