retire pi4
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, namespace, ... }:
|
||||
{ pkgs, namespace, ... }:
|
||||
{
|
||||
home = {
|
||||
username = "admin";
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
|
||||
@@ -9,7 +9,6 @@ with lib;
|
||||
let
|
||||
name = "nebula-lighthouse";
|
||||
cfg = config.${namespace}.services.${name};
|
||||
rootUrl = "https://lighthouse.${namespace}.dev/";
|
||||
ca = config.sops.secrets."pi5/nebula/ca-cert".path;
|
||||
cert = config.sops.secrets."pi5/nebula/lighthouse-cert".path;
|
||||
key = config.sops.secrets."pi5/nebula/lighthouse-key".path;
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
with lib;
|
||||
let
|
||||
name = "nebula";
|
||||
cfg = config.${namespace}.services.${name};
|
||||
|
||||
ca = config.sops.secrets."jallen-nas/nebula/ca-cert".path;
|
||||
cert = config.sops.secrets."jallen-nas/nebula/nas-cert".path;
|
||||
|
||||
@@ -100,18 +100,20 @@ let
|
||||
|
||||
users.users.nextcloud.isSystemUser = lib.mkForce true;
|
||||
users.users.nextcloud.isNormalUser = lib.mkForce false;
|
||||
users.groups.nextcloud = {};
|
||||
users.groups.nextcloud = { };
|
||||
|
||||
# Configure web server
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
group = "jallen-nas";
|
||||
virtualHosts.${config.services.nextcloud.hostName} = {
|
||||
listen = [{
|
||||
listen = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = cfg.port;
|
||||
ssl = false;
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
inputs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{ ... }:
|
||||
final: _prev: {
|
||||
mesa = final.unstable.mesa;
|
||||
driversi686Linux = final.stable.driversi686Linux // {
|
||||
mesa = final.unstable.driversi686Linux.mesa;
|
||||
};
|
||||
}
|
||||
@@ -70,13 +70,7 @@ in
|
||||
isHardened = cachyConfig.cpuSched == "hardened";
|
||||
isLibre = false;
|
||||
updateScript = null;
|
||||
tests = (prevAttrs.passthru.tests or { }) // {
|
||||
plymouth = import ./test.nix {
|
||||
inherit kernelPackages;
|
||||
inherit (flakes) nixpkgs;
|
||||
chaotic = flakes.self;
|
||||
} final;
|
||||
};
|
||||
tests = null;
|
||||
}
|
||||
// optionalAttr "updateScript" (cachyConfig.withUpdateScript != null) (
|
||||
callPackage ./update.nix {
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
# Run with:
|
||||
# nix build -L .#linux_cachyos.passthru.tests.plymouth.driverInteractive && result/bin/nixos-test-driver
|
||||
{
|
||||
nixpkgs,
|
||||
chaotic,
|
||||
kernelPackages,
|
||||
}:
|
||||
|
||||
import "${nixpkgs}/nixos/tests/make-test-python.nix" (
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
name = "cachyos-plymouth";
|
||||
meta.maintainers = with pkgs.lib.maintainers; [ pedrohlc ];
|
||||
|
||||
nodes.machine =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
chaotic.nixosModules.default
|
||||
"${nixpkgs}/nixos/tests/common/user-account.nix"
|
||||
];
|
||||
|
||||
virtualisation.qemu.options = [
|
||||
"-m 16G"
|
||||
"-vga none"
|
||||
"-device virtio-vga-gl"
|
||||
"-display gtk,gl=on"
|
||||
];
|
||||
virtualisation.qemu.package = lib.mkForce pkgs.qemu_full;
|
||||
|
||||
boot = {
|
||||
inherit kernelPackages;
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# Based on https://wiki.nixos.org/wiki/Plymouth
|
||||
|
||||
plymouth = {
|
||||
enable = true;
|
||||
theme = "rings";
|
||||
themePackages = with pkgs; [
|
||||
(adi1090x-plymouth-themes.override {
|
||||
selected_themes = [ "rings" ];
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
consoleLogLevel = lib.mkForce 3;
|
||||
initrd.verbose = false;
|
||||
# using mkForce to properly mix with virtualisation stuff
|
||||
kernelParams = lib.mkForce [
|
||||
"console=ttyS0"
|
||||
"clocksource=acpi_pm"
|
||||
"lsm=landlock,yama,bpf"
|
||||
|
||||
"boot.shell_on_fail"
|
||||
"quiet"
|
||||
"rd.systemd.show_status=auto"
|
||||
"splash"
|
||||
"udev.log_priority=3"
|
||||
|
||||
"plymouth.ignore-serial-consoles"
|
||||
];
|
||||
|
||||
loader.timeout = 0;
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: TODO
|
||||
testScript = ''
|
||||
start_all()
|
||||
'';
|
||||
}
|
||||
)
|
||||
@@ -1,4 +1,4 @@
|
||||
{ fetchFromGitHub, python3Packages, lib, ... }:
|
||||
{ fetchFromGitHub, python3Packages, ... }:
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "wyzeapy";
|
||||
version = "0.5.31";
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ lib, pkgs, namespace, ... }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
let
|
||||
plymouthTheme = pkgs.kdePackages.breeze-plymouth.override {
|
||||
logoName = "apple";
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mariadb; # explicit MariaDB package
|
||||
dataDir ="/media/nas/main/databases/mariadb";
|
||||
dataDir = "/media/nas/main/databases/mariadb";
|
||||
settings.mysqld = {
|
||||
bind-address = "0.0.0.0";
|
||||
port = 3306;
|
||||
|
||||
Reference in New Issue
Block a user