Simplify build-related config
This commit is contained in:
parent
104d995dd2
commit
433930bde6
14
colmena/local.nix
Normal file
14
colmena/local.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ name, nodes, config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
deployment = {
|
||||||
|
allowLocalDeployment = true;
|
||||||
|
targetHost = null;
|
||||||
|
tags = [ "local" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
colmena
|
||||||
|
npins
|
||||||
|
];
|
||||||
|
}
|
12
colmena/remote.nix
Normal file
12
colmena/remote.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ name, nodes, config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
deployment = {
|
||||||
|
targetHost = "${name}.birdsong.network";
|
||||||
|
tags = [ "remote" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
../services/openssh.nix
|
||||||
|
];
|
||||||
|
}
|
28
hive.nix
28
hive.nix
|
@ -2,14 +2,11 @@ let sources = import ./npins;
|
||||||
in {
|
in {
|
||||||
meta.nixpkgs = sources.nixpkgs;
|
meta.nixpkgs = sources.nixpkgs;
|
||||||
|
|
||||||
defaults = { name, pkgs, ... }: {
|
defaults = { name, nodes, ... }: {
|
||||||
deployment.replaceUnknownProfiles = false;
|
deployment.replaceUnknownProfiles = false;
|
||||||
networking.hostName = name;
|
networking.hostName = name;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
nixpkgs.config.allowUnfree = true;
|
||||||
git
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
(import "${sources.home-manager}/nixos")
|
(import "${sources.home-manager}/nixos")
|
||||||
|
@ -18,24 +15,23 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
tohru = {
|
tohru = { name, nodes, ... }: {
|
||||||
deployment = {
|
|
||||||
allowLocalDeployment = true;
|
|
||||||
targetHost = null;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostId = "31da19c1";
|
networking.hostId = "31da19c1";
|
||||||
time.timeZone = "Europe/London";
|
time.timeZone = "Europe/London";
|
||||||
|
|
||||||
imports = [ ./hosts/tohru/configuration.nix ];
|
imports = [
|
||||||
|
./colmena/local.nix
|
||||||
|
./hosts/tohru/configuration.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
yevaud = { name, ... }: {
|
yevaud = { name, nodes, ... }: {
|
||||||
deployment.targetHost = "${name}.birdsong.network";
|
|
||||||
|
|
||||||
networking.hostId = "09673d65";
|
networking.hostId = "09673d65";
|
||||||
time.timeZone = "Etc/UTC";
|
time.timeZone = "Etc/UTC";
|
||||||
|
|
||||||
imports = [ ./hosts/yevaud/configuration.nix ];
|
imports = [
|
||||||
|
./colmena/remote.nix
|
||||||
|
./hosts/yevaud/configuration.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,18 +27,12 @@
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.enable = true;
|
hardware.pulseaudio.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
colmena
|
|
||||||
npins
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
dedicatedServer.openFirewall = true;
|
dedicatedServer.openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllFirmware = true;
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
services.fstrim.enable = true;
|
services.fstrim.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue