[NixOS] Remove flake.nix pi setup

This commit is contained in:
Ivan Malison 2021-08-20 15:38:03 -06:00
parent c14de26be4
commit 5b9febb4d8
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -51,11 +51,6 @@
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.imalison = import ./home-manager.nix; home-manager.users.imalison = import ./home-manager.nix;
}); });
piHardware = ({ ... }: {
imports = [
nixos-hardware.nixosModules.raspberry-pi-4
];
});
mkNixosConfig = args@{ system ? "x86_64-linux", baseModules ? [ forAll ], modules ? [], specialArgs ? {}, ... }: mkNixosConfig = args@{ system ? "x86_64-linux", baseModules ? [ forAll ], modules ? [], specialArgs ? {}, ... }:
nixpkgs.lib.nixosSystem (args // { nixpkgs.lib.nixosSystem (args // {
inherit system; inherit system;
@ -76,11 +71,11 @@
}; };
biskcomp = mkNixosConfig { biskcomp = mkNixosConfig {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ forAll piHardware ./machines/biskcomp.nix ]; modules = [ ./machines/biskcomp.nix ];
}; };
air-gapped-pi = mkNixosConfig { air-gapped-pi = mkNixosConfig {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ forAll piHardware ./machines/air-gapped-pi.nix ]; modules = [ ./machines/air-gapped-pi.nix ];
}; };
}; };
}; };