fix dont use microvm.nixosModules.microvm by default
This commit is contained in:
parent
c24cc9d46f
commit
8dc975fc89
6 changed files with 142 additions and 1 deletions
6
TODO.md
6
TODO.md
|
|
@ -22,6 +22,12 @@
|
||||||
it then returns instead of config)
|
it then returns instead of config)
|
||||||
|
|
||||||
|
|
||||||
|
- [ ] what if we automated the process of replacing windows with Nix??
|
||||||
|
then push this to nixos-anywhere or nix-infect lmaooo
|
||||||
|
|
||||||
|
- [ ] patch microvm so that acpi=off https://github.com/microvm-nix/microvm.nix/commit/b59a26962bb324cc0a134756a323f3e164409b72
|
||||||
|
cause otherwise 2GB causes a failure
|
||||||
|
|
||||||
```
|
```
|
||||||
vms = {
|
vms = {
|
||||||
home-assistant = {
|
home-assistant = {
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ in {
|
||||||
(findImport (root + "/hosts/${nodeName}"))
|
(findImport (root + "/hosts/${nodeName}"))
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
inputs.microvm.nixosModules.microvm
|
# inputs.microvm.nixosModules.microvm
|
||||||
]
|
]
|
||||||
++ (getGroupModules root nodeName node)
|
++ (getGroupModules root nodeName node)
|
||||||
++ node.extraModules
|
++ node.extraModules
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ in rec {
|
||||||
Terminal
|
Terminal
|
||||||
;
|
;
|
||||||
in {
|
in {
|
||||||
|
enabled = true;
|
||||||
system = "x86_64-linux"; # sane default (i hope...)
|
system = "x86_64-linux"; # sane default (i hope...)
|
||||||
groups = [];
|
groups = [];
|
||||||
extraModules = [];
|
extraModules = [];
|
||||||
|
|
|
||||||
108
cerulean/nexus/snow.nix
Normal file
108
cerulean/nexus/snow.nix
Normal file
|
|
@ -0,0 +1,108 @@
|
||||||
|
# Copyright 2026 Emile Clark-Boman
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# nexus
|
||||||
|
options = let
|
||||||
|
inherit
|
||||||
|
(lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
;
|
||||||
|
in {
|
||||||
|
extraModules = mkOption {
|
||||||
|
type = types.listOf types.path;
|
||||||
|
};
|
||||||
|
specialArgs = mkOption {
|
||||||
|
type = types.attrs;
|
||||||
|
};
|
||||||
|
|
||||||
|
groups = mkOption {
|
||||||
|
type = types.attrs;
|
||||||
|
};
|
||||||
|
|
||||||
|
nodes = mkOption {
|
||||||
|
type = types.attrsOf (types.submoduleWith ({...}: {
|
||||||
|
options = {
|
||||||
|
enabled = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
system = mkOption {
|
||||||
|
type = types.enum inputs.systems;
|
||||||
|
};
|
||||||
|
groups = mkOption {
|
||||||
|
type = types.list;
|
||||||
|
};
|
||||||
|
modules = mkOption {
|
||||||
|
type = types.list;
|
||||||
|
};
|
||||||
|
args = mkOption {
|
||||||
|
type = types.attrs;
|
||||||
|
};
|
||||||
|
|
||||||
|
deploy = {
|
||||||
|
user = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
sudoCmd = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
interactiveSudo = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
|
|
||||||
|
remoteBuild = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
|
autoRollback = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
|
magicRollback = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
|
|
||||||
|
activationTimeout = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
};
|
||||||
|
confirmTimeout = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
};
|
||||||
|
|
||||||
|
ssh = {
|
||||||
|
host = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
user = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
port = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
};
|
||||||
|
opts = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}));
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
};
|
||||||
|
}
|
||||||
13
cerulean/nixos/microvm-child.nix
Normal file
13
cerulean/nixos/microvm-child.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Copyright 2026 Emile Clark-Boman
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
13
cerulean/nixos/microvm-parent.nix
Normal file
13
cerulean/nixos/microvm-parent.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Copyright 2026 Emile Clark-Boman
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue