System/machines/productivity-vm/configuration.nix

70 lines
1.5 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;
2023-06-19 03:28:10 -04:00
device = "/dev/vda";
2023-04-26 00:06:21 -04:00
useOSProber = 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;
2023-06-18 18:59:45 -04:00
hyprland.enableGreetd = false;
2023-04-25 23:39:37 -04:00
};
};
# 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;
};
2023-06-18 16:52:20 -04:00
# Make hyprland work
environment.sessionVariables = {
2023-06-18 19:31:16 -04:00
"WLR_RENDERER_ALLOW_SOFTWARE" = "1";
2023-06-18 18:47:05 -04:00
"WLR_NO_HARDWARE_CURSORS" = "1";
2023-06-18 19:29:09 -04:00
"HYPRLAND_LOG_WLR" = "1";
2023-06-18 16:52:20 -04:00
};
2023-04-25 23:39:37 -04:00
}