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:
@@ -431,7 +431,7 @@
|
|||||||
# };
|
# };
|
||||||
devShells = {
|
devShells = {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [sops just openssl];
|
packages = with pkgs; [sops just openssl ast-grep];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
5
home/programs/1password-cli.nix
Normal file
5
home/programs/1password-cli.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = [
|
||||||
|
pkgs._1password-cli
|
||||||
|
];
|
||||||
|
}
|
||||||
1
home/programs/alejandra.nix
Normal file
1
home/programs/alejandra.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.alejandra];}
|
||||||
1
home/programs/aria2.nix
Normal file
1
home/programs/aria2.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.aria2];}
|
||||||
1
home/programs/ast-grep.nix
Normal file
1
home/programs/ast-grep.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.ast-grep];}
|
||||||
1
home/programs/bottom.nix
Normal file
1
home/programs/bottom.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.bottom];}
|
||||||
1
home/programs/btop.nix
Normal file
1
home/programs/btop.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.btop];}
|
||||||
1
home/programs/cachix.nix
Normal file
1
home/programs/cachix.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.cachix];}
|
||||||
@@ -5,28 +5,46 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
|
./1password-cli.nix
|
||||||
./aichat.nix
|
./aichat.nix
|
||||||
|
./alejandra.nix
|
||||||
|
./aria2.nix
|
||||||
|
./ast-grep.nix
|
||||||
./atuin.nix
|
./atuin.nix
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
./bottom.nix
|
||||||
|
./btop.nix
|
||||||
|
./cachix.nix
|
||||||
./carapace.nix
|
./carapace.nix
|
||||||
./ddcbacklight.nix
|
./ddcbacklight.nix
|
||||||
|
./deploy-rs.nix
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
|
./dust.nix
|
||||||
./eilmeldung.nix
|
./eilmeldung.nix
|
||||||
./eza.nix
|
./eza.nix
|
||||||
./fastfetch.nix
|
./fastfetch.nix
|
||||||
|
./fd.nix
|
||||||
|
./file.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
./gh.nix
|
./gh.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
./gnupg.nix
|
||||||
./himalaya.nix
|
./himalaya.nix
|
||||||
./hyprshade.nix
|
./hyprshade.nix
|
||||||
|
./jq.nix
|
||||||
|
./just.nix
|
||||||
./ncpamixer.nix
|
./ncpamixer.nix
|
||||||
./neomutt.nix
|
./neomutt.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./nix-index.nix
|
./nix-index.nix
|
||||||
./nushell.nix
|
./nushell.nix
|
||||||
./opencode.nix
|
./opencode.nix
|
||||||
|
./p7zip.nix
|
||||||
|
./pkg-config.nix
|
||||||
|
./ripgrep.nix
|
||||||
./rustup.nix
|
./rustup.nix
|
||||||
|
./sd.nix
|
||||||
./sops.nix
|
./sops.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./starship.nix
|
./starship.nix
|
||||||
@@ -59,28 +77,7 @@
|
|||||||
# ./zellij.nix
|
# ./zellij.nix
|
||||||
];
|
];
|
||||||
home.packages = with pkgs;
|
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) [
|
++ lib.optionals (!device.isServer) [
|
||||||
monaspace
|
monaspace
|
||||||
nerd-fonts.fira-code
|
nerd-fonts.fira-code
|
||||||
|
|||||||
1
home/programs/deploy-rs.nix
Normal file
1
home/programs/deploy-rs.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.deploy-rs.deploy-rs];}
|
||||||
1
home/programs/dust.nix
Normal file
1
home/programs/dust.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.dust];}
|
||||||
1
home/programs/fd.nix
Normal file
1
home/programs/fd.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.fd];}
|
||||||
1
home/programs/file.nix
Normal file
1
home/programs/file.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.file];}
|
||||||
@@ -1,13 +1 @@
|
|||||||
{
|
{pkgs, ...}: { home.packages = [pkgs.fzf];}
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
device,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.fzf = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.fzf;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
tmux.enableShellIntegration = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|||||||
1
home/programs/gnupg.nix
Normal file
1
home/programs/gnupg.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.gnupg];}
|
||||||
1
home/programs/jq.nix
Normal file
1
home/programs/jq.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.jq];}
|
||||||
1
home/programs/just.nix
Normal file
1
home/programs/just.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.just];}
|
||||||
1
home/programs/p7zip.nix
Normal file
1
home/programs/p7zip.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.p7zip];}
|
||||||
1
home/programs/pkg-config.nix
Normal file
1
home/programs/pkg-config.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.pkg-config];}
|
||||||
1
home/programs/ripgrep.nix
Normal file
1
home/programs/ripgrep.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.ripgrep];}
|
||||||
1
home/programs/sd.nix
Normal file
1
home/programs/sd.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{pkgs, ...}: {home.packages = [pkgs.sd];}
|
||||||
9
justfile
9
justfile
@@ -30,3 +30,12 @@ nvim:
|
|||||||
[linux]
|
[linux]
|
||||||
rollback:
|
rollback:
|
||||||
sudo nixos-rebuild switch --rollback --flake .
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
./programs
|
./programs
|
||||||
./containers
|
./containers
|
||||||
./apps
|
./apps
|
||||||
# ./vms
|
./vms
|
||||||
];
|
];
|
||||||
|
|
||||||
security.tpm2 = {
|
security.tpm2 = {
|
||||||
|
|||||||
@@ -1,17 +1,21 @@
|
|||||||
{
|
{pkgs, ...}: {
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
libvirtd = {
|
# libvirtd = {
|
||||||
enable = true;
|
|
||||||
qemu = {
|
|
||||||
runAsRoot = true;
|
|
||||||
swtpm.enable = true;
|
|
||||||
# ovmf = {
|
|
||||||
# enable = true;
|
# enable = true;
|
||||||
|
# qemu = {
|
||||||
|
# runAsRoot = true;
|
||||||
|
# swtpm.enable = true;
|
||||||
|
# # ovmf = {
|
||||||
|
# # enable = true;
|
||||||
|
# # };
|
||||||
# };
|
# };
|
||||||
|
# };
|
||||||
|
waydroid = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.waydroid-nftables;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
# imports = [
|
||||||
imports = [
|
# ./win11.nix
|
||||||
./win11.nix
|
# ];
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user