matt1432
037f59f415
All checks were successful
Discord / discord commits (push) Has been skipped
Flake Inputs: • Updated input 'astal-tray': 'github:astal-sh/tray/5db80aa' (2024-07-26) → 'github:astal-sh/tray/6a5fdcb' (2024-08-21) • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay/559c675' (2024-08-14) → 'github:matt1432/discord-nightly-overlay/635df5a' (2024-08-20) • Updated input 'discord-overlay/Vencord-src': 'github:Vendicated/vencord/4301ed8' (2024-08-13) → 'github:Vendicated/vencord/eaca14b' (2024-08-17) • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=f297a92' (2024-08-15) → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=1b35667' (2024-08-20) • Updated input 'gtk-theme-src': 'github:dracula/gtk/be80a12' (2024-08-14) → 'github:dracula/gtk/32ce47c' (2024-08-22) • Updated input 'home-manager': 'github:nix-community/home-manager/086f619' (2024-08-11) → 'github:nix-community/home-manager/2598861' (2024-08-18) • Updated input 'hyprland': 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=12d9901&submodules=1' (2024-08-15) → 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=f634b9e&submodules=1' (2024-08-22) • Updated input 'hyprland/aquamarine': 'github:hyprwm/aquamarine/9312aa2' (2024-08-11) → 'github:hyprwm/aquamarine/9a3161a' (2024-08-21) • Updated input 'hyprland/hyprlang': 'github:hyprwm/hyprlang/adbefbf' (2024-07-18) → 'github:hyprwm/hyprlang/16e5c94' (2024-08-20) • Updated input 'hyprland/xdph': 'github:hyprwm/xdg-desktop-portal-hyprland/7f2a77d' (2024-07-30) → 'github:hyprwm/xdg-desktop-portal-hyprland/a08ecbb' (2024-08-19) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/e4e0ca1' (2024-08-15) → 'github:Jovian-Experiments/Jovian-NixOS/924a18e' (2024-08-22) • Updated input 'nh': 'github:viperML/nh/24d7b24' (2024-08-15) → 'github:viperML/nh/3dc7cdc' (2024-08-20) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/cd19f28' (2024-08-12) → 'github:fufexan/nix-gaming/ad4e195' (2024-08-21) • Updated input 'nix-gaming/umu': 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=74656e9&submodules=1' (2024-08-10) → 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=c71a45a&submodules=1' (2024-08-15) • Updated input 'nix-index-db': 'github:Mic92/nix-index-database/ec78079' (2024-08-11) → 'github:Mic92/nix-index-database/392828a' (2024-08-18) • Updated input 'nixd': 'github:nix-community/nixd/c9d8970' (2024-08-11) → 'github:nix-community/nixd/f6ca743' (2024-08-22) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/c3aa7b8' (2024-08-14) → 'github:NixOS/nixpkgs/c374d94' (2024-08-21) • Updated input 'pcsd': 'github:matt1432/nixos-pcsd/eddf20f' (2024-08-12) → 'github:matt1432/nixos-pcsd/2d524af' (2024-08-22) • Updated input 'piper-src': 'github:libratbag/piper/71431bd' (2024-07-24) → 'github:libratbag/piper/93a5a00' (2024-08-22) • Updated input 'ts-for-gir-src': 'github:gjsify/ts-for-gir/0141c0e' (2024-08-05) → 'github:gjsify/ts-for-gir/dafd5e4' (2024-08-20) Docker Images: • vegardit/gitea-act-runner dind-latest: sha256:1ddf1cb7a19b7dd314e1fd5762e7e69e084d1818778f535969fd1727484ae41c → sha256:051d40d9f2171f6d870a2ac5bd025e6986df276b81d598441afdd953aad5f815 • rssbridge/rss-bridge latest: sha256:3bde3fa44e79c0bd3ed02b45e9e96456ef428cb3421a057f3dfbf310b9b1728d → sha256:46d13f894d325fae4202a42d91a7f4693c12f8db46d8c8a4aeadd17ff4c961a7 • ghcr.io/linuxserver/bazarr latest: sha256:0ac10a3e9ef16ee17bfd0719bcadc18b30572b54dbe76d6bd865a160eefb22b7 → sha256:8573a7d8558d7407ec53c205599d99d9876486621681355d147e9091cd99c58b • ghcr.io/linuxserver/prowlarr latest: sha256:c80a2dcfefd85c62da2373c5bf0138bb9d1c647c4b3d8f994ce263f5e8b1db81 → sha256:c93f075dc5afb74dc7a0a55e90974f81425a5d3c5d293022c5416431f4963ce9 • ghcr.io/linuxserver/radarr latest: sha256:71e29caebf16da4701fc7a6c04d5f34c6b01753549900edf4ecfa585263ea1d4 → sha256:b034531ff81d3e5e1f9fd70c969746040b40e6484c88981ea5d0dee732c10bc3 • ghcr.io/linuxserver/sabnzbd latest: sha256:95179d6de1c660d7dcd4bd3991b33871c88df1120ab84bc553c4a67e8cc412d2 → sha256:6a8db539588665971f24a42e31ddf2240d7be114c08007dc409aff7638c8edf6 Firefox Addons: stylus: 1.5.48 -> 1.5.51 Misc Sources: Vuetorrent: 2.11.2 -> 2.12.0 |
||
---|---|---|
.forgejo/workflows | ||
apps | ||
checks | ||
common | ||
devices | ||
homeManagerModules | ||
legacyPackages | ||
lib | ||
nixosModules | ||
overlays | ||
packages | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
inputs.nix | ||
LICENSE.md | ||
outputs.nix | ||
README.md |
My NixOS configs
Ags
You might find it weird that most of my config is written in TypeScript. That's because all my desktops run AGS for UI. Click on this to see my configuration.
I'm also a victim of Stockholm syndrome at this point and make my scripts in TypeScript because it's the scripting language I am most comfortable with.
About
General
This repo is the complete configuration of machines I own, running NixOS or Nix. Its structure is based on a flake's outputs.
Flake Location
This git repo will always be located at $FLAKE
(config.environment.variables.FLAKE
)
and symlinked to /etc/nixos
to have everything where NixOS tools
expect things to be.
ie.
sudo rm -r /etc/nixos
echo "$FLAKE" # /home/matt/.nix
sudo ln -sf /home/matt/.nix /etc/nixos
Flake Outputs
Output | Description |
---|---|
nixosConfigurations |
devices' + ISO's configurations |
nixOnDroidConfigurations.default |
Nix-On-Droid's configuration |
packages |
Some custom packages not available in nixpkgs or modified from it |
legacyPackages |
Some custom package scopes not available in nixpkgs or modified from it |
apps |
Scripts ran from the flake defined here |
homeManagerModules |
Modules made for home-manager |
homeManagerModules |
Modules made for NixOS systems |
formatter |
I format nix code with alejandra |
devShells.default |
A dev shell to build an ISO from the live-image nixosConfiguration |
devShells.ags |
A dev shell to have a NodeJS env when I enter my AGS's config directory |
Flake Inputs
To allow use of the full nix language for my inputs, I use genflake.
Therefore, the flake I edit is located at ./outputs.nix
.
I also prefer using a more descriptive format for my inputs like so:
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
# Branch name
ref = "nixos-unstable";
# Pin this input to a specific commit
rev = "842d9d80cfd4560648c785f8a4e6f3b096790e19";
};
to make it more clear what is what in the flake URI
Secrets
All my secrets are in a private git repo that makes use of
sops-nix.
I generate .sops.yaml
from .sops.nix
:
let
wim = "somekey";
binto = "somekey2";
in {
creation_rules = [
{
path_regex = "secrets/[^/]+\\.(yaml|json|env|ini)$";
key_groups = [
{
age = [wim binto];
}
];
}
];
}
which is then converted to .sops.yaml
using
remarshal
and this shell command:
nix eval --json --file ./.sops.nix | remarshal --if json --of yaml > .sops.yaml
TLDR: I hate YAML