Pinetab-v: rope in config
This commit is contained in:
24
flake.nix
24
flake.nix
@@ -1,6 +1,8 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||
nixos-hardware.url = "github:CyborgPotato/nixos-hardware/master";
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
me-emacs.url = "git+https://git.syzygial.cc/Syzygial/EmacsConfig.git";
|
||||
me-emacs.inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -10,7 +12,7 @@
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, sops-nix, me-emacs, nix-darwin, home-manager }@attrs: let
|
||||
outputs = { self, nixpkgs, nixpkgs-stable, nixos-hardware, sops-nix, me-emacs, nix-darwin, home-manager }@attrs: let
|
||||
hydraGitea = import ./overlays/hydra.nix;
|
||||
nvidiaContainer = import ./overlays/nvidiacontainer.nix nixpkgs;
|
||||
me-emacs-overlay = me-emacs.overlays.default;
|
||||
@@ -48,6 +50,22 @@
|
||||
sops-nix.nixosModules.sops
|
||||
];
|
||||
};
|
||||
ptv = let
|
||||
patch-8gb = {
|
||||
hardware.deviceTree.overlays = [{
|
||||
name = "8GB-patch";
|
||||
dtsFile = "${nixos-hardware}/pine64/pinetab-v/star64-8GB.dts";
|
||||
}];
|
||||
};
|
||||
in nixpkgs-stable.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inputs = attrs;
|
||||
};
|
||||
modules = [
|
||||
./machines/ptv/configuration.nix
|
||||
patch-8gb
|
||||
];
|
||||
};
|
||||
};
|
||||
darwinConfigurations."UniverseAir" = nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
@@ -77,5 +95,9 @@
|
||||
inputs = attrs;
|
||||
};
|
||||
};
|
||||
|
||||
hydraJobs = {
|
||||
PinetabV = self.nixosConfigurations.ptv.config.system.build.toplevel;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user