Skip to content

Commit

Permalink
power-meter
Browse files Browse the repository at this point in the history
  • Loading branch information
Czichy committed Dec 5, 2024
1 parent ea783aa commit 38affce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
1 change: 0 additions & 1 deletion hosts/HL-1-MRZ-HOST-01/guests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
enableStorageDataset = true;
}
// mkMicrovm "syncthing" "HL-3-RZ-SYNC-01" "enp4s0" "02:01:27:6b:d9:d4" "vlan40" {
# enableSharedDataset = true;
}
// mkMicrovm "forgejo" "HL-3-RZ-GIT-01" "enp4s0" "02:01:27:c4:0e:09" "vlan40" {
enableStorageDataset = true;
Expand Down
36 changes: 17 additions & 19 deletions hosts/HL-1-MRZ-HOST-01/guests/power-meter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@
{
microvm.mem = 512;
microvm.vcpu = 1;
# microvm.shares = [
# {
# # On the host
# source = "/shared/shares/users/christian/Trading/TWS_Flex_Reports";
# # In the MicroVM
# mountPoint = "/TWS_Flex_Reports";
# tag = "flex";
# proto = "virtiofs";
# }
# ];
microvm.shares = [
{
# On the host
source = "/shared/shares/users/christian/Trading/TWS_Flex_Reports";
# In the MicroVM
mountPoint = "/TWS_Flex_Reports";
tag = "flex";
proto = "virtiofs";
}
];

networking.hostName = hostName;

# |----------------------------------------------------------------------| #
# users = {
# users.ibkr = {
# isSystemUser = true;
# group = "ibkr";
# };
# groups.ibkr = {};
# };
users = {
users.power = {
isSystemUser = true;
group = "power";
};
groups.power = {};
};
# |----------------------------------------------------------------------| #
# age.secrets = {
# ibkrFlexToken = {
Expand All @@ -50,9 +50,7 @@
# | SYSTEM PACKAGES |
# ------------------------------
environment.systemPackages = with pkgs; [
gawk
pkg-config
openssh
inputs.power-meter.packages.${pkgs.system}.power-meter
];
# |----------------------------------------------------------------------| #
Expand Down

0 comments on commit 38affce

Please sign in to comment.