-
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.
Signed-off-by: Victor Hang <vhvictorhang@gmail.com>
- Loading branch information
Showing
9 changed files
with
78 additions
and
39 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
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
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,28 @@ | ||
let | ||
sources = import ./npins; | ||
pkgs = import sources.nixpkgs { | ||
config = { | ||
allowUnfree = true; | ||
allowUnfreePredicate = true; | ||
}; | ||
}; | ||
createConfiguration = parent: { | ||
networking.hostName = parent.hostName; | ||
deployment = { | ||
# Allow local deployment with `colmena apply-local` | ||
allowLocalDeployment = true; | ||
|
||
# Disable SSH deployment. | ||
targetHost = null; | ||
}; | ||
imports = [ ./profiles/${parent.hostName}/configuration.nix ]; | ||
}; | ||
in | ||
{ | ||
meta = { | ||
nixpkgs = pkgs; | ||
}; | ||
totoro = createConfiguration { hostName = "totoro"; }; | ||
anya = createConfiguration { hostName = "anya"; }; | ||
nishinoya = createConfiguration { hostName = "nishinoya"; }; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
args@{ ... }: | ||
args: | ||
let | ||
# Get the current directory's name | ||
currentDir = builtins.toString ./.; | ||
hostname = builtins.baseNameOf currentDir; | ||
# Import the base configuration with the dynamic hostname | ||
base = import ../../base.nix (args // { inherit hostname; }); | ||
hostname = "anya"; | ||
in | ||
base |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
args@{ ... }: | ||
args: | ||
let | ||
# Get the current directory's name | ||
currentDir = builtins.toString ./.; | ||
hostname = builtins.baseNameOf currentDir; | ||
# Import the base configuration with the dynamic hostname | ||
base = import ../../base.nix (args // { inherit hostname; }); | ||
hostname = "nishinoya"; | ||
in | ||
base |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
args@{ ... }: | ||
args: | ||
let | ||
# Get the current directory's name | ||
currentDir = builtins.toString ./.; | ||
hostname = builtins.baseNameOf currentDir; | ||
# Import the base configuration with the dynamic hostname | ||
base = import ../../base.nix (args // { inherit hostname; }); | ||
hostname = "totoro"; | ||
in | ||
base |