fix my mistakes

This commit is contained in:
ahtlon
2024-12-31 03:18:37 +01:00
parent 4fa01acae1
commit b0a5fd91cd
3 changed files with 19 additions and 7 deletions

View File

@@ -118,8 +118,6 @@ in
specialArgs.inputs = inputs;
modules = defaultModules ++ [
./fanny/configuration.nix
inputs.disko.nixosModules.disko
./modules/disko/fanny.nix
];
};

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ inputs, pkgs, ... }:
{
imports =
@@ -8,6 +8,8 @@
../modules/sshd.nix
../modules/minimal_tools.nix
../modules/autoupdate.nix
inputs.self.nixosModules.malobeo.initssh
inputs.self.nixosModules.malobeo.disko
];
malobeo.autoUpdate = {
@@ -23,6 +25,18 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
malobeo.disks = {
enable = true;
hostId = "1312acab";
root = {
disk0 = "sda";
};
storage = {
disks = ["sdb" "sdc"];
mirror = true;
};
};
services.tor = {
enable = true;
client.enable = true;
@@ -34,7 +48,6 @@
services.acpid.enable = true;
networking.hostName = "fanny";
networking.hostId = "1312acab";
networking.networkmanager.enable = true;
virtualisation.vmVariant.virtualisation.graphics = false;

View File

@@ -1,8 +1,9 @@
{config, lib, ...}:
{config, lib, inputs, ...}:
let
cfg = config.malobeo.disks;
in
{
imports = [inputs.disko.nixosModules.disko];
options.malobeo.disks = {
enable = lib.mkOption {
type = lib.types.bool;
@@ -75,8 +76,8 @@ in
};
};
config = lib.mkif cfg.enable {
networking.hostId = cfg.zfs.hostId;
config = lib.mkIf cfg.enable {
networking.hostId = cfg.hostId;
disko.devices = {
disk = lib.mkMerge [
{