NixOS is the endgame to Distro Hopping
Find a file
matt1432 2ced84dc96
All checks were successful
Discord / discord commits (push) Has been skipped
chore: update flake.lock
Flake Inputs:
• Updated input 'astal':
    'github:Aylur/astal/e9f9de6' (2024-09-13)
  → 'github:Aylur/astal/71ee1ea' (2024-09-14)

• Updated input 'discord-overlay':
    'github:matt1432/discord-nightly-overlay/4bae358' (2024-09-12)
  → 'github:matt1432/discord-nightly-overlay/1975161' (2024-09-14)

• Updated input 'gpu-screen-recorder-src':
    'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=3446f86' (2024-09-06)
  → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=4a8544e' (2024-09-15)

• Updated input 'home-llm-src':
    'github:acon96/home-llm/90c0edc' (2024-08-21)
  → 'github:acon96/home-llm/4f145d2' (2024-09-14)

• Updated input 'home-manager':
    'github:nix-community/home-manager/da8406a' (2024-09-12)
  → 'github:nix-community/home-manager/a9c9cc6' (2024-09-15)

• Updated input 'hyprland':
    'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=118be4d&submodules=1' (2024-09-12)
  → 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=9e35656&submodules=1' (2024-09-15)

• Updated input 'nix-gaming':
    'github:fufexan/nix-gaming/3a97598' (2024-09-12)
  → 'github:fufexan/nix-gaming/3e51c98' (2024-09-15)

• Updated input 'nix-gaming/umu':
    'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=2d3c948&submodules=1' (2024-09-04)
  → 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=e064439&submodules=1' (2024-09-14)

• Updated input 'nix-index-db':
    'github:Mic92/nix-index-database/6422754' (2024-09-08)
  → 'github:Mic92/nix-index-database/0a2fba6' (2024-09-15)

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1355a0c' (2024-09-10)
  → 'github:NixOS/nixpkgs/345c263' (2024-09-13)

• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/5eedb68' (2024-09-12)
  → 'github:nix-community/nixpkgs-wayland/a36467e' (2024-09-15)

• Updated input 'sops-nix':
    'github:Mic92/sops-nix/cede1a0' (2024-09-09)
  → 'github:Mic92/sops-nix/f30b1ba' (2024-09-13)

Docker Images:
• ghcr.io/linuxserver/bazarr latest:
   sha256:16a30c1ef7412f3781dc9635bd42798399601a9750f871cb68e5efb5545ce0f5
 → sha256:476c315f0381d0b8c7921fbf3116b65e96ae32128df5fd27600e97213b862809

• ghcr.io/linuxserver/radarr latest:
   sha256:5ab12592e768d04d94bc04877bee194f372ea3946abc6de689311f4d8559ee2f
 → sha256:3bee8fb8eb4bb93b77eb4e0c5d755f25649223965af59f5f0363ddda03c6d10c

• ghcr.io/linuxserver/sonarr latest:
   sha256:138998077a802c18b76c26636301fcd5517b7bfaf75db025d457199176078a12
 → sha256:28cc44346fc87805b52a4376a89edc12cf082a5530cffee800a6c05dee482734
2024-09-15 19:51:41 -04:00
.forgejo/workflows feat(servers): test github action 2024-01-11 17:22:35 -05:00
apps feat(update-script): add option to semd output to file 2024-09-15 17:04:49 -04:00
checks refactor: rename checks and move files out of flake dir 2024-08-05 16:40:32 -04:00
common chore: update flake.lock 2024-09-12 21:35:53 -04:00
devices chore: update flake.lock 2024-09-15 19:51:41 -04:00
homeManagerModules feat(firefox): disable overscroll 2024-09-06 10:23:05 -04:00
legacyPackages chore: update flake.lock 2024-09-15 19:51:41 -04:00
lib fix(whisper): add CuDNN support 2024-09-05 09:18:23 -04:00
nixosModules chore(ags): move to mono-repo for astal-tray 2024-09-13 14:05:19 -04:00
overlays fix(whisper): add CuDNN support 2024-09-05 09:18:23 -04:00
packages chore: get rid of yuzu 2024-09-12 21:39:50 -04:00
.gitignore feat(ags): install node_modules in nix 2024-08-06 20:35:11 -04:00
flake.lock chore: update flake.lock 2024-09-15 19:51:41 -04:00
flake.nix chore(ags): move to mono-repo for astal-tray 2024-09-13 14:05:19 -04:00
inputs.nix chore(ags): move to mono-repo for astal-tray 2024-09-13 14:05:19 -04:00
LICENSE.md chore: add license 2024-01-18 11:01:09 -05:00
outputs.nix chore: update flake.lock 2024-09-07 22:04:53 -04:00
README.md refactor(flake): rename flake.in.nix to outputs.nix 2024-08-05 20:51:11 -04:00

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