Compare commits
4
Commits
48f5ad11fd
..
claw
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27a1044ed3 | ||
|
|
1741ed202c | ||
|
|
90eb0ee48d
|
||
|
|
4f8ac3a85f
|
No files matched your search
@@ -1,19 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: [push, manual]
|
|
||||||
|
|
||||||
labels:
|
|
||||||
backend: local
|
|
||||||
nix-builder: true
|
|
||||||
|
|
||||||
clone:
|
|
||||||
- name: clone
|
|
||||||
image: woodpecker-plugin-git
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build-and-cache
|
|
||||||
image: bash
|
|
||||||
environment:
|
|
||||||
TRANSCRYPT_PASSWORD:
|
|
||||||
from_secret: transcrypt_password
|
|
||||||
commands:
|
|
||||||
- bash ci/build.sh
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
# NixOS builds and LAN cache
|
|
||||||
|
|
||||||
`builder` is the headless configuration for the VM at `10.17.1.100`.
|
|
||||||
Woodpecker builds every `nixosConfigurations` toplevel on pushes and manual
|
|
||||||
runs. Builds run sequentially with one Nix job and four cores on this 8 GiB VM.
|
|
||||||
Secrix runtime secrets do not need decryption in CI.
|
|
||||||
|
|
||||||
## Finish Woodpecker registration
|
|
||||||
|
|
||||||
1. Create an agent in Woodpecker and restrict its server-side filters to
|
|
||||||
`repo=CaZzzer/nix-conf` (use the repository's exact spelling as displayed
|
|
||||||
by Woodpecker).
|
|
||||||
Allow only trusted users to push or change pipelines. The local backend
|
|
||||||
executes repository commands as the `woodpecker` user on the VM.
|
|
||||||
2. On the VM, use `sudo install -m 0600 /dev/null /var/lib/woodpecker/agent.env`
|
|
||||||
once, then `sudoedit /var/lib/woodpecker/agent.env` and enter:
|
|
||||||
|
|
||||||
```ini
|
|
||||||
WOODPECKER_AGENT_SECRET=<agent token>
|
|
||||||
WOODPECKER_SERVER=<reachable gRPC host:port>
|
|
||||||
WOODPECKER_GRPC_SECURE=true
|
|
||||||
WOODPECKER_GRPC_SKIP_VERIFY=false
|
|
||||||
```
|
|
||||||
|
|
||||||
Use `WOODPECKER_GRPC_SECURE=false` for a private plaintext gRPC listener.
|
|
||||||
The public web UI address does not necessarily expose gRPC. The default
|
|
||||||
in the module is `woodpecker.cazzzer.com:9000`; override it here as needed.
|
|
||||||
3. Run `sudo systemctl start woodpecker-agent-nix`.
|
|
||||||
4. Enable this repository in Woodpecker. Add a repository secret named
|
|
||||||
`transcrypt_password` containing the existing transcrypt password. Limit
|
|
||||||
it to push/manual events; do not enable it for pull requests. Commit and
|
|
||||||
push these changes, then confirm the agent picks up the workflow.
|
|
||||||
|
|
||||||
The pipeline explicitly uses the native `woodpecker-plugin-git` clone binary.
|
|
||||||
It initializes transcrypt with `aes-256-cbc`, suppressing its credential output.
|
|
||||||
No secret values belong in Nix expressions or the repository.
|
|
||||||
|
|
||||||
## Cache
|
|
||||||
|
|
||||||
`nix-serve-ng` serves the VM's persistent store at `http://10.17.1.100:5000`
|
|
||||||
through the NixOS `nix-serve` service.
|
|
||||||
It signs responses using `/var/lib/nix-cache/cache-key.sec` (root-only).
|
|
||||||
Back up this key securely; its public key is configured in `hosts/common.nix`.
|
|
||||||
Rebuilding each client once installs cache trust. Clients need LAN/VPN access
|
|
||||||
to this address; the official NixOS cache remains configured.
|
|
||||||
|
|
||||||
Successful builds leave indirect GC roots at `/var/lib/nix-ci/<host>`, retaining
|
|
||||||
the latest successful closure per host. Weekly GC removes unrooted paths older
|
|
||||||
than 14 days. Monitor disk space: 100 GiB may become tight for desktop closures
|
|
||||||
and intermediate builds. Remove roots for retired hosts deliberately.
|
|
||||||
|
|
||||||
The cache is intended for a trusted LAN. Transcrypt plaintext can occur in Nix
|
|
||||||
store sources and generated configuration, so readers of the cache may recover
|
|
||||||
that information. Runtime secrix secrets remain encrypted. Do not expose this
|
|
||||||
endpoint publicly without adding access control.
|
|
||||||
|
|
||||||
## Updating the builder
|
|
||||||
|
|
||||||
Build `.#nixosConfigurations.builder.config.system.build.toplevel`, copy its
|
|
||||||
closure to the VM and activate it, or use `nixos-rebuild` targeting `builder`.
|
|
||||||
New repository files must be added to Git before a Git-flake build sees them;
|
|
||||||
`path:.` can be used when validating an uncommitted working tree.
|
|
||||||
|
|
||||||
Check services with:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
systemctl status woodpecker-agent-nix nix-serve
|
|
||||||
journalctl -u woodpecker-agent-nix -f
|
|
||||||
curl http://10.17.1.100:5000/nix-cache-info
|
|
||||||
```
|
|
||||||
-20
@@ -1,20 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -euo pipefail
|
|
||||||
# Woodpecker traces commands; keep the password out of its logs.
|
|
||||||
set +x
|
|
||||||
: "${TRANSCRYPT_PASSWORD:?Set the transcrypt_password Woodpecker secret}"
|
|
||||||
transcrypt --yes --cipher=aes-256-cbc --password="$TRANSCRYPT_PASSWORD" >/dev/null
|
|
||||||
unset TRANSCRYPT_PASSWORD
|
|
||||||
|
|
||||||
# Discover every host so newly added configurations are automatically checked.
|
|
||||||
mapfile -t hosts < <(nix eval --json .#nixosConfigurations --apply builtins.attrNames | python3 -c 'import json,sys; print("\n".join(json.load(sys.stdin)))')
|
|
||||||
test "${#hosts[@]}" -gt 0
|
|
||||||
root_dir=/var/lib/nix-ci
|
|
||||||
for host in "${hosts[@]}"; do
|
|
||||||
echo "Building $host"
|
|
||||||
# A stable symlink per host retains its last successful closure across GC.
|
|
||||||
# Nix registers these out-links as indirect GC roots.
|
|
||||||
nix build --no-update-lock-file --print-build-logs \
|
|
||||||
--out-link "$root_dir/$host" \
|
|
||||||
".#nixosConfigurations.\"$host\".config.system.build.toplevel"
|
|
||||||
done
|
|
||||||
Generated
+6
-6
@@ -60,11 +60,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1795366757,
|
"lastModified": 1791642191,
|
||||||
"narHash": "sha256-Tp4Kh4R7ID1f2mMCDlb2PiFQ/DZZsnXB2u2juWN+TT4=",
|
"narHash": "sha256-0bK0A59rVUn1SRZzo4cNi4VSqAe7vR1gL2/MZl53Frw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "3b8140d21fa0a70b1b38c2ed29853dfe686234a6",
|
"rev": "c58f54c733a7894d84fa2fdff26cc12088c4b78c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -135,11 +135,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1795234589,
|
"lastModified": 1791594108,
|
||||||
"narHash": "sha256-f/VVvxf5RsQgWVhUtefoca5ktVg0DA2bnkMOcmSnozo=",
|
"narHash": "sha256-XK4KceonkwD8LuMAt/vNrz982mXJM5jeHAxMwsUXXAQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2786a2a72088ecf32aea5b3ec52099e6a7cff78f",
|
"rev": "6510408d147d8c5e6d76043e899e9251756f6a75",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -26,6 +26,12 @@
|
|||||||
url = "github:nix-community/lanzaboote/v1.1.0";
|
url = "github:nix-community/lanzaboote/v1.1.0";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
# nix-openclaw = {
|
||||||
|
# url = "github:openclaw/nix-openclaw";
|
||||||
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
# inputs.home-manager.follows = "home-manager";
|
||||||
|
# inputs.nix-openclaw-tools.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, plasma-manager, nixos-generators, secrix, lanzaboote }:
|
outputs = { self, nixpkgs, home-manager, plasma-manager, nixos-generators, secrix, lanzaboote }:
|
||||||
@@ -33,9 +39,14 @@
|
|||||||
hmModule = file: {
|
hmModule = file: {
|
||||||
imports = [ home-manager.nixosModules.home-manager ];
|
imports = [ home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
|
# nixpkgs.overlays = [ nix-openclaw.overlays.default ];
|
||||||
|
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.sharedModules = [ plasma-manager.homeModules.plasma-manager ];
|
home-manager.sharedModules = [
|
||||||
|
plasma-manager.homeModules.plasma-manager
|
||||||
|
# nix-openclaw.homeManagerModules.openclaw
|
||||||
|
];
|
||||||
|
|
||||||
home-manager.users.cazzzer = import file;
|
home-manager.users.cazzzer = import file;
|
||||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||||
@@ -59,16 +70,6 @@
|
|||||||
apps.x86_64-linux.secrix = secrix.secrix self;
|
apps.x86_64-linux.secrix = secrix.secrix self;
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
builder = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
modules = [
|
|
||||||
./modules
|
|
||||||
./hosts/common.nix
|
|
||||||
./hosts/hw-vm.nix
|
|
||||||
./hosts/builder
|
|
||||||
./users/cazzzer
|
|
||||||
];
|
|
||||||
};
|
|
||||||
Yura-PC = nixpkgs.lib.nixosSystem {
|
Yura-PC = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
];
|
];
|
||||||
opts.kb-input.enable = true;
|
opts.kb-input.enable = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"amd_iommu=on"
|
"amd_iommu=on"
|
||||||
@@ -31,19 +29,11 @@
|
|||||||
# https://nixos.wiki/wiki/Accelerated_Video_Playback
|
# https://nixos.wiki/wiki/Accelerated_Video_Playback
|
||||||
hardware.graphics.extraPackages = with pkgs; [
|
hardware.graphics.extraPackages = with pkgs; [
|
||||||
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
||||||
vpl-gpu-rt
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
lmstudio
|
# lmstudio
|
||||||
];
|
# openclaw
|
||||||
|
|
||||||
services.ollama.enable = true;
|
|
||||||
services.ollama.package = pkgs.ollama-vulkan;
|
|
||||||
|
|
||||||
programs.obs-studio.enable = true;
|
|
||||||
programs.obs-studio.plugins = with pkgs.obs-studio-plugins; [
|
|
||||||
obs-vaapi
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "Yura-PC"; # Define your hostname.
|
networking.hostName = "Yura-PC"; # Define your hostname.
|
||||||
|
|||||||
@@ -14,26 +14,17 @@
|
|||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/mapper/luks-42b36c51-a57a-4bdb-b554-5742f1ae815a";
|
{ device = "zroot/ROOT/nixos/default";
|
||||||
fsType = "btrfs";
|
fsType = "zfs";
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-42b36c51-a57a-4bdb-b554-5742f1ae815a".device = "/dev/disk/by-uuid/42b36c51-a57a-4bdb-b554-5742f1ae815a";
|
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{ device = "/dev/mapper/luks-42b36c51-a57a-4bdb-b554-5742f1ae815a";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "subvol=home" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" =
|
fileSystems."/nix" =
|
||||||
{ device = "/dev/mapper/luks-42b36c51-a57a-4bdb-b554-5742f1ae815a";
|
{ device = "zroot/data/nix";
|
||||||
fsType = "btrfs";
|
fsType = "zfs";
|
||||||
options = [ "subvol=nix" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/A043-E763";
|
{ device = "/dev/disk/by-uuid/970C-6A15";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages;
|
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"sysrq_always_enabled=1"
|
"sysrq_always_enabled=1"
|
||||||
|
|||||||
@@ -1,70 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
networking.hostName = "nix-builder";
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
boot.loader.systemd-boot.configurationLimit = 5;
|
|
||||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
|
|
||||||
services.qemuGuest.enable = true;
|
|
||||||
security.sudo.wheelNeedsPassword = false;
|
|
||||||
system.stateVersion = "24.11";
|
|
||||||
|
|
||||||
# Bound memory pressure on the initial 4 vCPU / 8 GiB VM.
|
|
||||||
nix.settings.max-jobs = 1;
|
|
||||||
nix.settings.cores = 4;
|
|
||||||
nix.settings.extra-substituters = lib.mkForce [ ];
|
|
||||||
zramSwap.enable = true;
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 14d";
|
|
||||||
};
|
|
||||||
nix.optimise.automatic = true;
|
|
||||||
|
|
||||||
# Only serve on the LAN IPv4 address, including on this dual-stack VM.
|
|
||||||
services.nix-serve = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.nix-serve-ng;
|
|
||||||
bindAddress = "10.17.1.100";
|
|
||||||
openFirewall = true;
|
|
||||||
secretKeyFile = "/var/lib/nix-cache/cache-key.sec";
|
|
||||||
};
|
|
||||||
|
|
||||||
users.groups.woodpecker = { };
|
|
||||||
users.users.woodpecker = {
|
|
||||||
isSystemUser = true;
|
|
||||||
group = "woodpecker";
|
|
||||||
home = "/var/lib/woodpecker";
|
|
||||||
};
|
|
||||||
services.woodpecker-agents.agents.nix = {
|
|
||||||
enable = true;
|
|
||||||
environment = {
|
|
||||||
WOODPECKER_BACKEND = "local";
|
|
||||||
WOODPECKER_SERVER = "woodpecker.cazzzer.com:9000";
|
|
||||||
WOODPECKER_MAX_WORKFLOWS = "1";
|
|
||||||
WOODPECKER_AGENT_LABELS = "repo=CaZzzer/nix-conf,!nix-builder=true";
|
|
||||||
WOODPECKER_BACKEND_LOCAL_TEMP_DIR = "/var/lib/woodpecker/workspaces";
|
|
||||||
};
|
|
||||||
# Root-owned, mode 0600; may also override server/TLS settings above.
|
|
||||||
environmentFile = [ "/var/lib/woodpecker/agent.env" ];
|
|
||||||
path = with pkgs; [
|
|
||||||
bash coreutils findutils git git-lfs openssh openssl python3 transcrypt
|
|
||||||
woodpecker-plugin-git config.nix.package
|
|
||||||
];
|
|
||||||
};
|
|
||||||
systemd.services.woodpecker-agent-nix.serviceConfig = {
|
|
||||||
DynamicUser = lib.mkForce false;
|
|
||||||
User = "woodpecker";
|
|
||||||
Group = "woodpecker";
|
|
||||||
StateDirectory = "woodpecker";
|
|
||||||
ReadWritePaths = [ "/var/lib/nix-ci" ];
|
|
||||||
};
|
|
||||||
systemd.services.woodpecker-agent-nix.unitConfig.ConditionPathExists =
|
|
||||||
"/var/lib/woodpecker/agent.env";
|
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d /var/lib/woodpecker/workspaces 0700 woodpecker woodpecker -"
|
|
||||||
"d /var/lib/nix-ci 0750 woodpecker woodpecker -"
|
|
||||||
"d /var/lib/nix-cache 0700 root root -"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
+21
-12
@@ -7,6 +7,7 @@
|
|||||||
"sysrq_always_enabled=1"
|
"sysrq_always_enabled=1"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.kernelPackages = pkgs.linuxKernel.packages.linux_7_2;
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
timeout = 3;
|
timeout = 3;
|
||||||
@@ -60,17 +61,18 @@
|
|||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.bluetooth.powerOnBoot = false;
|
hardware.bluetooth.powerOnBoot = false;
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
|
programs.fish.enable = true;
|
||||||
|
programs.git.enable = true;
|
||||||
programs.git.lfs.enable = true;
|
programs.git.lfs.enable = true;
|
||||||
# https://nixos.wiki/wiki/Git
|
# https://nixos.wiki/wiki/Git
|
||||||
programs.git.package = pkgs.git.override { withLibsecret = true; doInstallCheck = false; };
|
programs.git.package = pkgs.git.override { withLibsecret = true; doInstallCheck = false; };
|
||||||
programs.lazygit.enable = true;
|
programs.lazygit.enable = true;
|
||||||
|
programs.neovim.enable = true;
|
||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
programs.wireshark.package = pkgs.wireshark; # wireshark-cli by default
|
programs.wireshark.package = pkgs.wireshark; # wireshark-cli by default
|
||||||
|
programs.bat.enable = true;
|
||||||
|
programs.htop.enable = true;
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
programs.nix-ld.libraries = with pkgs; [
|
|
||||||
stdenv.cc.cc.lib
|
|
||||||
# Add other common libraries if needed (e.g., zlib, glib)
|
|
||||||
];
|
|
||||||
# programs.steam.enable = true;
|
# programs.steam.enable = true;
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/Docker
|
# https://nixos.wiki/wiki/Docker
|
||||||
@@ -91,7 +93,17 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
dust
|
||||||
|
eza
|
||||||
|
fastfetch
|
||||||
|
fd
|
||||||
|
helix
|
||||||
|
micro
|
||||||
|
openssl
|
||||||
|
ripgrep
|
||||||
|
starship
|
||||||
|
tealdeer
|
||||||
|
transcrypt
|
||||||
] ++ [
|
] ++ [
|
||||||
efibootmgr
|
efibootmgr
|
||||||
ffmpeg
|
ffmpeg
|
||||||
@@ -120,9 +132,7 @@
|
|||||||
kdePackages.filelight
|
kdePackages.filelight
|
||||||
kdePackages.flatpak-kcm
|
kdePackages.flatpak-kcm
|
||||||
kdePackages.kate
|
kdePackages.kate
|
||||||
kdePackages.partitionmanager
|
|
||||||
kdePackages.yakuake
|
kdePackages.yakuake
|
||||||
mission-center
|
|
||||||
(mpv.override {
|
(mpv.override {
|
||||||
scripts = with pkgs.mpvScripts; [
|
scripts = with pkgs.mpvScripts; [
|
||||||
mpris
|
mpris
|
||||||
@@ -133,7 +143,7 @@
|
|||||||
# lutris
|
# lutris
|
||||||
lxqt.pavucontrol-qt
|
lxqt.pavucontrol-qt
|
||||||
pinentry-all
|
pinentry-all
|
||||||
tela-circle-icon-theme
|
# tela-circle-icon-theme # broken symlinks as of 2026-10-07
|
||||||
typst
|
typst
|
||||||
virt-viewer
|
virt-viewer
|
||||||
waypipe
|
waypipe
|
||||||
@@ -151,7 +161,6 @@
|
|||||||
antigravity-cli
|
antigravity-cli
|
||||||
antigravity-ide-fhs
|
antigravity-ide-fhs
|
||||||
codex
|
codex
|
||||||
bubblewrap
|
|
||||||
# codex-acp
|
# codex-acp
|
||||||
# github-copilot-cli
|
# github-copilot-cli
|
||||||
# opencode
|
# opencode
|
||||||
@@ -160,7 +169,7 @@
|
|||||||
# C
|
# C
|
||||||
gcc
|
gcc
|
||||||
valgrind
|
valgrind
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
python3
|
python3
|
||||||
poetry
|
poetry
|
||||||
@@ -185,10 +194,10 @@
|
|||||||
# Gleam
|
# Gleam
|
||||||
gleam
|
gleam
|
||||||
beamMinimal28Packages.erlang
|
beamMinimal28Packages.erlang
|
||||||
|
|
||||||
# Racket
|
# Racket
|
||||||
racket
|
racket
|
||||||
|
|
||||||
# Ruby
|
# Ruby
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
|
|||||||
@@ -20,11 +20,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
nix.settings.extra-substituters = [ "http://10.17.1.100:5000" ];
|
|
||||||
nix.settings.extra-trusted-public-keys = [
|
|
||||||
"nix-builder:PhxOkUyF2KD9ALkSC6saB2zoPp1o6hMOOpgp5/gngKI="
|
|
||||||
];
|
|
||||||
nix.settings.connect-timeout = 5;
|
|
||||||
|
|
||||||
environment.etc."current-system-packages".text =
|
environment.etc."current-system-packages".text =
|
||||||
let
|
let
|
||||||
@@ -37,25 +32,4 @@
|
|||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.openssh.settings.PasswordAuthentication = false;
|
services.openssh.settings.PasswordAuthentication = false;
|
||||||
services.openssh.settings.KbdInteractiveAuthentication = false;
|
services.openssh.settings.KbdInteractiveAuthentication = false;
|
||||||
|
|
||||||
programs.fish.enable = true;
|
|
||||||
programs.git.enable = true;
|
|
||||||
|
|
||||||
programs.bat.enable = true;
|
|
||||||
programs.htop.enable = true;
|
|
||||||
programs.neovim.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
dua
|
|
||||||
dust
|
|
||||||
eza
|
|
||||||
fastfetch
|
|
||||||
fd
|
|
||||||
micro
|
|
||||||
openssl
|
|
||||||
ripgrep
|
|
||||||
starship
|
|
||||||
tealdeer
|
|
||||||
transcrypt
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
@@ -14,12 +14,12 @@
|
|||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/0dec41bf-aba0-4b7b-9f61-bbb572e5bd1e";
|
{ device = "/dev/disk/by-uuid/f222513b-ded1-49fa-b591-20ce86a2fe7f";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/9F5E-672F";
|
{ device = "/dev/disk/by-uuid/12CE-A600";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -56,7 +56,12 @@
|
|||||||
|
|
||||||
# Install firefox.
|
# Install firefox.
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
programs.fish.enable = true;
|
||||||
|
programs.git.enable = true;
|
||||||
|
programs.neovim.enable = true;
|
||||||
|
|
||||||
|
programs.bat.enable = true;
|
||||||
|
programs.htop.enable = true;
|
||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
@@ -74,13 +79,23 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
dust
|
||||||
|
eza
|
||||||
|
fastfetch
|
||||||
|
fd
|
||||||
host-spawn # for flatpaks
|
host-spawn # for flatpaks
|
||||||
kdePackages.flatpak-kcm
|
kdePackages.flatpak-kcm
|
||||||
kdePackages.filelight
|
kdePackages.filelight
|
||||||
kdePackages.kate
|
kdePackages.kate
|
||||||
kdePackages.yakuake
|
kdePackages.yakuake
|
||||||
ldns
|
ldns
|
||||||
|
micro
|
||||||
mpv
|
mpv
|
||||||
|
openssl
|
||||||
|
ripgrep
|
||||||
|
starship
|
||||||
|
tealdeer
|
||||||
|
transcrypt
|
||||||
waypipe
|
waypipe
|
||||||
whois
|
whois
|
||||||
zfs
|
zfs
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ in
|
|||||||
|
|
||||||
boot.loader.timeout = 2;
|
boot.loader.timeout = 2;
|
||||||
boot.loader.systemd-boot.configurationLimit = 5;
|
boot.loader.systemd-boot.configurationLimit = 5;
|
||||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_18;
|
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
|
||||||
boot.growPartition = true;
|
boot.growPartition = true;
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
@@ -52,15 +52,30 @@ in
|
|||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
programs.fish.enable = true;
|
||||||
|
programs.git.enable = true;
|
||||||
|
programs.neovim.enable = true;
|
||||||
|
programs.bat.enable = true;
|
||||||
|
programs.htop.enable = true;
|
||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
programs.wireshark.package = pkgs.wireshark; # wireshark-cli by default
|
programs.wireshark.package = pkgs.wireshark; # wireshark-cli by default
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
dust
|
||||||
|
eza
|
||||||
|
fastfetch
|
||||||
|
fd
|
||||||
kdePackages.kate
|
kdePackages.kate
|
||||||
ldns
|
ldns
|
||||||
lsof
|
lsof
|
||||||
|
micro
|
||||||
mpv
|
mpv
|
||||||
|
openssl
|
||||||
|
ripgrep
|
||||||
rustscan
|
rustscan
|
||||||
|
starship
|
||||||
|
tealdeer
|
||||||
|
transcrypt
|
||||||
wakeonlan
|
wakeonlan
|
||||||
waypipe
|
waypipe
|
||||||
whois
|
whois
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ let
|
|||||||
"|opnsense."
|
"|opnsense."
|
||||||
"|vpgen."
|
"|vpgen."
|
||||||
"|woodpecker."
|
"|woodpecker."
|
||||||
"|woodpecker-grpc."
|
|
||||||
"||pgrok."
|
"||pgrok."
|
||||||
"|sync."
|
"|sync."
|
||||||
"|minecruft."
|
"|minecruft."
|
||||||
@@ -55,17 +54,17 @@ in
|
|||||||
enable_dnssec = true;
|
enable_dnssec = true;
|
||||||
bootstrap_dns = [ "1.1.1.1" "9.9.9.9" ];
|
bootstrap_dns = [ "1.1.1.1" "9.9.9.9" ];
|
||||||
upstream_dns = [
|
upstream_dns = [
|
||||||
|
# Default upstreams
|
||||||
|
"quic://p0.freedns.controld.com"
|
||||||
|
"tls://one.one.one.one"
|
||||||
|
"tls://dns.quad9.net"
|
||||||
|
|
||||||
# Adguard uses upstream and not rewrite rules to resolve cname rewrites,
|
# Adguard uses upstream and not rewrite rules to resolve cname rewrites,
|
||||||
# and obviously my sysdomain entries don't exist in cloudflare.
|
# and obviously my sysdomain entries don't exist in cloudflare.
|
||||||
"[/${sysdomain}/][::1]" # Sys domains to self (for cname rewrites)
|
"[/${sysdomain}/][::1]" # Sys domains to self (for cname rewrites)
|
||||||
|
|
||||||
"[/${ldomain}/][::1]:1053" # Local domains to Knot (ddns)
|
"[/${ldomain}/][::1]:1053" # Local domains to Knot (ddns)
|
||||||
"[/home/][${ifs.lan.ulaPrefix}::250]" # .home domains to opnsense (temporary)
|
"[/home/][${ifs.lan.ulaPrefix}::250]" # .home domains to opnsense (temporary)
|
||||||
|
|
||||||
# Default upstreams
|
|
||||||
"quic://p0.freedns.controld.com"
|
|
||||||
"tls://one.one.one.one"
|
|
||||||
"tls://dns.quad9.net"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# https://adguard-dns.io/kb/general/dns-filtering-syntax/
|
# https://adguard-dns.io/kb/general/dns-filtering-syntax/
|
||||||
|
|||||||
@@ -58,8 +58,6 @@ in
|
|||||||
udp . 48425 : ${vars.extra.opnsense.addr4} . 48425,
|
udp . 48425 : ${vars.extra.opnsense.addr4} . 48425,
|
||||||
# Amnezia VPN server
|
# Amnezia VPN server
|
||||||
udp . 37138 : ${vars.extra.amnezia.addr4} . 37138,
|
udp . 37138 : ${vars.extra.amnezia.addr4} . 37138,
|
||||||
udp . 31405 : ${vars.extra.amnezia.addr4} . 31405,
|
|
||||||
tcp . 38247 : ${vars.extra.amnezia.addr4} . 22,
|
|
||||||
# Minecruft server
|
# Minecruft server
|
||||||
tcp . 25565 : ${vars.extra.minecruft.addr4} . 25565,
|
tcp . 25565 : ${vars.extra.minecruft.addr4} . 25565,
|
||||||
udp . 25565 : ${vars.extra.minecruft.addr4} . 25565,
|
udp . 25565 : ${vars.extra.minecruft.addr4} . 25565,
|
||||||
|
|||||||
@@ -52,9 +52,6 @@ in
|
|||||||
# since my WAN and LAN20 are technically bridged.
|
# since my WAN and LAN20 are technically bridged.
|
||||||
# https://networkengineering.stackexchange.com/questions/83071/why-linux-answers-arp-requests-for-ips-that-belong-to-different-network-interfac
|
# https://networkengineering.stackexchange.com/questions/83071/why-linux-answers-arp-requests-for-ips-that-belong-to-different-network-interfac
|
||||||
boot.kernel.sysctl."net.ipv4.conf.default.arp_filter" = 1;
|
boot.kernel.sysctl."net.ipv4.conf.default.arp_filter" = 1;
|
||||||
# Later I discovered that rp_filter might also be good to set
|
|
||||||
# Strict mode (1) drops packets if the src ip isn't a local route on the interface
|
|
||||||
boot.kernel.sysctl."net.ipv4.conf.default.rp_filter" = 1;
|
|
||||||
|
|
||||||
# It is impossible to do multiple prefix requests with networkd,
|
# It is impossible to do multiple prefix requests with networkd,
|
||||||
# so I use dhcpcd for this
|
# so I use dhcpcd for this
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 D2MY/A txjDSEsRr2CJtC9rDIiY9H8aX0us53vhnqJStt+XvlA
|
|
||||||
vjmrx5ByEhbHE/hBEQq3gRqY8b5/mjHLs+He3D/27LM
|
|
||||||
--- rp66vDf9qnM7f9S5YD/X/99YsufPWmvz+V8z8htB2Ow
|
|
||||||
9‡Ài¨*¡-oš·}Ć(Š5[¬[ÕyKr)¾-cùäóŽù¼R0?Ë8`Èô×{
|
|
||||||
@@ -29,12 +29,10 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# https://wiki.nixos.org/wiki/Grafana#Declarative_configuration
|
# https://wiki.nixos.org/wiki/Grafana#Declarative_configuration
|
||||||
secrix.services.grafana.secrets.security-key.encrypted.file = ./secrets/grafana-secret-key.age;
|
|
||||||
services.grafana = {
|
services.grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
security.allow_embedding = true;
|
security.allow_embedding = true;
|
||||||
security.secret_key = "$__file{${config.secrix.services.grafana.secrets.security-key.decrypted.path}}";
|
|
||||||
server = {
|
server = {
|
||||||
http_port = 3001;
|
http_port = 3001;
|
||||||
domain = "grouter.${domain}";
|
domain = "grouter.${domain}";
|
||||||
@@ -59,8 +57,8 @@ in
|
|||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.caddy.withPlugins {
|
package = pkgs.caddy.withPlugins {
|
||||||
plugins = [ "github.com/caddy-dns/cloudflare@v0.2.4" ];
|
plugins = [ "github.com/caddy-dns/cloudflare@v0.2.1" ];
|
||||||
hash = "sha256-QSiwKqKvSxhksWBF4/MlBOpyXba5xOQ2sRwA0R7399E=";
|
hash = "sha256-F7d4HwM4oCkQrFMr4SFSC0r52ONxY+PW6z5BJawW8Ok=";
|
||||||
};
|
};
|
||||||
virtualHosts."*.${domain}".extraConfig = ''
|
virtualHosts."*.${domain}".extraConfig = ''
|
||||||
encode
|
encode
|
||||||
|
|||||||
Reference in new issue
Block a user