nixos-configs/devices
matt1432 92398d5cbf
All checks were successful
Discord / discord commits (push) Has been skipped
chore: update flake.lock
Flake Inputs:
• Updated input 'discord-overlay':
    'github:matt1432/discord-nightly-overlay/d558ffa' (2024-07-20)
  → 'github:matt1432/discord-nightly-overlay/02c87d4' (2024-07-23)

• Updated input 'gpu-screen-recorder-src':
    'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=da73b3a' (2024-07-22)
  → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=7d719a4' (2024-07-23)

• Updated input 'home-manager':
    'github:nix-community/home-manager/635563f' (2024-07-21)
  → 'github:nix-community/home-manager/7560dc9' (2024-07-23)

• Updated input 'hyprland'

• Updated input 'hyprland/aquamarine':
    'github:hyprwm/aquamarine/4c72cd4' (2024-07-23)
  → 'github:hyprwm/aquamarine/601f6cf' (2024-07-21)

• Updated input 'neovim-nightly':
    'github:nix-community/neovim-nightly-overlay/464172e' (2024-07-22)
  → 'github:nix-community/neovim-nightly-overlay/0380256' (2024-07-23)

• Updated input 'neovim-nightly/neovim-src':
    'github:neovim/neovim/7381f0a' (2024-07-21)
  → 'github:neovim/neovim/9322b7e' (2024-07-22)

• Updated input 'nixd':
    'github:nix-community/nixd/87135e0' (2024-07-21)
  → 'github:nix-community/nixd/86dc0ba' (2024-07-23)

Docker Images:
• postgres 14:
   sha256:2f7365d1f574dba34f6332978169afe60af9de9608fffbbfecb7d04cc5233698
 → sha256:0c9b69b804edbfd211b8cdfc87ac4c79db52dbcc8fb8c278d07136db2f79fe6c

• postgres 15-alpine:
   sha256:ede3a168dae0d2154440c2b1b2c7773201bfa969d85a1859c44b6f4ab2df0ef7
 → sha256:d98d4ee225766374077e2d689a4a20be9195c0c112dfc36ff9b54701d279e221

• nginx latest:
   sha256:67682bda769fae1ccf5183192b8daf37b64cae99c6c3302650f6f8bf5f0f95df
 → sha256:05ab1728068284cbd42d54554fa2b69a3d6334adafccf2e70cf20925d7d55e90

• nextcloud 29.0.4-fpm:
   sha256:d2dc74b2ce5fc6b06e1bf454320bb6388817757b41314a0214af4eac278a3c42
 → sha256:dd4306e19bb2992246f837e50541b7baf010f47954e3afcf65cafd10657f365d
2024-07-23 18:39:17 -04:00
..
android refactor: modularize flake and import nixpkgs 2024-05-20 22:41:45 -04:00
bbsteamie refactor(devices): place configs in order and delete oksys 2024-07-14 22:59:33 -04:00
binto refactor(devices): place configs in order and delete oksys 2024-07-14 22:59:33 -04:00
cluster refactor(devices): place configs in order and delete oksys 2024-07-14 22:59:33 -04:00
nos chore: update flake.lock 2024-07-23 18:39:17 -04:00
servivi refactor(devices): place configs in order and delete oksys 2024-07-14 22:59:33 -04:00
wim refactor(devices): place configs in order and delete oksys 2024-07-14 22:59:33 -04:00
README.md refactor(devices): place configs in order and delete oksys 2024-07-14 22:59:33 -04:00

Devices

This directory encompasses every device's main configuration file.

List of my Devices

Name Description
android My Nix-On-Droid configuration for my OnePlus 9 Pro
bbsteamie My wife's SteamDeck that has a pink case
binto My desktop PC with a multi-monitor setup and an NVIDIA (cringe) 3070
cluster Two Lenovo mini PCs that make use of NixOS-pcsd to form a cluster
nos My custom built NAS
servivi A gaming PC in a previous life, it is now used as a build farm and hosts game servers
wim My 2-1 Lenovo Laptop that I use for uni

Global Vars

In every device's default.nix, you'll find these settings

# $FLAKE/devices/<name>/default.nix

vars = {
  mainUser = "matt";
  hostName = "wim";
  ...
};

from these declared settings, I get access to global variables that are different on each host using a 'let in' block:

let
  inherit (config.vars) mainUser ...;
in {
  ...