retire pi4
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, namespace, ... }:
|
{ pkgs, namespace, ... }:
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
username = "admin";
|
username = "admin";
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
namespace,
|
namespace,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ with lib;
|
|||||||
let
|
let
|
||||||
name = "nebula-lighthouse";
|
name = "nebula-lighthouse";
|
||||||
cfg = config.${namespace}.services.${name};
|
cfg = config.${namespace}.services.${name};
|
||||||
rootUrl = "https://lighthouse.${namespace}.dev/";
|
|
||||||
ca = config.sops.secrets."pi5/nebula/ca-cert".path;
|
ca = config.sops.secrets."pi5/nebula/ca-cert".path;
|
||||||
cert = config.sops.secrets."pi5/nebula/lighthouse-cert".path;
|
cert = config.sops.secrets."pi5/nebula/lighthouse-cert".path;
|
||||||
key = config.sops.secrets."pi5/nebula/lighthouse-key".path;
|
key = config.sops.secrets."pi5/nebula/lighthouse-key".path;
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
name = "nebula";
|
name = "nebula";
|
||||||
cfg = config.${namespace}.services.${name};
|
|
||||||
|
|
||||||
ca = config.sops.secrets."jallen-nas/nebula/ca-cert".path;
|
ca = config.sops.secrets."jallen-nas/nebula/ca-cert".path;
|
||||||
cert = config.sops.secrets."jallen-nas/nebula/nas-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.isSystemUser = lib.mkForce true;
|
||||||
users.users.nextcloud.isNormalUser = lib.mkForce false;
|
users.users.nextcloud.isNormalUser = lib.mkForce false;
|
||||||
users.groups.nextcloud = {};
|
users.groups.nextcloud = { };
|
||||||
|
|
||||||
# Configure web server
|
# Configure web server
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
group = "jallen-nas";
|
group = "jallen-nas";
|
||||||
virtualHosts.${config.services.nextcloud.hostName} = {
|
virtualHosts.${config.services.nextcloud.hostName} = {
|
||||||
listen = [{
|
listen = [
|
||||||
|
{
|
||||||
addr = "0.0.0.0";
|
addr = "0.0.0.0";
|
||||||
port = cfg.port;
|
port = cfg.port;
|
||||||
ssl = false;
|
ssl = false;
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
namespace,
|
namespace,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
|
||||||
namespace,
|
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";
|
isHardened = cachyConfig.cpuSched == "hardened";
|
||||||
isLibre = false;
|
isLibre = false;
|
||||||
updateScript = null;
|
updateScript = null;
|
||||||
tests = (prevAttrs.passthru.tests or { }) // {
|
tests = null;
|
||||||
plymouth = import ./test.nix {
|
|
||||||
inherit kernelPackages;
|
|
||||||
inherit (flakes) nixpkgs;
|
|
||||||
chaotic = flakes.self;
|
|
||||||
} final;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
// optionalAttr "updateScript" (cachyConfig.withUpdateScript != null) (
|
// optionalAttr "updateScript" (cachyConfig.withUpdateScript != null) (
|
||||||
callPackage ./update.nix {
|
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 {
|
python3Packages.buildPythonPackage rec {
|
||||||
pname = "wyzeapy";
|
pname = "wyzeapy";
|
||||||
version = "0.5.31";
|
version = "0.5.31";
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{ lib, pkgs, namespace, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
namespace,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
plymouthTheme = pkgs.kdePackages.breeze-plymouth.override {
|
plymouthTheme = pkgs.kdePackages.breeze-plymouth.override {
|
||||||
logoName = "apple";
|
logoName = "apple";
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
mysql = {
|
mysql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.mariadb; # explicit MariaDB package
|
package = pkgs.mariadb; # explicit MariaDB package
|
||||||
dataDir ="/media/nas/main/databases/mariadb";
|
dataDir = "/media/nas/main/databases/mariadb";
|
||||||
settings.mysqld = {
|
settings.mysqld = {
|
||||||
bind-address = "0.0.0.0";
|
bind-address = "0.0.0.0";
|
||||||
port = 3306;
|
port = 3306;
|
||||||
|
|||||||
Reference in New Issue
Block a user