mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: ...get internet again. git-hooks.nix adopt
This commit is contained in:
parent
7a0f09e700
commit
e00ec8f2f2
116 changed files with 1157 additions and 4681 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, pkgs, ... }: let
|
||||
inherit (lib.modules) mkForce;
|
||||
{lib, ...} @ specyArgs: let
|
||||
inherit (lib.attrsets) removeAttrs;
|
||||
hostConfig = {
|
||||
tree,
|
||||
modulesPath,
|
||||
|
|
@ -9,6 +9,10 @@
|
|||
[
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
]
|
||||
++ (with tree.nixos; [
|
||||
container-host
|
||||
microvm-host
|
||||
])
|
||||
++ (with tree.nixos.profiles; [
|
||||
server
|
||||
])
|
||||
|
|
@ -22,6 +26,29 @@
|
|||
web
|
||||
]);
|
||||
|
||||
# TODO: Add config.microvm.stateDir to backup schedule?
|
||||
# TODO: figure out updateFlake?
|
||||
microvm = {
|
||||
host.enable = true;
|
||||
vms = {
|
||||
syncthing = {
|
||||
autostart = true;
|
||||
specialArgs = removeAttrs specyArgs ["config" "pkgs" "lib"];
|
||||
config = {
|
||||
imports = [
|
||||
tree.nixos.servers.syncthing
|
||||
];
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
restartIfChanged = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
};
|
||||
in {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue