mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 11:05:23 -05:00
Netbird Changes + virt-manager
This commit is contained in:
parent
646e294880
commit
93edbaf48d
5 changed files with 28 additions and 1 deletions
|
|
@ -81,6 +81,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
platformio.enable = true;
|
||||
python3.enable = true;
|
||||
vscode.enable = true;
|
||||
virt-manager.enable = true;
|
||||
# Utilities
|
||||
# git is not optional
|
||||
docker.enable = true;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,13 @@
|
|||
'';
|
||||
default = "";
|
||||
};
|
||||
setup_key_file = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = ''
|
||||
Path to a file containing a setup key obtained from the Management Service Dashboard (used to register peer)
|
||||
'';
|
||||
default = "";
|
||||
};
|
||||
management_url = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = ''
|
||||
|
|
@ -48,6 +55,9 @@
|
|||
(lib.mkIf (config.netbird.opts.setup_key != "") {
|
||||
NB_SETUP_KEY = config.netbird.opts.setup_key;
|
||||
})
|
||||
(lib.mkIf(config.netbird.opts.setup_key_file != "") {
|
||||
NB_SETUP_KEY_FILE = config.netbird.opts.setup_key_file;
|
||||
})
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
{
|
||||
imports = [
|
||||
./gui.nix
|
||||
./virt-manager.nix
|
||||
];
|
||||
}
|
||||
15
modules/nixos/software/virt-manager.nix
Normal file
15
modules/nixos/software/virt-manager.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
options = {
|
||||
virt-manager = {
|
||||
enable = lib.mkEnableOption {
|
||||
description = "Enable virtualization and virt-manager";
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf (config.virt-manager.enable) {
|
||||
virtualization.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
isNormalUser = true;
|
||||
home = "/home/annika";
|
||||
description = "Annika Merris";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = [ "networkmanager" "wheel", "libvirtd" ];
|
||||
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG9NhsAOBwWBdBeenfaPoRtqQrAIgg7E5m4sKYQU9cFx annika@kim" ];
|
||||
hashedPasswordFile = config.sops.secrets.annika_password.path;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue