Added: Configuration for cyper-pi-2
This commit is contained in:
14
flake.nix
14
flake.nix
@@ -29,14 +29,15 @@
|
|||||||
let
|
let
|
||||||
primaryUser = "phil";
|
primaryUser = "phil";
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
in
|
|
||||||
{
|
mkNixosConfig =
|
||||||
nixosConfigurations."cyper-pi-1" = nixpkgs.lib.nixosSystem {
|
hostName:
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./nixos/default.nix
|
./nixos/default.nix
|
||||||
./nixos/hardware.nix
|
./nixos/hardware.nix
|
||||||
./hosts/cyper-pi-1/configuration.nix
|
./hosts/${hostName}/configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
@@ -50,5 +51,10 @@
|
|||||||
];
|
];
|
||||||
specialArgs = { inherit inputs self primaryUser; };
|
specialArgs = { inherit inputs self primaryUser; };
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
nixosConfigurations."cyper-pi-1" = mkNixosConfig "cyper-pi-1";
|
||||||
|
nixosConfigurations."cyper-pi-2" = mkNixosConfig "cyper-pi-2";
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
25
hosts/cyper-pi-2/configuration.nix
Normal file
25
hosts/cyper-pi-2/configuration.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./postgres.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Any RPi 4 specific customizations go here
|
||||||
|
networking = {
|
||||||
|
hostName = lib.mkForce "cyper-pi-2";
|
||||||
|
# interfaces.end0.ipv4.addresses = [
|
||||||
|
# {
|
||||||
|
# address = "192.168.2.41";
|
||||||
|
# prefixLength = 24;
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
|
||||||
|
# firewall = {
|
||||||
|
# enable = false;
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user