matt1432
1ad2610b01
All checks were successful
Discord / discord commits (push) Has been skipped
Flake Inputs: • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay/aaee3dc' (2024-08-29) → 'github:matt1432/discord-nightly-overlay/c61d792' (2024-08-30) • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=1b35667' (2024-08-20) → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=c99b986' (2024-08-29) • Updated input 'hyprland': 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=92a0dd1&submodules=1' (2024-08-29) → 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=c5fd577&submodules=1' (2024-08-30) • Updated input 'hyprland/aquamarine': 'github:hyprwm/aquamarine/23c7925' (2024-08-28) → 'github:hyprwm/aquamarine/cff0019' (2024-08-30) • Updated input 'hyprland/hyprutils': 'github:hyprwm/hyprutils/aadf9a2' (2024-08-28) → 'github:hyprwm/hyprutils/8976e3f' (2024-08-29) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/0ce5684' (2024-08-29) → 'github:Jovian-Experiments/Jovian-NixOS/a14f978' (2024-08-30) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/e72651a' (2024-08-29) → 'github:nix-community/nixpkgs-wayland/99b0d59' (2024-08-30) Docker Images: • codeberg.org/forgejo/forgejo 8.0.2: sha256:221639a84fae9d9ec5236a50f4980c3cd5332851949f6e989f5f44cc411cf4fa → sha256:818fd892add3c6ade24ece9cc498301a44f68b844bd21abccf4795e7011094bf • rssbridge/rss-bridge latest: sha256:b5bdea7965411cb1b3c48120ddda04c1e6218bcbeb201d40d81a18e15fcfef78 → sha256:327315251d038d2ddae7eb088569470f52255f8a0cdc4df41eab47dab4624318 Firefox Addons: bitwarden: 2024.8.0 -> 2024.8.1 |
||
---|---|---|
.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