mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-18 21:14:12 -05:00
Rename some stuff
This commit is contained in:
parent
5bbd203d45
commit
2026c5b6e8
11 changed files with 25 additions and 71 deletions
|
|
@ -28,5 +28,5 @@
|
|||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
});
|
||||
in {nixosConfigurations = lib.attrsets.genAttrs [ "Parzival" "Parzival-Mobile" "WCE-Vault" "WCE-Home" ] ns;};
|
||||
in {nixosConfigurations = lib.attrsets.genAttrs [ "Parzival" "Parzival-Mobile" "WCE-Overseer" ] ns;};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,31 +0,0 @@
|
|||
{lib, config, pkgs, ...}:{
|
||||
imports = [
|
||||
../../modules
|
||||
];
|
||||
|
||||
networking.hostName = "WCE-Home";
|
||||
networking.firewall.allowedTCPPorts = [ 8123 ];
|
||||
proxmoxLXC.manageNetwork = true;
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
containers.homeassistant = {
|
||||
volumes = [ "home-assistant:/home/ha/ha-config" ];
|
||||
environment.TZ = "America/New_York";
|
||||
image = "ghcr.io/home-assistant/home-assistant:stable";
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
"--device=/dev/ttyACM0:/dev/ttyACM0"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
packages.gui.enable = false;
|
||||
packages.wayland.enable = false;
|
||||
packages.programming.enable = false;
|
||||
|
||||
users.crow.enable = false;
|
||||
users.ha.enable = true;
|
||||
}
|
||||
19
hosts/WCE-Overseer/default.nix
Normal file
19
hosts/WCE-Overseer/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{lib, config, pkgs, ...}:{
|
||||
imports = [
|
||||
../../modules
|
||||
];
|
||||
|
||||
networking.hostName = "WCE-Overseer";
|
||||
networking.firewall.allowedTCPPorts = [ 8123 ];
|
||||
proxmoxLXC.manageNetwork = true;
|
||||
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
packages.gui.enable = false;
|
||||
packages.wayland.enable = false;
|
||||
packages.programming.enable = false;
|
||||
|
||||
users.crow.enable = false;
|
||||
users.overseer.enable = true;
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
{config, pkgs, ...}:{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules
|
||||
];
|
||||
|
||||
networking.hostName = "WCE-Vault";
|
||||
gui.enable = false;
|
||||
programming.enable = false;
|
||||
users.vault.enable = true;
|
||||
}
|
||||
|
|
@ -26,8 +26,8 @@
|
|||
vault = {
|
||||
enable = lib.mkEnableOption "enable vault";
|
||||
};
|
||||
ha = {
|
||||
enable = lib.mkEnableOption "enable home assistant user";
|
||||
overseer = {
|
||||
enable = lib.mkEnableOption "enable container overseer user";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
vault = {
|
||||
enable = lib.mkDefault false;
|
||||
};
|
||||
ha = {
|
||||
overseer = {
|
||||
enable = lib.mkDefault false;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
{config, ...}: {
|
||||
imports = [
|
||||
./crow
|
||||
./vault
|
||||
./ha
|
||||
./overseer
|
||||
];
|
||||
|
||||
config.home-manager = {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, ...}: {
|
||||
config.users.users.ha = lib.mkIf config.users.ha.enable {
|
||||
config.users.users.overseer = lib.mkIf config.users.overseer.enable {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
extraGroups = [ "wheel" "libvirtd" ];
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{lib, config, ...}: {
|
||||
imports = [
|
||||
./user.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{ lib, config, ...}: {
|
||||
config.users.users.vault = lib.mkIf config.users.vault.enable {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
extraGroups = [];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{ inputs, pkgs, lib, config, ...}: {
|
||||
options.vault.enable = lib.mkEnableOption "enables hashicorp vault services";
|
||||
|
||||
config = {
|
||||
services.vault = lib.mkIf config.users.vault.enable {
|
||||
enable = true;
|
||||
address = "localhost:8200";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue