forked from kalipso/infrastructure
fix my mistakes
This commit is contained in:
@@ -118,8 +118,6 @@ in
|
|||||||
specialArgs.inputs = inputs;
|
specialArgs.inputs = inputs;
|
||||||
modules = defaultModules ++ [
|
modules = defaultModules ++ [
|
||||||
./fanny/configuration.nix
|
./fanny/configuration.nix
|
||||||
inputs.disko.nixosModules.disko
|
|
||||||
./modules/disko/fanny.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
@@ -8,6 +8,8 @@
|
|||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
|
inputs.self.nixosModules.malobeo.initssh
|
||||||
|
inputs.self.nixosModules.malobeo.disko
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.autoUpdate = {
|
malobeo.autoUpdate = {
|
||||||
@@ -23,6 +25,18 @@
|
|||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
malobeo.disks = {
|
||||||
|
enable = true;
|
||||||
|
hostId = "1312acab";
|
||||||
|
root = {
|
||||||
|
disk0 = "sda";
|
||||||
|
};
|
||||||
|
storage = {
|
||||||
|
disks = ["sdb" "sdc"];
|
||||||
|
mirror = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.tor = {
|
services.tor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
client.enable = true;
|
client.enable = true;
|
||||||
@@ -34,7 +48,6 @@
|
|||||||
services.acpid.enable = true;
|
services.acpid.enable = true;
|
||||||
|
|
||||||
networking.hostName = "fanny";
|
networking.hostName = "fanny";
|
||||||
networking.hostId = "1312acab";
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
virtualisation.vmVariant.virtualisation.graphics = false;
|
virtualisation.vmVariant.virtualisation.graphics = false;
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{config, lib, ...}:
|
{config, lib, inputs, ...}:
|
||||||
let
|
let
|
||||||
cfg = config.malobeo.disks;
|
cfg = config.malobeo.disks;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [inputs.disko.nixosModules.disko];
|
||||||
options.malobeo.disks = {
|
options.malobeo.disks = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
@@ -75,8 +76,8 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkif cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
networking.hostId = cfg.zfs.hostId;
|
networking.hostId = cfg.hostId;
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = lib.mkMerge [
|
disk = lib.mkMerge [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user