System/machines/productivity-vm/configuration.nix

64 lines
1.4 KiB
Nix
Raw Normal View History

2023-04-25 23:39:37 -04:00
{ config, lib, pkgs, inputs, ... }:
{
# Sops setup for this machine
sops.secrets = {
# "borg-ssh-key" = {
# sopsFile = ../../secrets/productivity-vm/borg.yaml;
# format = "yaml";
# };
# "borg-password" = {
# sopsFile = ../../secrets/productivity-vm/borg.yaml;
# format = "yaml";
# };
# "windows-bitlocker-key" = {
# sopsFile = ../../secrets/productivity-vm/windows.yaml;
# format = "yaml";
# };
# "last.fm" = {
# sopsFile = ../../secrets/productivity-vm/last.fm;
# format = "binary";
# owner = "nathan";
# mode = "0400";
# };
};
2023-04-26 00:06:21 -04:00
# Make the vm boot
boot.loader.grub = {
enable = true;
device = "/dev/sda";
useOSProber = true;
};
2023-04-26 00:17:33 -04:00
virtualisation.vmware.guest.enable = true;
2023-04-25 23:39:37 -04:00
# Setup system configuration
nathan = {
programs = { games = false; };
services = {
2023-06-18 04:25:53 -04:00
borg = { enable = false; };
2023-04-25 23:39:37 -04:00
kubo = { enable = false; };
};
config = {
isDesktop = true;
2023-04-26 00:06:21 -04:00
setupGrub = false;
2023-04-25 23:39:37 -04:00
nix.autoUpdate = false;
harden = false;
};
};
# Configure networking
networking = {
domain = "mccarty.io";
useDHCP = false;
interfaces.ens33.useDHCP = true;
nat.externalInterface = "ens33";
};
# Setup home manager
home-manager.users.nathan = import ./home.nix;
# Configure nix build
nix.settings = {
cores = 8;
max-jobs = 4;
};
}