NixOS is the endgame to Distro Hopping
Find a file
matt1432 5d27b3d975
All checks were successful
Discord / discord commits (push) Has been skipped
chore: update sources
Flake Inputs:
• Updated input 'agsV2':
    'github:Aylur/ags/5ec5640' (2024-11-12)
  → 'github:Aylur/ags/c93a906' (2024-11-13)

• Updated input 'astal':
    'github:Aylur/astal/2a9bb96' (2024-11-12)
  → 'github:Aylur/astal/9652fb8' (2024-11-13)

• Updated input 'custom-sidebar-src':
    'github:elchininet/custom-sidebar/a4b3aac' (2024-11-12)
  → 'github:elchininet/custom-sidebar/f36308d' (2024-11-12)

• Updated input 'discord-overlay':
    'github:matt1432/discord-nightly-overlay/5def542' (2024-11-09)
  → 'github:matt1432/discord-nightly-overlay/26c5348' (2024-11-13)

• Updated input 'discord-overlay/Vencord-src':
    'github:Vendicated/vencord/49c9fa1' (2024-11-08)
  → 'github:Vendicated/vencord/7ef536c' (2024-11-12)

• Updated input 'gpu-screen-recorder-src':
    'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=c8fdf2f' (2024-11-10)
  → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=4d3e95d' (2024-11-13)

• Updated input 'hyprland':
    'github:hyprwm/Hyprland/bb160cf' (2024-11-12)
  → 'github:hyprwm/Hyprland/3fb4737' (2024-11-13)

• Updated input 'hyprland/aquamarine':
    'github:hyprwm/aquamarine/a49bc35' (2024-11-07)
  → 'github:hyprwm/aquamarine/3b00e96' (2024-11-13)

• Updated input 'jellyfin-flake':
    'github:matt1432/nixos-jellyfin/78ed33e' (2024-11-05)
  → 'github:matt1432/nixos-jellyfin/5d0496a' (2024-11-12)

• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/e25b62b' (2024-11-11)
  → 'github:nix-community/nixpkgs-wayland/c2fa066' (2024-11-13)

• Updated input 'tuya-local-src':
    'github:make-all/tuya-local/2739992' (2024-11-11)
  → 'github:make-all/tuya-local/6676925' (2024-11-13)

Docker Images:
• vegardit/gitea-act-runner dind-latest:
   sha256:61c937fd19ead374764f7a00f3e284521b5d0eea8edef6761276e3cd06bf4a9a
 → sha256:ee4962ccfb8e99e8541f59130ddfda5b82b5c4c82eba513f2ee03216c2d0dd85

• postgres 14:
   sha256:c9fcaef49a1ca7deae24437c705bf7485922f8a768a140006c5d8abb3f6cac7b
 → sha256:9fcd27ebadf8d8fb1f257b1799eff6363cb0d947ffff046de5d49915f469ca08

• nextcloud fpm:
   sha256:e364690143d6114ffe268eb81b8905680e3ff561ac00267928f156af6f4fe571
 → sha256:1462206286d1769c499e0f15f4998c9a518a330cacd4cf9c8206904f5dcfc131

• nginx latest:
   sha256:5026c85d87419b6c3622622570ea5c25ab9f9bb48961554658272bbc18e518b1
 → sha256:bc5eac5eafc581aeda3008b4b1f07ebba230de2f27d47767129a6a905c84f470

• onlyoffice/documentserver latest:
   sha256:2b0180b8ca27b36f27e0ddea0e9e8a5b1d40fcf478dc31f7e2efcfb9ce1bf42a
 → sha256:4af9878e3c663739f313ab60ad43f810a3c21d3726652efcd11917b95da1e4f7

• postgres 15-alpine:
   sha256:620dc79c45816cff4f38f0b49c71f15a3bc6bab9439ba1eea3a76d23ebcf1e4d
 → sha256:8b963ea3038c3b32182ee7f592ccde21242fa7c5fd9d1b72aa333c27f1bfc809

• ghcr.io/linuxserver/bazarr latest:
   sha256:88684337f4e3ea6c47623e47c5c27f798ed0d24fbca3e08c8d04be7a2b8a5668
 → sha256:7391c8c31a190aa676ca3596b54c243e731411cb8bdfef50f94f3e5c559520b8

• ghcr.io/linuxserver/prowlarr latest:
   sha256:1e2fffd859ecd260e4aae4798cf5be75938cd602161d21b1d58122afb397c864
 → sha256:7cd854daf61f7f2f68b8680850d86519409a61247e556ff41a3aae0e0cc3fb10

• docker.io/fallenbagel/jellyseerr latest:
   sha256:8ff28894f9fd28bf36626fb98ddd0ee79d778de22a5dc75d69a845281e19115b
 → sha256:af5563771964282e5bfb6a4f30b05c75c8d30661a920f0399086f575217d0573
2024-11-13 16:21:21 -05:00
.forgejo/workflows feat(servers): test github action 2024-01-11 17:22:35 -05:00
apps feat(upScript): don't show empty sections 2024-11-13 16:02:45 -05:00
checks refactor: rename checks and move files out of flake dir 2024-08-05 16:40:32 -04:00
common feat(netd nvim): switch to omnisharp and add linter 2024-10-31 23:13:02 -04:00
devices chore: update sources 2024-11-13 16:21:21 -05:00
homeManagerModules feat(firefox): switch to official nix wiki 2024-10-09 11:16:55 -04:00
legacyPackages refactor(upScript): move ffz to mozilla-addons-to-nix 2024-11-13 15:27:28 -05:00
lib refactor(ags): remove unneeded agsV1 stuff 2024-11-12 16:55:57 -05:00
nixosModules refactor(ags): remove unneeded agsV1 stuff 2024-11-12 16:55:57 -05:00
overlays refactor(upScript): separate funcs in more files 2024-11-13 15:17:45 -05:00
packages refactor(ags): remove unneeded agsV1 stuff 2024-11-12 16:55:57 -05:00
.gitignore feat(agsV2): add lockscreen 2024-10-22 00:14:39 -04:00
flake.lock chore: update sources 2024-11-13 16:21:21 -05:00
flake.nix fix(hypr): add hyprutils in inputs to make sure we use latest git 2024-11-13 14:34:50 -05:00
inputs.nix fix(hypr): add hyprutils in inputs to make sure we use latest git 2024-11-13 14:34:50 -05:00
LICENSE.md chore: add license 2024-01-18 11:01:09 -05:00
outputs.nix chore: update flake.lock 2024-11-11 23:45:04 -05:00
README.md refactor(ags): remove unneeded agsV1 stuff 2024-11-12 16:55:57 -05: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 AGSv2 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