commit everything

This commit is contained in:
sinavir 2024-09-24 12:33:51 +02:00
parent 0054c74806
commit 823b5c8206
55 changed files with 831 additions and 354 deletions

View file

@ -4,11 +4,13 @@
pkgs,
modulesPath,
...
}: let
launchpad =
pkgs.python3.withPackages ( ps: [ (ps.callPackage ./launchpad.nix { lpminimk3 = ps.callPackage ./lpminimk3.nix {}; })]);
}:
let
launchpad = pkgs.python3.withPackages (ps: [
(ps.callPackage ./launchpad.nix { lpminimk3 = ps.callPackage ./lpminimk3.nix { }; })
]);
in
{
{
imports = [
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
./bootloader.nix
@ -19,8 +21,7 @@ in
./users.nix
];
nix.settings.substituters = lib.mkForce [];
nix.settings.substituters = lib.mkForce [ ];
networking.hostName = "rigel"; # Define your hostname.
@ -34,7 +35,10 @@ in
systemd.services.launchpad = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
path = [ launchpad pkgs.unixtools.ping ];
path = [
launchpad
pkgs.unixtools.ping
];
script = ''
while ! ping -n -w 1 -c 1 10.1.1.2 &> /dev/null
do
@ -42,7 +46,7 @@ in
done
sleep 0.1
python -m eos_midi 10.1.1.2
'';
'';
};
environment.shellAliases = {
r = "systemctl restart launchpad.service";

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
}

View file

@ -1,9 +1,10 @@
{ lib
, buildPythonPackage
, fetchgit
, poetry
, lpminimk3
, python-osc
{
lib,
buildPythonPackage,
fetchgit,
poetry,
lpminimk3,
python-osc,
}:
buildPythonPackage rec {

View file

@ -1,9 +1,10 @@
{ lib
, buildPythonPackage
, fetchgit
, poetry-core
, lpminimk3
, python-osc
{
lib,
buildPythonPackage,
fetchgit,
poetry-core,
lpminimk3,
python-osc,
}:
buildPythonPackage rec {

View file

@ -1,11 +1,12 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
, jsonschema
, python-rtmidi
, websockets
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
jsonschema,
python-rtmidi,
websockets,
}:
buildPythonPackage rec {

View file

@ -3,7 +3,8 @@
lib,
pkgs,
...
}: {
}:
{
networking.useDHCP = false;
networking.firewall.allowedUDPPorts = [ 67 ];
@ -18,13 +19,13 @@
IPMasquerade = "ipv4";
};
dhcpServerConfig = {
PoolOffset=100;
PoolSize=20;
PoolOffset = 100;
PoolSize = 20;
UplinkInterface = ":none";
EmitDNS="no";
EmitNTP="no";
EmitSIP="no";
EmitRouter="no";
EmitDNS = "no";
EmitNTP = "no";
EmitSIP = "no";
EmitRouter = "no";
};
dhcpServerStaticLeases = [
{

View file

@ -6,9 +6,16 @@
nodes,
name,
...
}: {
}:
{
nix.settings = {
trusted-users = ["root" "@wheel"];
extra-experimental-features = ["nix-command" "flakes"];
trusted-users = [
"root"
"@wheel"
];
extra-experimental-features = [
"nix-command"
"flakes"
];
};
}

View file

@ -3,7 +3,8 @@
pkgs,
lib,
...
}: {
}:
{
environment.systemPackages = with pkgs; [
sqlite-web
dhcpdump

View file

@ -1,4 +1,5 @@
{...}: {
{ ... }:
{
services.openssh.enable = true;
services.openssh.settings.PasswordAuthentication = true;
}

View file

@ -1,4 +1,5 @@
{...}: {
{ ... }:
{
users.mutableUsers = false;
users.users.root = {
openssh.authorizedKeys.keyFiles = [