refactor: helpers/set-hostname.nix
becomes machines/instantiate.nix
This commit is contained in:
@@ -46,13 +46,11 @@
|
|||||||
specialArgs = { inherit mobile-nixos home-manager impermanence; };
|
specialArgs = { inherit mobile-nixos home-manager impermanence; };
|
||||||
modules = [
|
modules = [
|
||||||
./modules
|
./modules
|
||||||
./machines/${name}
|
(import ./machines/instantiate.nix name)
|
||||||
(import ./helpers/set-hostname.nix name)
|
|
||||||
home-manager.nixosModule
|
home-manager.nixosModule
|
||||||
impermanence.nixosModule
|
impermanence.nixosModule
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import "${mobile-nixos}/overlay/overlay.nix")
|
(import "${mobile-nixos}/overlay/overlay.nix")
|
||||||
uninsane.overlay
|
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;
|
||||||
|
}
|
Reference in New Issue
Block a user