2024-05-07 18:02:59 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
# Copy bluetooth device configs
|
|
|
|
shure-aonic-bluetooth = pkgs.writeText "info" (
|
|
|
|
builtins.readFile ./bluetooth/shure-aonic-bluetooth-params
|
|
|
|
);
|
|
|
|
xbox-elite-bluetooth = pkgs.writeText "info" (
|
|
|
|
builtins.readFile ./bluetooth/xbox-elite-controller-bluetooth-params
|
|
|
|
);
|
|
|
|
mano-touchpad-bluetooth = pkgs.writeText "info" (
|
|
|
|
builtins.readFile ./bluetooth/mano-touchpad-bluetooth-params
|
|
|
|
);
|
2024-05-29 19:50:11 -04:00
|
|
|
vitrix-pdp-pro-bluetooth = pkgs.writeText "info" (
|
|
|
|
builtins.readFile ./bluetooth/vitrix-pdp-pro-params
|
|
|
|
);
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Use gremlin user's monitor configuration for GDM (desktop monitor primary). See https://discourse.nixos.org/t/gdm-monitor-configuration/6356/4
|
|
|
|
monitorsXmlContent = builtins.readFile ./monitors.xml;
|
|
|
|
monitorsConfig = pkgs.writeText "gdm_monitors.xml" monitorsXmlContent;
|
2024-02-29 09:53:34 -05:00
|
|
|
in
|
|
|
|
{
|
2024-05-07 18:02:59 -04:00
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
system.stateVersion = "24.05";
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
host = {
|
|
|
|
role = "workstation";
|
|
|
|
apps = {
|
2024-05-23 23:50:42 -04:00
|
|
|
development.enable = true;
|
2024-05-07 18:02:59 -04:00
|
|
|
dj.enable = true;
|
|
|
|
gaming.enable = true;
|
|
|
|
media.enable = true;
|
|
|
|
office.enable = true;
|
|
|
|
recording.enable = true;
|
|
|
|
social.enable = true;
|
2024-06-19 14:00:17 -04:00
|
|
|
writing = {
|
|
|
|
enable = true;
|
2024-06-20 09:47:11 -04:00
|
|
|
ngrams.enable = false;
|
2024-06-19 14:00:17 -04:00
|
|
|
};
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
|
|
|
ui = {
|
|
|
|
flatpak.enable = true;
|
|
|
|
gnome.enable = true;
|
|
|
|
};
|
|
|
|
users = {
|
|
|
|
aires = {
|
|
|
|
enable = true;
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
enableTray = false; # Recent versions of STT don't recognize Gnome's tray. Uninstalling for now.
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gremlin = {
|
|
|
|
enable = true;
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
enableTray = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-19 14:33:15 -04:00
|
|
|
# Install additional packages
|
|
|
|
environment.systemPackages = [ pkgs.boinc ];
|
|
|
|
|
2024-05-22 16:47:55 -04:00
|
|
|
# Enable virtual machine manager
|
|
|
|
programs.virt-manager.enable = true;
|
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Move files into target system
|
|
|
|
systemd.tmpfiles.rules = [
|
|
|
|
# Use gremlin user's monitor config for GDM (defined above)
|
|
|
|
"L+ /run/gdm/.config/monitors.xml - - - - ${monitorsConfig}"
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Install Bluetooth device profiles
|
|
|
|
"d /var/lib/bluetooth/AC:50:DE:9F:AB:88/ 0700 root root" # First, make sure the directory exists
|
|
|
|
"L+ /var/lib/bluetooth/AC:50:DE:9F:AB:88/00:0E:DD:72:2F:0C/info - - - - ${shure-aonic-bluetooth}"
|
|
|
|
"L+ /var/lib/bluetooth/AC:50:DE:9F:AB:88/F4:6A:D7:3A:16:75/info - - - - ${xbox-elite-bluetooth}"
|
|
|
|
"L+ /var/lib/bluetooth/AC:50:DE:9F:AB:88/F8:5D:3C:7D:9A:00/info - - - - ${mano-touchpad-bluetooth}"
|
2024-05-29 19:50:11 -04:00
|
|
|
"L+ /var/lib/bluetooth/AC:50:DE:9F:AB:88/00:34:30:47:37:AB/info - - - - ${vitrix-pdp-pro-bluetooth}"
|
2024-05-07 18:02:59 -04:00
|
|
|
];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Configure the virtual machine created by nixos-rebuild build-vm
|
|
|
|
virtualisation.vmVariant.virtualisation = {
|
|
|
|
memorySize = 4096;
|
|
|
|
cores = 4;
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
}
|