difftreelog
refactor drop long deprecated configs
in: trunk
5 files changed
modules/meta.nixdiffbeforeafterbothno changes
modules/module-list.nixdiffbeforeafterboth--- a/modules/module-list.nix
+++ b/modules/module-list.nix
@@ -2,7 +2,6 @@
./assertions.nix
./fleetLib.nix
./hosts.nix
- ./meta.nix
./nixos.nix
./nixpkgs.nix
./secrets.nix
modules/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;
}
modules/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";
modules/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")
- ];
};
};
};