Do not assign values to config.

This commit is contained in:
Kevin Baensch 2025-07-18 14:47:20 +02:00
parent 019894965a
commit eaf3bf45c5
Signed by: derped
SSH key fingerprint: SHA256:8/FSu/lmp3c1Z17Gml06JRIEHtDjhwdd7g6pBaHQWBc
19 changed files with 28 additions and 27 deletions

View file

@ -159,7 +159,7 @@ The following instructions are for a fresh NixOS installation.
_: _:
{ {
config.machine = { machine = {
allowUnfree = true; allowUnfree = true;
hostName = "<hostname>"; hostName = "<hostname>";
users = [ users = [

View file

@ -2,7 +2,7 @@
... ...
}: }:
{ {
config.machine = { machine = {
allowUnfree = true; allowUnfree = true;
hostName = "Lilim"; hostName = "Lilim";
networkD = { networkD = {

View file

@ -3,7 +3,7 @@
}: }:
{ {
config.machine = { machine = {
allowUnfree = true; allowUnfree = true;
hostName = "Marid"; hostName = "Marid";
users = [ users = [

View file

@ -1,7 +1,7 @@
_: _:
{ {
config.machine = rec { machine = rec {
hostName = "Ophanim"; hostName = "Ophanim";
domain = "ophanim.de"; domain = "ophanim.de";
users = [ users = [

View file

@ -3,7 +3,7 @@
imports = [ imports = [
../../options/copySysConf.nix ../../options/copySysConf.nix
]; ];
config.machine = { machine = {
allowUnfree = true; allowUnfree = true;
hostName = "Sheol"; hostName = "Sheol";
networkD = { networkD = {

View file

@ -4,7 +4,7 @@
}: }:
{ {
config.machine.pkgsets.ansible.pkgs = with pkgs; [ machine.pkgsets.ansible.pkgs = with pkgs; [
ansible ansible
ansible-builder ansible-builder
ansible-language-server ansible-language-server

View file

@ -1,11 +1,11 @@
# Programms I'm likely to want on every machine and/or may execute as root # Programms I'm likely to want on every machine and/or may execute as root
{ {
config,
pkgs, pkgs,
... ...
}: }:
{ {
config.machine.pkgsets.base.pkgs = with pkgs; [ machine.pkgsets.base.pkgs = with pkgs; [
age age
sops sops
bat bat

View file

@ -3,7 +3,7 @@
... ...
}: }:
{ {
config.machine.pkgsets.cpp.pkgs = with pkgs; [ machine.pkgsets.cpp.pkgs = with pkgs; [
bear bear
clang clang
cmake cmake

View file

@ -4,7 +4,7 @@
... ...
}: }:
{ {
config.machine.pkgsets.dict.pkgs = with pkgs; [ machine.pkgsets.dict.pkgs = with pkgs; [
translate-shell translate-shell
(hunspellWithDicts ( (hunspellWithDicts (
with pkgs.hunspellDicts; with pkgs.hunspellDicts;

View file

@ -4,7 +4,7 @@
... ...
}: }:
{ {
config.machine.pkgsets.extra.pkgs = with pkgs; [ machine.pkgsets.extra.pkgs = with pkgs; [
alsa-utils alsa-utils
binutils-unwrapped binutils-unwrapped
git-lfs git-lfs

View file

@ -4,7 +4,7 @@
... ...
}: }:
{ {
config.machine.pkgsets.haskell-tools.pkgs = with pkgs; [ machine.pkgsets.haskell-tools.pkgs = with pkgs; [
cabal-install cabal-install
hlint hlint
]; # ghcid ]; # ghcid

View file

@ -6,7 +6,7 @@
}: }:
with lib; with lib;
{ {
config.machine.pkgsets.latex.pkgs = with pkgs; [ machine.pkgsets.latex.pkgs = with pkgs; [
texlive.combined.scheme-full texlive.combined.scheme-full
texlab texlab
]; ];

View file

@ -3,7 +3,7 @@
... ...
}: }:
{ {
config.machine.pkgsets.mail_utils.pkgs = with pkgs; [ machine.pkgsets.mail_utils.pkgs = with pkgs; [
aerc aerc
abook abook
pizauth pizauth

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
config.machine.pkgsets.nodejs.pkgs = machine.pkgsets.nodejs.pkgs =
(with pkgs; [ (with pkgs; [
nodejs nodejs
yarn yarn

View file

@ -6,10 +6,12 @@
... ...
}: }:
{ {
config.machine.pkgsets.php.pkgwrap = fn.pkgFilter config.machine.pkgsets.php.pkgs; machine.pkgsets.php = {
config.machine.pkgsets.php.pkgs = pkgwrap = fn.pkgFilter config.machine.pkgsets.php.pkgs;
(with pkgs.php82Packages; [ pkgs =
composer (with pkgs.php82Packages; [
]) composer
++ (with pkgs; [ php82 ]); ])
++ (with pkgs; [ php82 ]);
};
} }

View file

@ -1,16 +1,15 @@
{ {
config, config,
lib, lib,
fn,
pkgs, pkgs,
... ...
}: }:
with lib; with lib;
{ {
config.machine.pkgsets.python3.pkgwrap = pkgs.python3.withPackages ( machine.pkgsets.python3.pkgwrap = pkgs.python3.withPackages (
ps: (fn.pkgFilter config.machine.pkgsets.python3.pkgs) ps: (fn.pkgFilter config.machine.pkgsets.python3.pkgs)
); );
config.machine.pkgsets.python3.pkgs = with pkgs.python3Packages; [ machine.pkgsets.python3.pkgs = with pkgs.python3Packages; [
bpython bpython
flake8 flake8
genanki genanki

View file

@ -4,7 +4,7 @@
... ...
}: }:
{ {
config.machine.pkgsets.server.pkgs = with pkgs; [ machine.pkgsets.server.pkgs = with pkgs; [
audit audit
certbot certbot
php php

View file

@ -6,7 +6,7 @@
}: }:
with lib; with lib;
{ {
config.machine.pkgsets.tracking.pkgs = with pkgs; [ machine.pkgsets.tracking.pkgs = with pkgs; [
aw-qt aw-qt
aw-server-rust aw-server-rust
aw-watcher-afk aw-watcher-afk

View file

@ -4,7 +4,7 @@
}: }:
{ {
config.machine.pkgsets.xpkgs.pkgs = with pkgs; [ machine.pkgsets.xpkgs.pkgs = with pkgs; [
acpilight acpilight
dconf dconf
ghostty ghostty