refactor: helpers/set-hostname.nix
becomes machines/instantiate.nix
This commit is contained in:
parent
9151f58b37
commit
4c4b73f693
|
@ -46,13 +46,11 @@
|
|||
specialArgs = { inherit mobile-nixos home-manager impermanence; };
|
||||
modules = [
|
||||
./modules
|
||||
./machines/${name}
|
||||
(import ./helpers/set-hostname.nix name)
|
||||
(import ./machines/instantiate.nix name)
|
||||
home-manager.nixosModule
|
||||
impermanence.nixosModule
|
||||
sops-nix.nixosModules.sops
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.overlays = [
|
||||
(import "${mobile-nixos}/overlay/overlay.nix")
|
||||
uninsane.overlay
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
hostName: { ... }:
|
||||
{
|
||||
networking.hostName = hostName;
|
||||
}
|
11
machines/instantiate.nix
Normal file
11
machines/instantiate.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
# trampoline from flake.nix into the specific machine definition, while doing a tiny bit of common setup
|
||||
|
||||
hostName: { ... }: {
|
||||
imports = [
|
||||
./${hostName}
|
||||
];
|
||||
|
||||
networking.hostName = hostName;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
Loading…
Reference in New Issue
Block a user