git.delta.rocks / jrsonnet / refs/commits / c653e89d0859

difftreelog

refactor drop long deprecated configs

vttkltonYaroslav Bolyukin2026-01-22parent: #fca1ee1.patch.diff
in: trunk

5 files changed

deletedmodules/meta.nixdiffbeforeafterboth
--- a/modules/meta.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{ lib, ... }:
-let
-  inherit (lib.modules) mkRemovedOptionModule;
-in
-{
-  imports = [
-    (mkRemovedOptionModule [ "fleetModules" ] "replaced with imports.")
-  ];
-}
modifiedmodules/module-list.nixdiffbeforeafterboth
after · modules/module-list.nix
1[2  ./assertions.nix3  ./fleetLib.nix4  ./hosts.nix5  ./nixos.nix6  ./nixpkgs.nix7  ./secrets.nix8]
modifiedmodules/nixos.nixdiffbeforeafterboth
--- a/modules/nixos.nix
+++ b/modules/nixos.nix
@@ -11,7 +11,6 @@
   inherit (lib.attrsets) mapAttrs;
   inherit (lib.options) mkOption;
   inherit (lib.types) deferredModule unspecified;
-  inherit (lib.modules) mkRemovedOptionModule;
   inherit (lib.strings) escapeNixIdentifier;
   inherit (fleetLib.options) mkHostsOption;
 
@@ -55,9 +54,6 @@
         };
       };
       config = {
-        # imports = [
-        #   (mkRemovedOptionModule ["nixosModules"] "replaced with hosts.*.nixos.imports.")
-        # ];
         nixos = let 
           inherit (hostArgs.config) system;
         in {
@@ -94,8 +90,5 @@
       };
     });
   };
-  imports = [
-    (mkRemovedOptionModule [ "nixosModules" ] "replaced with nixos.imports.")
-  ];
   config.nixos.imports = import ./nixos/module-list.nix;
 }
modifiedmodules/nixos/meta.nixdiffbeforeafterboth
--- a/modules/nixos/meta.nix
+++ b/modules/nixos/meta.nix
@@ -1,17 +1,4 @@
-{ lib, ... }:
-let
-  inherit (lib.modules) mkRemovedOptionModule;
-in
 {
-  imports = [
-    (mkRemovedOptionModule [ "tags" ]
-      "tags are now defined at the host level, not the nixos system level for fast filtering without evaluating unnecessary hosts."
-    )
-    (mkRemovedOptionModule [
-      "network"
-    ] "network is now defined at the host level, not the nixos system level")
-  ];
-
   # Version of environment (fleet scripts such as rollback) already installed on the host
   config = {
     environment.etc.FLEET_HOST.text = "1";
modifiedmodules/nixpkgs.nixdiffbeforeafterboth
--- a/modules/nixpkgs.nix
+++ b/modules/nixpkgs.nix
@@ -7,7 +7,6 @@
 let
   inherit (lib.options) mkOption literalExpression;
   inherit (lib.types) path;
-  inherit (lib.modules) mkRemovedOptionModule;
   inherit (fleetLib.options) mkHostsOption;
   inherit (fleetLib.types) listOfOverlay;
 
@@ -43,18 +42,9 @@
         default = config.nixpkgs.buildUsing;
         defaultText = literalExpression "config.nixpkgs.buildUsing";
       };
-      # imports = [
-      # 	(mkRemovedOptionModule ["nixpkgs" "overlays"] "this option needs to be specified at nixosModules level")
-      # ];
       config.nixos = {
         inherit _file;
         nixpkgs.overlays = config.nixpkgs.overlays;
-        imports = [
-          (mkRemovedOptionModule [
-            "nixpkgs"
-            "buildUsing"
-          ] "this option should be specified at the host level, not the nixosModules level")
-        ];
       };
     };
   };