summaryrefslogtreecommitdiffstats
path: root/flake/packages/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake/packages/default.nix')
-rw-r--r--flake/packages/default.nix97
1 files changed, 0 insertions, 97 deletions
diff --git a/flake/packages/default.nix b/flake/packages/default.nix
deleted file mode 100644
index 9c67eda3..00000000
--- a/flake/packages/default.nix
+++ /dev/null
@@ -1,97 +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>.
-{
- pkgs,
- self,
- myPkgs,
- ...
-}: let
- inherit (pkgs) lib;
-
- run_test_description = pkgs.callPackage ../../tests/infrastructure/run.nix {};
-
- nvim =
- builtins.mapAttrs (
- name: value: let
- config = value.config.home-manager.users.soispha.programs.nixvim;
-
- # NOTE: This is copied from `nixvim`, and could be achieved by setting
- # `config.wrapRc` to `true`. But I have yet to find a way to set this in this
- # context, but not in the general context. <2024-11-09>
- # NOTE: I'm not sure why we need `nvimPackage` instead of just the `package`
- # attribute here, but the bare `package` attribute does not provide a `override`
- # function. <2025-02-02>
- wrapped = config.build.nvimPackage.override (prev: {
- wrapperArgs =
- (
- if lib.isString prev.wrapperArgs
- then prev.wrapperArgs
- else lib.escapeShellArgs prev.wrapperArgs
- )
- + " "
- + ''--add-flags -u --add-flags "${config.build.initFile}"'';
- wrapRc = false;
- });
- in
- wrapped
- )
- self.nixosConfigurations;
-
- output_neovim = lib.attrsets.mapAttrs' (name: value: lib.attrsets.nameValuePair "nvim_${name}" value) nvim;
-
- myPkgsFlat =
- builtins.listToAttrs
- # Filter out the `override` and `overrideDerivation` functions
- (builtins.filter ({
- name,
- value,
- }:
- lib.attrsets.isDerivation value) (lib.lists.flatten
- (
- lib.attrsets.mapAttrsToList (name: value:
- if lib.attrsets.isDerivation value
- then [
- {
- inherit name value;
- }
- ]
- else
- lib.attrsets.mapAttrsToList (name: value: {
- inherit name value;
- })
- value)
- myPkgs
- )));
-in
- {
- # install-iso = nixos-generators.nixosGenerate {
- # system = "x86_64-linux";
- # specialArgs = defaultSpecialArgs;
- # modules = [
- # ../../hosts/marduk
- # ];
- # format = "install-iso";
- # };
-
- # gpg-iso = nixos-generators.nixosGenerate {
- # system = "x86_64-linux";
- # specialArgs = defaultSpecialArgs;
- # modules =
- # [
- # ../../hosts/isimud
- # ]
- # ++ defaultModules;
- # format = "iso";
- # };
- nvim = nvim.tiamat;
- inherit run_test_description;
- }
- // output_neovim
- // myPkgsFlat