1
0
Fork 0

Snowfall - replace aux.system

This commit is contained in:
Aires 2024-12-06 11:46:10 -05:00
parent df02d39ced
commit 1ebf66e78d
62 changed files with 427 additions and 313 deletions

View file

@ -1,6 +1,6 @@
# NixOS Configuration
A full set of configuration files managed via NixOS. This project is an **unofficial** extension of the [Auxolotl system template](https://git.auxolotl.org/auxolotl/templates).
A full set of configuration files managed via NixOS. This project uses the [Snowfall library](https://snowfall.org/guides/lib/quickstart).
> [!WARNING]
> DO NOT DOWNLOAD AND RUN `nixos-rebuild` ON THIS REPOSITORY! These are my personal configuration files. I invite you to look through them, modify them, and take inspiration from them, but if you run `nixos-rebuild`, it _will completely overwrite your current system_!
@ -9,7 +9,7 @@ A full set of configuration files managed via NixOS. This project is an **unoffi
### Note on secrets management
Secrets are managed using [git-crypt](https://github.com/AGWA/git-crypt). To unlock the repo, use `git-crypt unlock [path to key file]`. git-crypt will transparently encrypt/decrypt files stored in `modules/nixos/secrets` going forward, but you'll need this key file on all hosts that are using secrets.
Secrets are managed using [transcrypt](https://github.com/elasticdog/transcrypt). To unlock the repo, use `transcrypt -c [cipher] -p '[password]'`. Transcrypt will transparently encrypt/decrypt files stored in `modules/nixos/secrets` going forward. You can get the cipher and password from a host with transcrypt already configured by running `transcrypt --display`.
> [!NOTE]
> This is a poor man's secret management solution. If you use this, your secrets will be world-readable in the `/nix/store/`.
@ -22,9 +22,9 @@ When installing on a brand new system, partition the main drive into two partiti
./bin/format-drives.sh --boot /dev/nvme0n1p1 --luks /dev/nvme0n1p2
```
Next, set up the host's config under in the `hosts` folder by copying `configuration.nix.template` and `hardware-configuration.nix.template` into a new folder. Running `format-drives.sh` also generates a `hardware-configuration.nix` file you can use.
Next, set up the host's config in the `systems/[architecture]` folder by copying `default.nix.template` and `hardware-configuration.nix.template` into a new folder named after the hostname. Running `format-drives.sh` also generates a `hardware-configuration.nix` file you can use.
Then, add the host to `flake.nix` under the `nixosConfigurations` section.
If necessary, import modules by adding the host to `flake.nix` under the `outputs.systems.hosts` section.
Finally, run the NixOS installer, replacing `host` with your actual hostname:
@ -41,10 +41,10 @@ To update a system, run `nixos-operations-script` (or just `nos`). To commit upd
#### Automatic updates
To enable automatic updates for a host, set `aux.system.services.autoUpgrade = true;`. You can configure the autoUpgrade module with additional settings, e.g.:
To enable automatic updates for a host, set `config.${namespace}.services.autoUpgrade = true;`. You can configure the autoUpgrade module with additional settings, e.g.:
```nix
aux.system.services.autoUpgrade = {
services.autoUpgrade = {
enable = true;
configDir = config.secrets.nixConfigFolder;
onCalendar = "daily";
@ -52,7 +52,7 @@ aux.system.services.autoUpgrade = {
};
```
Automatic updates work by running `nos`. There's an additional `pushUpdates` option that, when enabled, updates the `flake.lock` file and pushes it back up to the Git repository. Only one host needs to do this (in this case, it's [Hevana](./hosts/Hevana), but you can safely enable it on multiple hosts as long as they use the same repository and update at different times.
Automatic updates work by running `nos`. There's an additional `pushUpdates` option that, when enabled, updates the `flake.lock` file and pushes it back up to the Git repository. Only one host needs to do this (in this case, it's [Hevana](./systems/x86_64-linux/Hevana)), but you can safely enable it on multiple hosts as long as they use the same repository and update at different times.
#### Manually updating
@ -127,19 +127,7 @@ nixos-rebuild build-vm --flake .
## About this repository
### Layout
This config uses a custom templating system built off of the [Auxolotl system templates](https://git.auxolotl.org/auxolotl/templates).
- Flakes are the entrypoint, via `flake.nix`. This is where Flake inputs and Flake-specific options get defined.
- Hosts are defined in the `hosts` folder.
- Modules are defined in `modules`. All of these files are automatically imported (except home-manager modules). You simply enable the ones you want to use, and disable the ones you don't. For example, to install Flatpak support, set `aux.system.ui.flatpak.enable = true;`.
- After adding a new module, make sure to `git add` it before running `nixos-rebuild`.
- Home-manager configs live in the `users/` folders.
### Features
This Nix config features:
This config uses the [Snowfall lib](https://snowfall.org/), along with some default options and settings for common software. It features:
- Flakes
- Home Manager

View file

@ -228,11 +228,11 @@
]
},
"locked": {
"lastModified": 1733050161,
"narHash": "sha256-lYnT+EYE47f5yY3KS/Kd4pJ6CO9fhCqumkYYkQ3TK20=",
"lastModified": 1733482664,
"narHash": "sha256-ZD+h1fwvZs+Xvg46lzTWveAqyDe18h9m7wZnTIJfFZ4=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "62d536255879be574ebfe9b87c4ac194febf47c5",
"rev": "e38d3dd1d355a003cc63e8fe6ff66ef2257509ed",
"type": "github"
},
"original": {
@ -307,11 +307,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1733217105,
"narHash": "sha256-fc6jTzIwCIVWTX50FtW6AZpuukuQWSEbPiyg6ZRGWFY=",
"lastModified": 1733481457,
"narHash": "sha256-IS3bxa4N1VMSh3/P6vhEAHQZecQ3oAlKCDvzCQSO5Is=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "cceee0a31d2f01bcc98b2fbd591327c06a4ea4f9",
"rev": "e563803af3526852b6b1d77107a81908c66a9fcf",
"type": "github"
},
"original": {
@ -355,11 +355,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1733212471,
"narHash": "sha256-M1+uCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo=",
"lastModified": 1733392399,
"narHash": "sha256-kEsTJTUQfQFIJOcLYFt/RvNxIK653ZkTBIs4DG+cBns=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "55d15ad12a74eb7d4646254e13638ad0c4128776",
"rev": "d0797a04b81caeae77bcff10a9dde78bc17f5661",
"type": "github"
},
"original": {

View file

@ -1,4 +1,4 @@
# Based on the Auxolotl template: https://github.com/auxolotl/templates
# Uses Snowfall: https://snowfall.org/
# For info on Flakes, see: https://nixos-and-flakes.thiscute.world/nixos-with-flakes/nixos-with-flakes-enabled
{
description = "Aires' system Flake";
@ -39,8 +39,7 @@
# NixOS hardware quirks
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
# Snowfall - a unified configuration manager for NixOS
# Quickstart guide: https://snowfall.org/guides/lib/quickstart/
# Snowfall lib: https://snowfall.org/guides/lib/quickstart/
# Jake's reference config: https://github.com/jakehamilton/config
snowfall-lib = {
url = "github:snowfallorg/lib";

View file

@ -2,15 +2,16 @@
config,
lib,
pkgs,
namespace,
...
}:
let
cfg = config.aux.system.apps.development;
cfg = config.${namespace}.apps.development;
in
{
options = {
aux.system.apps.development = {
${namespace}.apps.development = {
enable = lib.mkEnableOption "Enables development tools";
kubernetes.enable = lib.mkEnableOption "Enables kubectl, virtctl, and similar tools.";
};
@ -18,7 +19,7 @@ in
config = lib.mkMerge [
(lib.mkIf cfg.enable {
aux.system = {
${namespace} = {
packages = with pkgs; [
nil # Nix Language server: https://github.com/oxalica/nil
nix-prefetch-scripts

View file

@ -2,12 +2,13 @@
config,
lib,
pkgs,
namespace,
...
}:
# Gaming-related settings
let
cfg = config.aux.system.apps.gaming;
cfg = config.${namespace}.apps.gaming;
reset-controllers-script = pkgs.writeShellScriptBin "reset-controllers" ''
#!/usr/bin/env bash
sudo rmmod hid_xpadneo && sudo modprobe hid_xpadneo
@ -16,25 +17,27 @@ let
in
{
options = {
aux.system.apps.gaming.enable = lib.mkEnableOption "Enables gaming features";
${namespace}.apps.gaming.enable = lib.mkEnableOption "Enables gaming features";
};
config = lib.mkIf cfg.enable {
aux.system.ui.flatpak = {
enable = true;
packages = [
"gg.minion.Minion"
"com.valvesoftware.Steam"
"org.firestormviewer.FirestormViewer"
];
${namespace} = {
# Add script to restart xpadneo in case of issues
packages = [ reset-controllers-script ];
ui.flatpak = {
enable = true;
packages = [
"gg.minion.Minion"
"com.valvesoftware.Steam"
"org.firestormviewer.FirestormViewer"
];
};
};
# Enable Xbox controller driver (XPadNeo)
hardware.xpadneo.enable = true;
# Add script to restart xpadneo in case of issues
aux.system.packages = [ reset-controllers-script ];
# Enable GameMode
programs.gamemode.enable = true;
};

View file

@ -1,18 +1,23 @@
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.apps.media;
cfg = config.${namespace}.apps.media;
in
{
options = {
aux.system.apps.media = {
${namespace}.apps.media = {
enable = lib.mkEnableOption "Enables media playback and editing apps.";
mixxx.enable = lib.mkEnableOption "Installs the Mixxx DJing software.";
};
};
config = lib.mkIf cfg.enable {
aux.system.ui.flatpak = {
${namespace}.ui.flatpak = {
enable = true;
packages = [
"app.drey.EarTag"

View file

@ -1,15 +1,20 @@
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.apps.office;
cfg = config.${namespace}.apps.office;
in
{
options = {
aux.system.apps.office.enable = lib.mkEnableOption "Enables office and workstation apps";
${namespace}.apps.office.enable = lib.mkEnableOption "Enables office and workstation apps";
};
config = lib.mkIf cfg.enable {
aux.system.ui.flatpak = {
${namespace}.ui.flatpak = {
enable = true;
packages = [
"org.onlyoffice.desktopeditors"

View file

@ -2,19 +2,20 @@
config,
lib,
pkgs,
namespace,
...
}:
let
cfg = config.aux.system.apps.recording;
cfg = config.${namespace}.apps.recording;
in
{
options = {
aux.system.apps.recording.enable = lib.mkEnableOption "Enables video editing tools";
${namespace}.apps.recording.enable = lib.mkEnableOption "Enables video editing tools";
};
config = lib.mkIf cfg.enable {
aux.system.ui.flatpak.enable = true;
${namespace}.ui.flatpak.enable = true;
services.flatpak.packages = [
"com.obsproject.Studio"

View file

@ -2,19 +2,20 @@
config,
lib,
pkgs,
namespace,
...
}:
let
cfg = config.aux.system.apps.social;
cfg = config.${namespace}.apps.social;
in
{
options = {
aux.system.apps.social.enable = lib.mkEnableOption "Enables chat apps";
${namespace}.apps.social.enable = lib.mkEnableOption "Enables chat apps";
};
config = lib.mkIf cfg.enable {
aux.system = {
${namespace} = {
packages = [ pkgs.beeper ];
ui.flatpak = {
enable = true;

View file

@ -2,11 +2,12 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.apps.writing;
cfg = config.${namespace}.apps.writing;
compile-manuscript = pkgs.writeShellScriptBin "compile-manuscript" (
builtins.readFile ../../../../bin/compile-manuscript.sh
@ -14,7 +15,7 @@ let
in
{
options = {
aux.system.apps.writing.enable = lib.mkEnableOption "Enables writing and editing tools";
${namespace}.apps.writing.enable = lib.mkEnableOption "Enables writing and editing tools";
};
config = lib.mkIf cfg.enable {

View file

@ -1,11 +1,12 @@
# Modules common to all systems
{
pkgs,
namespace,
...
}:
{
aux.system = {
${namespace} = {
# Install base packages
packages = with pkgs; [
fastfetch # Show a neat system statistics screen when opening a terminal

View file

@ -2,11 +2,11 @@
{ config, lib, ... }:
let
cfg = config.aux.system.services.myModule;
cfg = config.${namespace}.services.myModule;
in
{
options = {
aux.system.services.myModule = {
${namespace}.services.myModule = {
enable = lib.mkEnableOption "Enables this example module.";
attributes = lib.mkOption {
default = { };

View file

@ -1,111 +1,109 @@
U2FsdGVkX18XLcC6KPfRaGSo5Qz34PSSmgpl/qnz5d5TxlKG+pMhtUt0t/iGnyQV
guWUZIvUrnTfP0LSZym1eDEFJqsnGX4mMdf7vjFv17lco2FogP3/1WeneMvS1Q5s
383TGpr78ufpizc5L1D9U8fWNePzHYxfT9F7AiviwjuoJJR0jxHEHLvPwKPxib6b
zPLpX+XbBzmGMt9fOVv6WJLGHU8s3eaq4bGNiTsGX2WAzDx72u2eNqiYhom/Cqnr
OSxWrC4rtICZ1qi3/duWzeCcJOjKPuZ/w92ENYYAPc9OiJWbmejaEddu6vcu+ZDV
6Xn2hdZRGJzh/Tuuzq/w0vBQ3We9ODW8YI+S2HDvYRprBmuoitZp/NWwfewxbOz0
R7fZgeNeiOtFHiSUxawh/kwqVSytmh/YX7Go3f6EGiN+dng62mxqwp5GGD0WsLf/
JvvzD9qhAqhswRNZBBRNb+iTUw78Y5rGFtHlMRVZ3N4JKE72jq70x52gFaOq5T6w
OykZNJVqx7/Okw53Dbfrss5/W8parx0XmvKC689WvQZLWM8uj4mXXMik6myVDY77
hu4K7Sqahw/GYnnJMvH+9ljaVg+Tjeoz+XdceFn+5eCogTuU51hFpmB0+MqfUWfX
ppPJxchb53+d0Dp+I5dnSKpQFfb9lnuA5DqA1S3T5VjA+XnKNC6vktpruFOu4UEP
+m0OB7UgVEcaSM1DJyOVo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BlIDV/m858dMMYedajIHLnWb
bgsNOXjj+FxdmappOqUJKjLseFx91NBuix5d92oUM8LvWQ9iHXVk9y7KVgFxFpc/
lCw+UTzzBPnC0GcmJzOT8AaWkMYrnikoL4lYn9mr8wwLpJFkUOmyF/EUSiCj72Gb
v1GmsjbgAECIjEgIMXRAC5Vx1L9zjzHhxyHOk2f6/kfbsjSl0kKUIWTlNz9JWi4/
MuzXdleauhHYjE5zjaJ9Mp3KNhYNH2y8xUliSPLeX0TXyAJVKSYTtxq1JVyKTHBL
yVEBUFcOtAkF5Mo7nTyjUGMcHVq7+3udXz8PSmxwDUSsWbwcOAvhqyW4d/tnCHk7
wc3pMAIJUrsG/mAjy9Jc4jUsHOlzNu09w6YpDk7PyJBdm6pibyKdFbWhHxspZCwx
Ikg5iH751ka7WzT7Bnthy2Ekj7d/0R8ZeOozFZFeGscy86SiPBxT+UyhvCgwGyNQ
9YQnrKuIzxKV76nrbD/29yBzBTQAeeYJ9IgosIdqlWXqaJJNWvVeglSYdcEFpLNV
hKbHj0pS6OtGopX4RAl2Gybi7ZXBPR2af1HywMp4FkRi4AVYcP0CWtp6TcnkBoPy
603JF3Jfoyhg1vGhCipoGx6pCa+RD2gw5VSefhZtOeukDf3BhooMQB+ya1DUCp/T

View file

@ -1,11 +1,16 @@
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.acme;
cfg = config.${namespace}.services.acme;
in
{
options = {
aux.system.services.acme = {
${namespace}.services.acme = {
enable = lib.mkEnableOption "Enable the ACME client (for Let's Encrypt TLS certificates).";
certs = lib.mkOption {
default = { };
@ -30,6 +35,6 @@ in
# /var/lib/acme/.challenges must be writable by the ACME user
# and readable by the Nginx user. The easiest way to achieve
# this is to add the Nginx user to the ACME group.
users.users.nginx.extraGroups = lib.mkIf config.aux.system.services.nginx.enable [ "acme" ];
users.users.nginx.extraGroups = lib.mkIf config.${namespace}.services.nginx.enable [ "acme" ];
};
}

View file

@ -1,10 +1,15 @@
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.apcupsd;
cfg = config.${namespace}.services.apcupsd;
in
{
options = {
aux.system.services.apcupsd = {
${namespace}.services.apcupsd = {
enable = lib.mkEnableOption "Enables apcupsd";
configText = lib.mkOption {
type = lib.types.str;

View file

@ -1,12 +1,17 @@
# Run automatic updates. Replaces system.autoUpgrade.
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.autoUpgrade;
cfg = config.${namespace}.services.autoUpgrade;
in
{
options = {
aux.system.services.autoUpgrade = {
${namespace}.services.autoUpgrade = {
enable = lib.mkEnableOption "Enables automatic system updates.";
configDir = lib.mkOption {
type = lib.types.str;
@ -54,7 +59,7 @@ in
];
# Deploy update script
aux.system.nixos-operations-script.enable = true;
${namespace}.nixos-operations-script.enable = true;
# Pull and apply updates.
systemd = {
@ -63,7 +68,7 @@ in
Type = "oneshot";
User = "root";
};
path = config.aux.system.corePackages;
path = config.${namespace}.corePackages;
unitConfig.RequiresMountsFor = cfg.configDir;
script =
"/run/current-system/sw/bin/nixos-operations-script --operation ${cfg.operation} "

View file

@ -1,16 +1,16 @@
{
config,
lib,
pkgs,
namespace,
...
}:
let
cfg = config.aux.system.services.binary-cache;
cfg = config.${namespace}.services.binary-cache;
in
{
options = {
aux.system.services.binary-cache = {
${namespace}.services.binary-cache = {
enable = lib.mkEnableOption "Enable a binary cache hosting service.";
secretKeyFile = lib.mkOption {
default = "/var/lib/nix-binary-cache/privkey.pem";

View file

@ -2,15 +2,16 @@
config,
lib,
pkgs,
namespace,
...
}:
let
cfg = config.aux.system.services.boinc;
cfg = config.${namespace}.services.boinc;
in
{
options = {
aux.system.services.boinc = {
${namespace}.services.boinc = {
enable = lib.mkEnableOption "Enables BOINC distributed computing service.";
home = lib.mkOption {
default = "/var/lib/boinc";
@ -27,7 +28,7 @@ in
dataDir = cfg.home;
extraEnvPackages = [
pkgs.ocl-icd
] ++ lib.optionals config.aux.system.gpu.nvidia.enable [ pkgs.linuxPackages.nvidia_x11 ];
] ++ lib.optionals config.${namespace}.gpu.nvidia.enable [ pkgs.linuxPackages.nvidia_x11 ];
allowRemoteGuiRpc = true;
};

View file

@ -2,15 +2,16 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.duplicacy-web;
cfg = config.${namespace}.services.duplicacy-web;
in
{
options = {
aux.system.services.duplicacy-web = {
${namespace}.services.duplicacy-web = {
enable = lib.mkEnableOption "Enables duplicacy-web";
home = lib.mkOption {
default = "/var/lib/duplicacy-web";

View file

@ -1,14 +1,15 @@
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.forgejo;
cfg = config.${namespace}.services.forgejo;
in
{
options = {
aux.system.services.forgejo = {
${namespace}.services.forgejo = {
enable = lib.mkEnableOption "Enables Forgejo Git hosting service.";
home = lib.mkOption {
default = "";

View file

@ -2,10 +2,11 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.jellyfin;
cfg = config.${namespace}.services.jellyfin;
jellyfin-audio-save = pkgs.unstable.jellyfin.overrideAttrs (
finalAttrs: prevAttrs: { patches = [ ./jellyfin-audio-save-position.patch ]; }
@ -13,7 +14,7 @@ let
in
{
options = {
aux.system.services.jellyfin = {
${namespace}.services.jellyfin = {
enable = lib.mkEnableOption "Enables the Jellyfin media streaming service.";
home = lib.mkOption {
default = "/var/lib/jellyfin";
@ -30,7 +31,7 @@ in
};
config = lib.mkIf cfg.enable {
aux.system.users.media.enable = true;
${namespace}.users.media.enable = true;
services = {
nginx.virtualHosts."${cfg.url}" = {

View file

@ -2,14 +2,15 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.languagetool;
cfg = config.${namespace}.services.languagetool;
in
{
options = {
aux.system.services.languagetool = {
${namespace}.services.languagetool = {
enable = lib.mkEnableOption (lib.mdDoc "Enables LanguageTool server.");
auth = {
password = lib.mkOption {

View file

@ -1,12 +1,17 @@
# See https://wiki.nixos.org/wiki/Msmtp
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.msmtp;
cfg = config.${namespace}.services.msmtp;
in
{
options = {
aux.system.services.msmtp = {
${namespace}.services.msmtp = {
enable = lib.mkEnableOption "Enables mail server";
accounts = lib.mkOption {
type = lib.types.attrs;

View file

@ -2,14 +2,15 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.netdata;
cfg = config.${namespace}.services.netdata;
in
{
options = {
aux.system.services.netdata = {
${namespace}.services.netdata = {
enable = lib.mkEnableOption "Enables Netdata monitoring.";
auth = {
user = lib.mkOption {

View file

@ -1,11 +1,16 @@
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.nginx;
cfg = config.${namespace}.services.nginx;
in
{
options = {
aux.system.services.nginx = {
${namespace}.services.nginx = {
enable = lib.mkEnableOption "Enable the Nginx web server.";
virtualHosts = lib.mkOption {

View file

@ -2,17 +2,18 @@
config,
lib,
pkgs,
namespace,
...
}:
let
cfg = config.aux.system.services.qbittorrent;
cfg = config.${namespace}.services.qbittorrent;
UID = 850;
GID = 850;
in
{
options = {
aux.system.services.qbittorrent = {
${namespace}.services.qbittorrent = {
enable = lib.mkEnableOption "Enables qBittorrent.";
home = lib.mkOption {
default = "/var/lib/qbittorrent";

View file

@ -2,14 +2,15 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.rss;
cfg = config.${namespace}.services.rss;
in
{
options = {
aux.system.services.rss = {
${namespace}.services.rss = {
enable = lib.mkEnableOption "Enables RSS hosting service via FreshRSS.";
auth = {
password = lib.mkOption {

View file

@ -1,11 +1,16 @@
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.ssh;
cfg = config.${namespace}.services.ssh;
in
{
options = {
aux.system.services.ssh = {
${namespace}.services.ssh = {
enable = lib.mkEnableOption "Enables SSH server.";
ports = lib.mkOption {
default = [ 22 ];

View file

@ -1,12 +1,17 @@
# See https://wiki.nixos.org/wiki/Syncthing
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.services.syncthing;
cfg = config.${namespace}.services.syncthing;
in
{
options = {
aux.system.services.syncthing = {
${namespace}.services.syncthing = {
enable = lib.mkEnableOption "Enables Syncthing.";
enableTray = lib.mkEnableOption "Enables the Syncthing Tray applet.";
home = lib.mkOption {
@ -36,7 +41,7 @@ in
networking.firewall.allowedTCPPorts = with cfg.web; lib.mkIf (enable && public) [ port ];
services = {
flatpak.packages = lib.mkIf (config.aux.system.ui.flatpak.enable && cfg.enableTray) [
flatpak.packages = lib.mkIf (config.${namespace}.ui.flatpak.enable && cfg.enableTray) [
"io.github.martchus.syncthingtray"
];

View file

@ -3,15 +3,16 @@
config,
lib,
pkgs,
namespace,
...
}:
let
cfg = config.aux.system.services.virtualization;
cfg = config.${namespace}.services.virtualization;
in
{
options = {
aux.system.services.virtualization = {
${namespace}.services.virtualization = {
enable = lib.mkEnableOption "Enables virtualization tools on this host.";
host = {
enable = lib.mkEnableOption "Enables virtual machine hosting.";

View file

@ -3,16 +3,17 @@
lib,
config,
pkgs,
namespace,
...
}:
let
cfg = config.aux.system.bluetooth;
cfg = config.${namespace}.bluetooth;
in
{
options = {
aux.system.bluetooth = {
${namespace}.bluetooth = {
enable = lib.mkEnableOption "Enables bluetooth.";
experimental.enable = lib.mkEnableOption "Enables experimental features, like device power reporting.";
};

View file

@ -4,17 +4,18 @@
config,
lib,
pkgs,
namespace,
...
}:
# Bootloader
let
cfg = config.aux.system.bootloader;
cfg = config.${namespace}.bootloader;
in
{
options = {
aux.system.bootloader = {
${namespace}.bootloader = {
enable = lib.mkOption {
description = "Automatically configures the bootloader. Set to false to configure manually.";
type = lib.types.bool;

View file

@ -3,16 +3,17 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system;
cfg = config.${namespace};
gitWithLibsecret = pkgs.git.override { withLibsecret = true; };
in
{
options = {
aux.system = {
${namespace} = {
packages = lib.mkOption {
description = "Additional system packages to install. This is just a wrapper for environment.systemPackages.";
type = lib.types.listOf lib.types.package;
@ -71,7 +72,7 @@ in
autodetect = true;
notifications = {
wall.enable = true;
mail = lib.mkIf config.aux.system.services.msmtp.enable {
mail = lib.mkIf config.${namespace}.services.msmtp.enable {
enable = true;
mailer = "/run/wrappers/bin/sendmail";
sender = "${config.networking.hostName}@${config.secrets.networking.domains.primary}";

View file

@ -1,12 +1,17 @@
# Basic system-wide text editor configuration.
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.editor;
cfg = config.${namespace}.editor;
in
{
options = {
aux.system.editor = lib.mkOption {
${namespace}.editor = lib.mkOption {
description = "Selects the default text editor.";
default = "nano";
type = lib.types.enum [

View file

@ -1,6 +1,11 @@
{ lib, config, ... }:
{
lib,
config,
namespace,
...
}:
let
cfg = config.aux.system.filesystem;
cfg = config.${namespace}.filesystem;
# LUKS partition will decrypt to /dev/mapper/nixos-root
decryptPart = "nixos-root";
@ -14,7 +19,7 @@ let
in
{
options = {
aux.system.filesystem = {
${namespace}.filesystem = {
enable = lib.mkEnableOption "Enables standard BTRFS subvolumes and parameters.";
partitions = {
boot = lib.mkOption {
@ -60,7 +65,7 @@ in
boot.initrd.luks.devices.${decryptPart} = {
device = cfg.partitions.luks;
# Enable TPM auto-unlocking if configured
crypttabExtraOpts = lib.mkIf config.aux.system.bootloader.tpm2.enable [ "tpm2-device=auto" ];
crypttabExtraOpts = lib.mkIf config.${namespace}.bootloader.tpm2.enable [ "tpm2-device=auto" ];
};
fileSystems = {
"/" = {

View file

@ -3,14 +3,15 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.gpu;
cfg = config.${namespace}.gpu;
in
{
options = {
aux.system.gpu = {
${namespace}.gpu = {
amd.enable = lib.mkEnableOption "Enables AMD GPU support.";
intel.enable = lib.mkEnableOption "Enables Intel GPU support.";
nvidia = {
@ -87,7 +88,7 @@ in
opengl.extraPackages = with pkgs; [ vaapiVdpau ];
nvidia = {
modesetting.enable = true;
nvidiaSettings = config.aux.system.ui.desktops.enable;
nvidiaSettings = config.${namespace}.ui.desktops.enable;
package = config.boot.kernelPackages.nvidiaPackages.stable;
prime = lib.mkIf cfg.nvidia.hybrid.enable {

View file

@ -1,5 +1,5 @@
# Configure basic networking options.
{ lib, ... }:
{ lib, namespace, ... }:
{
networking = {
# Default to DHCP. Set to false to use static IPs.

View file

@ -4,11 +4,12 @@
inputs,
lib,
pkgs,
namespace,
...
}:
let
cfg = config.aux.system;
cfg = config.${namespace};
nixos-operations-script = pkgs.writeShellScriptBin "nixos-operations-script" (
builtins.readFile ../../../../bin/nixos-operations-script.sh
@ -16,7 +17,7 @@ let
in
{
options = {
aux.system = {
${namespace} = {
retentionPeriod = lib.mkOption {
description = "How long to retain NixOS generations. Defaults to one month.";
type = lib.types.str;
@ -28,8 +29,11 @@ in
config = lib.mkMerge [
{
nix = {
# Use Lix in place of Nix
package = pkgs.lix;
# Ensure we can still build when secondary caches are unavailable
extraOptions = ''
# Ensure we can still build when secondary caches are unavailable
fallback = true
'';
@ -60,14 +64,14 @@ in
# Only allow these users to use Nix
allowed-users = with config.users.users; [
root.name
(lib.mkIf config.aux.system.users.aires.enable aires.name)
(lib.mkIf config.aux.system.users.gremlin.enable gremlin.name)
(lib.mkIf config.${namespace}.users.aires.enable aires.name)
(lib.mkIf config.${namespace}.users.gremlin.enable gremlin.name)
];
# Avoid signature verification messages when doing remote builds
trusted-users = with config.users.users; [
root.name
(lib.mkIf config.aux.system.users.aires.enable aires.name)
(lib.mkIf config.${namespace}.users.aires.enable aires.name)
];
};
@ -92,7 +96,7 @@ in
}
(lib.mkIf cfg.nixos-operations-script.enable {
# Enable and configure NOS
aux.system.packages = [ nixos-operations-script ];
${namespace}.packages = [ nixos-operations-script ];
environment.variables."FLAKE_DIR" = config.secrets.nixConfigFolder;
})
];

View file

@ -1,11 +1,16 @@
{ lib, config, ... }:
{
lib,
config,
namespace,
...
}:
let
cfg = config.aux.system.raid;
cfg = config.${namespace}.raid;
in
{
options = {
aux.system.raid = {
${namespace}.raid = {
enable = lib.mkEnableOption "Enables RAID support.";
storage = {
enable = lib.mkEnableOption "Enables support for the storage array.";
@ -28,7 +33,7 @@ in
config = lib.mkMerge [
(lib.mkIf cfg.enable { boot.swraid.enable = true; })
(lib.mkIf cfg.storage.enable {
aux.system.raid.enable = true;
${namespace}.raid.enable = true;
boot.swraid.mdadmConf = ''
ARRAY /dev/md/Sapana metadata=1.2 UUID=51076daf:efdb34dd:bce48342:3b549fcb
MAILADDR ${cfg.storage.mailAddr}

View file

@ -3,15 +3,16 @@
pkgs,
lib,
config,
namespace,
...
}:
let
cfg = config.aux.system.ui.audio;
cfg = config.${namespace}.ui.audio;
in
{
options = {
aux.system.ui.audio = {
${namespace}.ui.audio = {
enable = lib.mkEnableOption "Enables audio.";
enableLowLatency = lib.mkEnableOption "Enables low-latency audio (may cause crackling) per https://wiki.nixos.org/wiki/PipeWire#Low-latency_setup.";
};

View file

@ -1,15 +1,20 @@
# Enables the Budgie desktop environment.
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.ui.desktops.budgie;
cfg = config.${namespace}.ui.desktops.budgie;
in
{
options = {
aux.system.ui.desktops.budgie.enable = lib.mkEnableOption "Enables the Budgie desktop environment.";
${namespace}.ui.desktops.budgie.enable = lib.mkEnableOption "Enables the Budgie desktop environment.";
};
config = lib.mkIf cfg.enable {
aux.system.ui.desktops.enable = true;
${namespace}.ui.desktops.enable = true;
services.xserver = {
enable = true;

View file

@ -3,15 +3,16 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.ui.desktops;
cfg = config.${namespace}.ui.desktops;
in
{
options = {
aux.system.ui.desktops = {
${namespace}.ui.desktops = {
enable = lib.mkEnableOption "Enables base desktop environment support.";
xkb = lib.mkOption {
description = "The keyboard layout to use by default. Defaults to us.";
@ -25,7 +26,7 @@ in
};
config = lib.mkIf cfg.enable {
aux.system = {
${namespace} = {
bluetooth = {
enable = true;
experimental.enable = true;
@ -79,7 +80,7 @@ in
enable = true;
# Configure keymap in X11
xkb = config.aux.system.ui.desktops.xkb;
xkb = config.${namespace}.ui.desktops.xkb;
};
# Enable touchpad support (enabled by default in most desktop managers, buuuut just in case).

View file

@ -4,22 +4,23 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.ui.desktops.gnome;
cfg = config.${namespace}.ui.desktops.gnome;
in
{
options = {
aux.system.ui.desktops.gnome = {
${namespace}.ui.desktops.gnome = {
enable = lib.mkEnableOption "Enables the Gnome Desktop Environment.";
};
};
config = lib.mkIf cfg.enable {
aux.system.ui.desktops.enable = true;
${namespace}.ui.desktops.enable = true;
# Enable Gnome
services = {

View file

@ -1,15 +1,20 @@
# Enables the Hyprland desktop environment.
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.ui.desktops.hyprland;
cfg = config.${namespace}.ui.desktops.hyprland;
in
{
options = {
aux.system.ui.desktops.hyprland.enable = lib.mkEnableOption "Enables the Hyprland desktop environment.";
${namespace}.ui.desktops.hyprland.enable = lib.mkEnableOption "Enables the Hyprland desktop environment.";
};
config = lib.mkIf cfg.enable {
aux.system.ui.desktops.enable = true;
${namespace}.ui.desktops.enable = true;
programs.hyprland = {
enable = true;

View file

@ -3,22 +3,23 @@
pkgs,
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.ui.desktops.kde;
cfg = config.${namespace}.ui.desktops.kde;
in
{
options = {
aux.system.ui.desktops.kde = {
${namespace}.ui.desktops.kde = {
enable = lib.mkEnableOption "Enables the KDE Desktop Environment.";
useX11 = lib.mkEnableOption "Uses X11 instead of Wayland.";
};
};
config = lib.mkIf cfg.enable {
aux.system.ui.desktops.enable = true;
${namespace}.ui.desktops.enable = true;
programs.dconf.enable = true;

View file

@ -1,15 +1,20 @@
# Enables the XFCE desktop environment.
{ config, lib, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.aux.system.ui.desktops.xfce;
cfg = config.${namespace}.ui.desktops.xfce;
in
{
options = {
aux.system.ui.desktops.xfce.enable = lib.mkEnableOption "Enables the XFCE desktop environment.";
${namespace}.ui.desktops.xfce.enable = lib.mkEnableOption "Enables the XFCE desktop environment.";
};
config = lib.mkIf cfg.enable {
aux.system.ui.desktops.enable = true;
${namespace}.ui.desktops.enable = true;
services.xserver = {
enable = true;

View file

@ -2,16 +2,17 @@
pkgs,
config,
lib,
namespace,
...
}:
# Flatpak support and options
let
cfg = config.aux.system.ui.flatpak;
cfg = config.${namespace}.ui.flatpak;
in
{
options = {
aux.system.ui.flatpak = {
${namespace}.ui.flatpak = {
enable = lib.mkEnableOption { description = "Enables Flatpak support."; };
packages = lib.mkOption {
description = "Flatpak packages to install.";
@ -72,8 +73,8 @@ in
aggregatedIcons = pkgs.buildEnv {
name = "system-icons";
paths = with pkgs; [
(lib.mkIf config.aux.system.ui.desktops.gnome.enable gnome-themes-extra)
(lib.mkIf config.aux.system.ui.desktops.kde.enable kdePackages.breeze-icons)
(lib.mkIf config.${namespace}.ui.desktops.gnome.enable gnome-themes-extra)
(lib.mkIf config.${namespace}.ui.desktops.kde.enable kdePackages.breeze-icons)
papirus-icon-theme
qogir-icon-theme
];

View file

@ -1,16 +1,17 @@
{
lib,
config,
namespace,
...
}:
# Define 'aires'
let
cfg = config.aux.system.users.aires;
cfg = config.${namespace}.users.aires;
in
{
options = {
aux.system.users.aires = {
${namespace}.users.aires = {
enable = lib.mkEnableOption "Enables aires user account";
autologin = lib.mkEnableOption "Automatically logs aires in on boot";
};
@ -66,7 +67,7 @@ in
userName = config.secrets.users.aires.firstName;
userEmail = config.secrets.users.aires.email;
extraConfig = {
core.editor = config.aux.system.editor;
core.editor = config.${namespace}.editor;
merge.conflictStyle = "zdiff3";
pull.ff = "only";
push.autoSetupRemote = "true";

View file

@ -1,5 +1,4 @@
{ lib, osConfig, ... }:
{
_: {
# NOTE: Allegedly prevents random Gnome crashes. But really, it just prevents me from logging in.
# See https://www.reddit.com/r/archlinux/comments/1erbika/fyi_if_you_experience_crashes_on_gnome_on_amd/
/*
@ -9,7 +8,7 @@
*/
# Additional Gnome configurations via home-manager.
dconf.settings = lib.mkIf osConfig.aux.system.ui.desktops.gnome.enable {
dconf.settings = {
"org/gnome/mutter" = {
edge-tiling = true;
workspaces-only-on-primary = false;

View file

@ -2,16 +2,17 @@
pkgs,
lib,
config,
namespace,
...
}:
# Define 'gremlin' user
let
cfg = config.aux.system.users.gremlin;
cfg = config.${namespace}.users.gremlin;
in
{
options = {
aux.system.users.gremlin = {
${namespace}.users.gremlin = {
enable = lib.mkEnableOption "Enables gremlin user account";
};
};
@ -35,7 +36,7 @@ in
};
# Install gremlin-specific flatpaks
aux.system.ui.flatpak.packages = [
${namespace}.ui.flatpak.packages = [
"com.google.Chrome"
"com.slack.Slack"
];

View file

@ -1,13 +1,18 @@
{ lib, config, ... }:
{
lib,
config,
namespace,
...
}:
# Define user for managing media files
let
cfg = config.aux.system.users.media;
cfg = config.${namespace}.users.media;
in
{
options = {
aux.system.users.media = {
${namespace}.users.media = {
enable = lib.mkEnableOption "Enables media user account";
};
};

View file

@ -1,4 +1,4 @@
{ ... }:
{ namespace, ... }:
{
home-manager.users.root = {
imports = [ ../common/home-manager/zsh.nix ];

View file

@ -2,6 +2,7 @@
config,
pkgs,
lib,
namespace,
...
}:
let
@ -24,7 +25,7 @@ in
};
};
aux.system = {
${namespace} = {
bootloader.enable = false; # Bootloader configured in hardware-configuration.nix
packages = with pkgs; [
libraspberrypi

View file

@ -1,6 +1,11 @@
# Raspberry Pi 4B
# See https://wiki.nixos.org/wiki/NixOS_on_ARM/Raspberry_Pi_4
{ lib, modulesPath, ... }:
{
lib,
modulesPath,
namespace,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

View file

@ -4,6 +4,7 @@
home-manager,
lib,
config,
namespace,
...
}:
let
@ -22,8 +23,7 @@ in
networking.hostName = hostName;
# Configure the system here.
aux.system = {
role = "workstation";
config.${namespace} = {
apps = {
# Define applications here
};

View file

@ -29,7 +29,7 @@ in
};
# Configure the main filesystem.
aux.system.filesystem = {
${namespace}.filesystem = {
enable = true;
partitions = {
boot = "/dev/disk/by-uuid/${bootUUID}";

View file

@ -2,6 +2,7 @@
config,
lib,
pkgs,
namespace,
...
}:
@ -32,7 +33,7 @@ let
*/
serviceList = lib.attrsets.collect (
x: x != "acme" && (lib.attrsets.matchAttrs { enable = true; } x)
) config.aux.system.services;
) config.${namespace}.services;
subdomains = builtins.catAttrs "url" serviceList;
in
@ -75,7 +76,7 @@ in
Type = "oneshot";
User = "aires";
};
path = config.aux.system.corePackages;
path = config.${namespace}.corePackages;
script = ''
/run/current-system/sw/bin/nixos-operations-script --operation build --hostname Khanda --flake ${config.secrets.nixConfigFolder}
'';
@ -92,7 +93,7 @@ in
};
# Configure the system.
aux.system = {
${namespace} = {
# Enable Secure Boot support.
bootloader = {
enable = true;

View file

@ -1,5 +1,5 @@
# Minisforum UM340
{ modulesPath, ... }:
{ modulesPath, namespace, ... }:
let
bootUUID = "D2E7-FE8F"; # The UUID of the boot partition.
luksUUID = "7b9c756c-ba9d-43fc-b935-7c77a70f5f1b"; # The UUID of the locked LUKS partition.
@ -30,7 +30,7 @@ in
};
# Configure the main filesystem.
aux.system.filesystem = {
${namespace}.filesystem = {
enable = true;
partitions = {
boot = "/dev/disk/by-uuid/${bootUUID}";

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, namespace, ... }:
let
# Do not change this value! This tracks when NixOS was installed on your system.
@ -13,7 +13,7 @@ in
###*** Configure your system below this line. ***###
# Configure the system.
aux.system = {
${namespace} = {
apps = {
development.enable = true;
media.enable = true;

View file

@ -4,6 +4,7 @@
lib,
pkgs,
modulesPath,
namespace,
...
}:
let
@ -56,7 +57,7 @@ in
};
# Configure the main filesystem.
aux.system.filesystem = {
${namespace}.filesystem = {
enable = true;
partitions = {
boot = "/dev/disk/by-uuid/${bootUUID}";

View file

@ -1,4 +1,9 @@
{ config, pkgs, ... }:
{
config,
pkgs,
namespace,
...
}:
let
# Do not change this value! This tracks when NixOS was installed on your system.
stateVersion = "24.05";
@ -14,9 +19,9 @@ in
system.stateVersion = stateVersion;
networking.hostName = hostName;
custom-fonts.Freight-Pro.enable = config.aux.system.users.gremlin.enable;
custom-fonts.Freight-Pro.enable = config.${namespace}.users.gremlin.enable;
aux.system = {
${namespace} = {
apps = {
development.enable = true;
gaming.enable = true;

View file

@ -1,5 +1,10 @@
# Lenovo Legion Slim 7 Gen 7 AMD (16ARHA7)
{ pkgs, modulesPath, ... }:
{
pkgs,
modulesPath,
namespace,
...
}:
let
bootUUID = "AFCB-D880"; # The UUID of the boot partition.
luksUUID = "bcf67e34-339e-40b9-8ffd-bec8f7f55248"; # The UUID of the locked LUKS partition.
@ -28,7 +33,7 @@ in
};
# Configure the main filesystem.
aux.system.filesystem = {
${namespace}.filesystem = {
enable = true;
partitions = {
boot = "/dev/disk/by-uuid/${bootUUID}";