profiles: raspi init, aarch64 init, oracle/common improved, shared

This commit is contained in:
kat witch 2021-09-04 02:47:02 +01:00
parent 70e56f4e3f
commit 4102b381f0
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
10 changed files with 118 additions and 159 deletions

View file

@ -1,8 +1,12 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, meta, ... }:
{
security.sudo.wheelNeedsPassword = lib.mkForce false;
imports = with meta; [
users.kat.base
];
users.users.root = {
hashedPassword =
"$6$i28yOXoo$/WokLdKds5ZHtJHcuyGrH2WaDQQk/2Pj0xRGLgS8UcmY2oMv3fw2j/85PRpsJJwCB2GBRYRK5LlvdTleHd3mB.";

View file

@ -1,7 +0,0 @@
{ config, meta, ... }: {
imports = with meta; [
users.kat.base
users.hexchen
users.arc
];
}

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, meta, ... }:
with lib;
@ -7,6 +7,7 @@ with lib;
deploy.profile = {
gui = mkEnableOption "Graphical System";
vfio = mkEnableOption "VFIO";
shared = mkEnableOption "Shared System";
trusted = mkEnableOption "Trusted Submodule";
cross = {
enable = mkEnableOption "cross/emulated compilation";
@ -33,6 +34,7 @@ with lib;
ryzen = mkEnableOption "AMD Ryzen CPU";
ms-7b86 = mkEnableOption "MSI B450-A Pro Max";
rm-310 = mkEnableOption "Intel DQ67OW";
raspi = mkEnableOption "Raspberry Pi 1 Model B+";
oracle = {
common = mkEnableOption "OCI";
ubuntu = mkEnableOption "Canonical Ubuntu Base Image";
@ -49,7 +51,10 @@ with lib;
options.deploy.profile = {
gui = mkEnableOption "Graphical System";
vfio = mkEnableOption "VFIO";
trusted = mkEnableOption "Trusted Submodule";
shared = mkEnableOption "Shared System";
trusted = mkEnableOption "Trusted Submodule" // {
default = meta.trusted ? secrets;
};
cross = {
enable = mkEnableOption "cross/emulated compilation";
aarch64 = mkOption {
@ -75,6 +80,7 @@ with lib;
ryzen = mkEnableOption "AMD Ryzen CPU";
ms-7b86 = mkEnableOption "MSI B450-A Pro Max";
rm-310 = mkEnableOption "Intel DQ67OW";
raspi = mkEnableOption "Raspberry Pi 1 Model B+";
oracle = {
common = mkEnableOption "OCI";
ubuntu = mkEnableOption "Canonical Ubuntu Base Image";