-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
//hive/darwinConfigurations/darwin-test: init
Also some code splitting of hosts.test.meta
- Loading branch information
1 parent
8f64d5f
commit fcda468
Showing
8 changed files
with
165 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,93 +42,92 @@ | |
inputs = i.all; | ||
inherit systems; | ||
cellsFrom = std.incl ./nix cells; | ||
cellBlocks = with std.blockTypes; | ||
[ | ||
#(inputs.std.blockTypes.functions "blockTypes") | ||
# --- omnibus unused pops --- | ||
# allData, darwinModules, darwinProfiles, devshellModules, | ||
# example, flake, flake-parts, hive, load, microvms, | ||
# overlays, self, srvos, std, systemManagerProfiles | ||
# --- flake.outputs --- | ||
# checks, hydraJobs, nixConfig, templates | ||
(functions "lib") | ||
(functions "overlays") | ||
(files "templates") | ||
(installables "packages" { ci.build = true; }) | ||
|
||
# --- std missing blockTypes --- | ||
(arion "arion") | ||
(files "files") | ||
(kubectl "kubectl") | ||
(microvms "microvms") | ||
(namaka "namaka") | ||
(nixostests "nixosTests") | ||
(nomad "nomad") | ||
(nvfetcher "nvfetcher") | ||
(pkgs "pkgs") | ||
(terra "terra" "[email protected]:Lehmanator/nix-configs.git") | ||
|
||
# --- config types --- | ||
inputs.hive.blockTypes.colmenaConfigurations | ||
|
||
(functions "devshellModules") | ||
(functions "devshellProfiles") | ||
(functions "devshellSuites") | ||
|
||
inputs.hive.blockTypes.diskoConfigurations | ||
(functions "diskoProfiles") | ||
(functions "diskoSuites") | ||
|
||
(functions "flakeModules") | ||
(functions "flakeProfiles") | ||
(functions "flakeSuites") | ||
|
||
(functions "hardwareConfigurations") | ||
(functions "hardwareModules") | ||
(functions "hardwareProfiles") | ||
(functions "hardwareSuites") | ||
|
||
inputs.hive.blockTypes.homeConfigurations | ||
(functions "homeModules") | ||
(functions "homeProfiles") | ||
(functions "homeSuites") | ||
(functions "userProfiles") | ||
|
||
inputs.hive.blockTypes.nixosConfigurations | ||
(functions "nixosModules") | ||
(functions "nixosProfiles") | ||
(functions "nixosSuites") | ||
|
||
(functions "robotnixConfigurations") | ||
(functions "robotnixModules") | ||
(functions "robotnixProfiles") | ||
(functions "robotnixSuites") | ||
|
||
(functions "systemManagerConfigurations") | ||
(functions "systemManagerModules") | ||
(functions "systemManagerProfiles") | ||
(functions "systemManagerSuites") | ||
|
||
(functions "termuxConfigurations") | ||
(functions "termuxModules") | ||
(functions "termuxProfiles") | ||
(functions "termuxSuites") | ||
|
||
(functions "vimConfigurations") | ||
(functions "vimModules") | ||
(functions "vimProfiles") | ||
(functions "vimSuites") | ||
|
||
(functions "wslConfigurations") | ||
(functions "wslModules") | ||
(functions "wslProfiles") | ||
(functions "wslSuites") | ||
] ++ l.optionals (builtins.elem "aarch64-darwin" systems) [ | ||
inputs.hive.blockTypes.darwinConfigurations | ||
(std.blockTypes.functions "darwinModules") | ||
(std.blockTypes.functions "darwinProfiles") | ||
(std.blockTypes.functions "darwinSuites") | ||
]; | ||
cellBlocks = with std.blockTypes; [ | ||
#(inputs.std.blockTypes.functions "blockTypes") | ||
# --- omnibus unused pops --- | ||
# allData, darwinModules, darwinProfiles, devshellModules, | ||
# example, flake, flake-parts, hive, load, microvms, | ||
# overlays, self, srvos, std, systemManagerProfiles | ||
# --- flake.outputs --- | ||
# checks, hydraJobs, nixConfig, templates | ||
(functions "lib") | ||
(functions "overlays") | ||
(files "templates") | ||
(installables "packages" { ci.build = true; }) | ||
|
||
# --- std missing blockTypes --- | ||
(arion "arion") | ||
(files "files") | ||
(kubectl "kubectl") | ||
(microvms "microvms") | ||
(namaka "namaka") | ||
(nixostests "nixosTests") | ||
(nomad "nomad") | ||
(nvfetcher "nvfetcher") | ||
(pkgs "pkgs") | ||
(terra "terra" "[email protected]:Lehmanator/nix-configs.git") | ||
|
||
# --- config types --- | ||
inputs.hive.blockTypes.colmenaConfigurations | ||
|
||
(functions "devshellModules") | ||
(functions "devshellProfiles") | ||
(functions "devshellSuites") | ||
|
||
inputs.hive.blockTypes.diskoConfigurations | ||
(functions "diskoProfiles") | ||
(functions "diskoSuites") | ||
|
||
(functions "flakeModules") | ||
(functions "flakeProfiles") | ||
(functions "flakeSuites") | ||
|
||
(functions "hardwareConfigurations") | ||
(functions "hardwareModules") | ||
(functions "hardwareProfiles") | ||
(functions "hardwareSuites") | ||
|
||
inputs.hive.blockTypes.homeConfigurations | ||
(functions "homeModules") | ||
(functions "homeProfiles") | ||
(functions "homeSuites") | ||
(functions "userProfiles") | ||
|
||
inputs.hive.blockTypes.nixosConfigurations | ||
(functions "nixosModules") | ||
(functions "nixosProfiles") | ||
(functions "nixosSuites") | ||
|
||
(functions "robotnixConfigurations") | ||
(functions "robotnixModules") | ||
(functions "robotnixProfiles") | ||
(functions "robotnixSuites") | ||
|
||
(functions "systemManagerConfigurations") | ||
(functions "systemManagerModules") | ||
(functions "systemManagerProfiles") | ||
(functions "systemManagerSuites") | ||
|
||
(functions "termuxConfigurations") | ||
(functions "termuxModules") | ||
(functions "termuxProfiles") | ||
(functions "termuxSuites") | ||
|
||
(functions "vimConfigurations") | ||
(functions "vimModules") | ||
(functions "vimProfiles") | ||
(functions "vimSuites") | ||
|
||
(functions "wslConfigurations") | ||
(functions "wslModules") | ||
(functions "wslProfiles") | ||
(functions "wslSuites") | ||
#] ++ l.optionals (builtins.elem "aarch64-darwin" systems) [ | ||
inputs.hive.blockTypes.darwinConfigurations | ||
(std.blockTypes.functions "darwinModules") | ||
(std.blockTypes.functions "darwinProfiles") | ||
(std.blockTypes.functions "darwinSuites") | ||
]; | ||
nixpkgsConfig = { | ||
allowUnfree = true; | ||
allowUnsupportedSystem = false; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ inputs, cell, super, }: { | ||
inherit (super.meta.darwinConfiguration) bee; | ||
home = rec { | ||
stateVersion = "24.05"; | ||
username = "sam"; | ||
homeDirectory = "/home/${username}"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ self, inputs, cell, ... }@args: | ||
#builtins.trace ([ "TEST-META" ] ++ (builtins.attrNames args)) | ||
{ | ||
myargs = args; | ||
system = "aarch64-darwin"; | ||
specialArgs = { user = "sam"; }; | ||
colmena = { | ||
nixpkgs = { system = "aarch64-darwin"; }; # Is this `nixpkgs.config`? | ||
}; | ||
colmenaConfiguration = { | ||
inherit (self.nixosConfiguration) bee imports; | ||
deployment = { | ||
allowLocalDeployment = true; | ||
tags = [ "test" ]; | ||
}; | ||
}; | ||
darwinConfiguration = { | ||
system.stateVersion = 4; | ||
bee = { | ||
system = "aarch64-darwin"; | ||
inherit (inputs) wsl; | ||
inherit (inputs.omnibus.flake.inputs) darwin; | ||
home = inputs.home-manager; | ||
pkgs = cell.pkgs.unstable-with-overlays; | ||
}; | ||
homebrew = { | ||
enable = true; | ||
onActivation = { | ||
autoUpdate = true; | ||
upgrade = true; | ||
}; | ||
}; | ||
imports = [{ _module.args = self.specialArgs; }]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ super, inputs, cell, ... }@args: { | ||
inherit (super.meta.nixosConfiguration) bee; # imports; | ||
imports = [ ]; | ||
homebrew = { | ||
enable = true; | ||
onActivation = { | ||
autoUpdate = true; | ||
upgrade = true; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters