aboutsummaryrefslogtreecommitdiffstats
path: root/flake/nixosConfigurations
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-16 16:42:51 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-16 16:42:51 +0200
commit8bed94a028a88ed03354cba62a0cccaab6dcb61e (patch)
tree0360a64ea1bfc9c285d5ace0bf27f6f0579e905a /flake/nixosConfigurations
parentflake: Rename `nixVim` input to `nixvim` (diff)
downloadnixos-config-8bed94a028a88ed03354cba62a0cccaab6dcb61e.zip
flake: Pack arguments in attribute sets
This avoids having to change 3+ files, if you need to add a new argument.
Diffstat (limited to 'flake/nixosConfigurations')
-rw-r--r--flake/nixosConfigurations/default.nix95
1 files changed, 0 insertions, 95 deletions
diff --git a/flake/nixosConfigurations/default.nix b/flake/nixosConfigurations/default.nix
deleted file mode 100644
index c4fa2f40..00000000
--- a/flake/nixosConfigurations/default.nix
+++ /dev/null
@@ -1,95 +0,0 @@
-# nixos-config - My current NixOS configuration
-#
-# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
-# SPDX-License-Identifier: GPL-3.0-or-later
-#
-# This file is part of my nixos-config.
-#
-# You should have received a copy of the License along with this program.
-# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
-{
- self,
- system,
- pkgsStable,
- myPkgs,
- nixpkgs_as_input,
- nixpkgs_open_prs,
- # my things
- shell_library,
- sysLib,
- nixLib,
- baseLib,
- templates,
- # modules
- home-manager,
- nixVim,
- nixos-generators,
- impermanence,
- agenix,
- ragenix,
- serverphone,
- disko,
- lanzaboote,
- nix-index-database,
- arkenfox-nixos,
- # bins
- qmk_firmware,
-}: let
- modules = [
- agenix.nixosModules.default
- disko.nixosModules.default
- home-manager.nixosModules.home-manager
- impermanence.nixosModules.impermanence
- lanzaboote.nixosModules.lanzaboote
- serverphone.nixosModules.default
-
- ../../modules
- ../../modules/common
- ];
-
- specialArgs = {
- inherit
- # extra package sources
- nixpkgs_open_prs
- pkgsStable
- myPkgs
- shell_library
- sysLib
- nixLib
- baseLib
- # extra information
- system
- # modules
- impermanence
- nix-index-database
- nixVim
- arkenfox-nixos
- # nix registry
- nixpkgs_as_input
- self
- templates
- # bins
- # TODO: Integrate these into `pkgs/by-name` <2024-05-22>
- qmk_firmware
- serverphone
- ;
- };
-
- generateHost = name: {
- name = "${name}";
- value = nixpkgs_as_input.lib.nixosSystem {
- inherit specialArgs;
- modules =
- [
- ../../hosts/${name}
- ]
- ++ modules;
- };
- };
-
- # FIXME: These need to stay in this position for the install script
- hosts = ["tiamat" "apzu"];
-
- generatedHosts = builtins.listToAttrs (builtins.map generateHost hosts);
-in
- generatedHosts