summaryrefslogtreecommitdiffstats
path: root/hosts/office-precision/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/office-precision/configuration.nix')
-rw-r--r--hosts/office-precision/configuration.nix123
1 files changed, 123 insertions, 0 deletions
diff --git a/hosts/office-precision/configuration.nix b/hosts/office-precision/configuration.nix
new file mode 100644
index 0000000..31ba38e
--- /dev/null
+++ b/hosts/office-precision/configuration.nix
@@ -0,0 +1,123 @@
+{ config, lib, pkgs, ... }: {
+ imports = [
+ ./g610.nix
+ ./wg.nix
+ ];
+
+ # Setup bootloader
+ boot._loader.enable = true;
+
+ # Enable common options
+ _archetypes = {
+ profiles = {
+ desktop = {
+ enable = true;
+ home.users.timmy.enable = true;
+ };
+ gnome = {
+ home.users.timmy.enable = true;
+ home.users.guest.enable = true;
+ enable = true;
+ };
+ btrfs.enable = true;
+ };
+ collections = {
+ desktop = {
+ extraUtilities.enable = true;
+ chromium.enable = true;
+ graphics.enable = true;
+ office.enable = true;
+ };
+ development = {
+ docker.enable = true;
+ web = {
+ node.enable = true;
+ };
+ };
+ virtualization.enable = true;
+ };
+ };
+
+ # Add second ip address for flex-wg-router
+ networking = {
+ _interfaceLabels = {
+ enable = true;
+ interfaces.eth0 = "48:4d:7e:f8:96:47";
+ };
+ interfaces.eth0 = {
+ useDHCP = true;
+
+ ipv4.addresses = [{
+ address = "10.1.1.3";
+ prefixLength = 24;
+ }];
+ };
+ };
+
+ # Enable user timmy
+ _users.timmy = {
+ enable = true;
+ nas = {
+ enable = true;
+ office.enable = true;
+ office.automount = true;
+ };
+ };
+
+ users.users.guest = {
+ description = "Guest";
+ isNormalUser = true;
+ };
+
+ # Disable suspend
+ systemd._suspend.disable = true;
+
+ # Allow unfree for nvidia
+ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
+ "nvidia-kernel-modules"
+ "nvidia-settings"
+ "nvidia-x11"
+ ];
+
+ # Use nvidia driver
+ services.xserver.videoDrivers = [ "nvidia" ];
+ hardware.nvidia = {
+ modesetting.enable = true; # Required
+ powerManagement.enable = false; # Can cause bugs
+ powerManagement.finegrained = false; # Only works on turing and newer
+ nvidiaSettings = true;
+ open = false; # Not compatible w/ GTX-1030
+ package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
+ forceFullCompositionPipeline = true; # Enables vsync
+ };
+
+ # Configure home
+ home-manager.users.timmy = {
+ gtk._mintTheme = {
+ dark = true;
+ color = "Blue";
+ icons.color = "Blue";
+ };
+ programs._seasonalwallpaper.wallpapers.download = true;
+ fonts.fontconfig = {
+ subpixelRendering = "rgb";
+ hinting = "none";
+ };
+ gtk.gtk3.bookmarks = [
+ "file:///home/timmy/docs/src/sites/admin Admin"
+ "file:///media/chexx/chexx cHEXx"
+ ];
+ };
+ home-manager.users.guest = {
+ gtk.gtk3.bookmarks = [
+ "file:///media/chexx/chexx cHEXx"
+ ];
+ fonts.fontconfig = {
+ subpixelRendering = "rgb";
+ hinting = "none";
+ };
+ home.stateVersion = "26.05";
+ };
+
+ system.stateVersion = "24.11";
+}