start generator work

This commit is contained in:
Noah Masur
2022-09-20 04:01:45 +00:00
parent 6281e32275
commit 50a538c78e
3 changed files with 73 additions and 3 deletions

View File

@ -32,9 +32,15 @@
flake = false;
};
# Used to generate NixOS images for other platforms
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, darwin, wsl, home-manager, nur, wallpapers }:
outputs = { self, nixpkgs, ... }@inputs:
let
@ -57,14 +63,14 @@
in {
nixosConfigurations = {
nixosConfigurations = with inputs; {
desktop = import ./hosts/desktop {
inherit nixpkgs home-manager nur globals wallpapers;
};
wsl = import ./hosts/wsl { inherit nixpkgs wsl home-manager globals; };
};
darwinConfigurations = {
darwinConfigurations = with inputs; {
macbook = import ./hosts/macbook {
inherit nixpkgs darwin home-manager nur globals;
};
@ -110,6 +116,14 @@
});
# Package servers into images with a generator
packages.x86_64-linux = with inputs; {
aws = import ./generators/aws.nix {
inherit nixpkgs nixos-generators home-manager globals;
system = "x86_64-linux";
};
};
# Templates for starting other projects quickly
templates = rec {
default = basic;