Merge branch 'aws-nix-build'

This commit is contained in:
Noah Masur
2022-10-01 15:26:01 +00:00
6 changed files with 455 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;
};
@ -111,6 +117,14 @@
});
# Package servers into images with a generator
packages.x86_64-linux = with inputs; {
aws = import ./generators/aws {
inherit nixpkgs nixos-generators home-manager globals;
system = "x86_64-linux";
};
};
# Templates for starting other projects quickly
templates = rec {
default = basic;