matt1432
5dbe479f57
All checks were successful
Discord / discord commits (push) Has been skipped
Flake Inputs: • Updated input 'ags': 'github:Aylur/ags/d8c2748' (2024-11-14) → 'github:Aylur/ags/3e270c8' (2024-11-15) • Updated input 'astal': 'github:Aylur/astal/d538d8e' (2024-11-14) → 'github:Aylur/astal/852cf24' (2024-11-17) • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar/8710f88' (2024-11-14) → 'github:elchininet/custom-sidebar/ffa2256' (2024-11-17) • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=4d3e95d' (2024-11-13) → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=0ee6814' (2024-11-17) • Updated input 'gtk-theme-src': 'github:dracula/gtk/7803795' (2024-11-08) → 'github:dracula/gtk/fda0fb5' (2024-11-17) • Updated input 'home-manager': 'github:nix-community/home-manager/1d0862e' (2024-11-14) → 'github:nix-community/home-manager/f3a2ff6' (2024-11-17) • Updated input 'hyprland': 'github:hyprwm/Hyprland/098e491' (2024-11-15) → 'github:hyprwm/Hyprland/1ba050d' (2024-11-17) • Updated input 'hyprland/aquamarine': 'github:hyprwm/aquamarine/3b00e96' (2024-11-13) → 'github:hyprwm/aquamarine/b31a6a4' (2024-11-16) • Updated input 'hyprland/xdph': 'github:hyprwm/xdg-desktop-portal-hyprland/09b23ce' (2024-11-04) → 'github:hyprwm/xdg-desktop-portal-hyprland/8070f36' (2024-11-15) • Updated input 'hyprutils': 'github:hyprwm/hyprutils/315fba5' (2024-11-13) → 'github:hyprwm/hyprutils/e911361' (2024-11-15) • Updated input 'jellyfin-flake': 'github:matt1432/nixos-jellyfin/5d0496a' (2024-11-12) → 'github:matt1432/nixos-jellyfin/cc508a8' (2024-11-17) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/7691d0a' (2024-11-10) → 'github:Jovian-Experiments/Jovian-NixOS/a2c6d8d' (2024-11-16) • Updated input 'material-symbols-src': 'github:beecho01/material-symbols/160f21e' (2024-11-10) → 'github:beecho01/material-symbols/1296eb0' (2024-11-17) • Updated input 'nh': 'github:viperML/nh/afdff9a' (2024-10-08) → 'github:viperML/nh/4ab65f4' (2024-11-17) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/5b3cac9' (2024-11-14) → 'github:fufexan/nix-gaming/88cd24b' (2024-11-17) • Updated input 'nix-gaming/umu': 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=9035246&submodules=1' (2024-11-05) → 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=66a1088&submodules=1' (2024-11-14) • Updated input 'nix-index-db': 'github:Mic92/nix-index-database/40d882b' (2024-11-14) → 'github:Mic92/nix-index-database/bdba246' (2024-11-17) • Updated input 'nixd': 'github:nix-community/nixd/1cf9ec0' (2024-11-08) → 'github:nix-community/nixd/0f3c0c7' (2024-11-15) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/dc460ec' (2024-11-11) → 'github:NixOS/nixpkgs/5e4fbfb' (2024-11-15) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/f2b7b11' (2024-11-14) → 'github:nix-community/nixpkgs-wayland/82cf224' (2024-11-17) • Updated input 'pcsd': 'github:matt1432/nixos-pcsd/1b10d74' (2024-11-14) → 'github:matt1432/nixos-pcsd/a615628' (2024-11-15) • Updated input 'sops-nix': 'github:Mic92/sops-nix/4c91d52' (2024-11-11) → 'github:Mic92/sops-nix/472741c' (2024-11-17) • Updated input 'spotifyplus-src': 'github:thlucas1/homeassistantcomponent_spotifyplus/532daa8' (2024-11-03) → 'github:thlucas1/homeassistantcomponent_spotifyplus/751b378' (2024-11-15) • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython/64a1ce3' (2024-11-08) → 'github:thlucas1/SpotifyWebApiPython/13a2669' (2024-11-15) • Updated input 'ts-for-gir-src': 'github:gjsify/ts-for-gir/f703cc1' (2024-11-11) → 'github:gjsify/ts-for-gir/a366faa' (2024-11-16) • Updated input 'tuya-local-src': 'github:make-all/tuya-local/acf1e9a' (2024-11-14) → 'github:make-all/tuya-local/f914065' (2024-11-17) • Updated input 'vimplugin-ts-error-translator-src': 'github:dmmulroy/ts-error-translator.nvim/3bd23c4' (2024-09-23) → 'github:dmmulroy/ts-error-translator.nvim/47e5ba8' (2024-11-16) Docker Images: • codeberg.org/forgejo/forgejo 9: sha256:dc2267f989b8c8f5b9152b11bbd353d4f1a097619c551558b01b8638554e9f5a → sha256:5343937f18f2580300c5dbc0144df0994681fec2b8774e8a8ecee2d6c9f8c595 • postgres 14: sha256:e7d3e4fdcdb4187649d50217c3a8fed20bee215cd19233004c9fb0eaeae5ecf0 → sha256:823196c45d0cdbf70e5782e1b6cc116b3417211ce1884c373afff97abec7be2f • postgres 15-alpine: sha256:846079648cd9ac5dbf977aa7ee68d7e57e8ed1e368d88b54298e3b8e96a23d88 → sha256:3b5f286a417dde5945504ef9156ff9436ffccf428048d7b52c1574c6fc752bb6 • ghcr.io/linuxserver/sonarr latest: sha256:c0281bd62b9a75f088fa4a09e5f8776431921883766633cb5e5fbd5a74761155 → sha256:a30d870ae503e617e84909367c8f19096567ef60834fa8d81d86d17a13e50d1a Firefox Addons: floccus: 5.3.3 -> 5.3.4 Misc Sources: Vuetorrent: 2.17.0 -> 2.18.0 |
||
---|---|---|
.forgejo/workflows | ||
apps | ||
checks | ||
common | ||
devices | ||
homeManagerModules | ||
legacyPackages | ||
lib | ||
nixosModules | ||
overlays | ||
packages | ||
.gitattributes | ||
.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