mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 19:24:03 -06:00
Fix build warning for EDI and add hydra options.
This commit is contained in:
parent
808704a868
commit
43286568c2
1 changed files with 17 additions and 6 deletions
|
@ -1,9 +1,11 @@
|
||||||
|
GNU nano 7.2 /etc/nixos/edi.nix
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
#./home-assistant.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelParams = [ "console=tty0" ];
|
boot.kernelParams = [ "console=tty0" ];
|
||||||
|
@ -13,9 +15,7 @@
|
||||||
nix.buildMachines = [{
|
nix.buildMachines = [{
|
||||||
hostName = "localhost";
|
hostName = "localhost";
|
||||||
systems = ["x86_64-linux"
|
systems = ["x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"];
|
||||||
"x86_64-darwin"
|
|
||||||
"aarch64-darwin"];
|
|
||||||
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
|
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
|
||||||
maxJobs = 8;
|
maxJobs = 8;
|
||||||
}];
|
}];
|
||||||
|
@ -23,12 +23,23 @@
|
||||||
networking.hostName = "EDI";
|
networking.hostName = "EDI";
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 80 443 ];
|
allowedTCPPorts = [ 80 443 3000 8123 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"openssl-1.1.1w"
|
||||||
|
];
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh = {
|
services.openssh.settings = {
|
||||||
permitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.hydra = {
|
||||||
|
enable = true;
|
||||||
|
hydraURL = "localhost:3000";
|
||||||
|
notificationSender = "hydra@localhost";
|
||||||
|
useSubstitutes = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue