Skip to content

Commit

Permalink
fix: violently silence the wrong nixos-rebuild reflexes
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Nov 7, 2022
1 parent aaf0c53 commit 822a06f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions pasteurize.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@
};
};

noLegacyNixosModule = {
environment.etc."nixos/configuration.nix".text = ''
throw '''
This machine is not managed by nixos-rebuild, but by colmena.
'''
'';
};

combCheckModule = let
erase = optionName: {options, ...}: let
opt = l.getAttrFromPath optionName options;
Expand Down Expand Up @@ -133,7 +125,11 @@
(l.mapAttrs (machine:
checkAndTransformConfigFor user machine (
asserted: {
imports = [noLegacyNixosModule];
environment.etc."nixos/configuration.nix".text = ''
throw '''
This machine is not managed by nixos-rebuild, but by colmena.
'''
'';
nixpkgs = {
inherit (asserted.bee) system pkgs;
inherit (asserted.bee.pkgs) config; # nixos modules don't load this
Expand Down

0 comments on commit 822a06f

Please sign in to comment.