From b2bf8fc419bc082095b9e5ca0d34e0cea9b1e28b Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 1 Jul 2024 09:48:29 -0400 Subject: [PATCH] Add configuration for Dimaga --- hosts/Dimaga/default.nix | 115 ++++++++++++++++++++++++ hosts/Dimaga/hardware-configuration.nix | 1 + 2 files changed, 116 insertions(+) create mode 100644 hosts/Dimaga/default.nix create mode 100644 hosts/Dimaga/hardware-configuration.nix diff --git a/hosts/Dimaga/default.nix b/hosts/Dimaga/default.nix new file mode 100644 index 0000000..5f2ab86 --- /dev/null +++ b/hosts/Dimaga/default.nix @@ -0,0 +1,115 @@ +{ + config, + lib, + pkgs, + ... +}: + +let + # Do not change this value! This tracks when NixOS was installed on your system. + stateVersion = "24.11"; +in +{ + imports = [ ./hardware-configuration.nix ]; + + system.stateVersion = stateVersion; + + ###*** Configure your system below this line. ***### + # Set your time zone. + # To see all available timezones, run `timedatectl list-timezones`. + time.timeZone = "America/New_York"; + + # Configure the system. + aux.system = { + # Enable to allow unfree (e.g. closed source) packages. + # Some settings may override this (e.g. enabling Nvidia GPU support). + # https://nixos.org/manual/nixpkgs/stable/#sec-allow-unfree + allowUnfree = true; + + apps = { + development.enable = true; + media.enable = true; + office.enable = true; + recording.enable = true; + social.enable = true; + writing.enable = true; + }; + + # Enable Secure Boot support. + bootloader = { + enable = true; + secureboot.enable = true; + tpm2.enable = true; + }; + + # Use Disko to partition and format disks + disko = { + enable = true; + primaryDiskID = ""; + swapFile = { + enable = true; + size = "16G"; + }; + }; + + # Change the default text editor. Options are "emacs", "nano", or "vim". + editor = "nano"; + + # Enable GPU support. + gpu = { + intel.enable = true; + nvidia = { + enable = false; + hybrid = { + enable = false; + busIDs.nvidia = ""; + busIDs.intel = ""; + }; + }; + }; + + # Change how long old generations are kept for. + retentionPeriod = "14d"; + + services = { + autoUpgrade = { + enable = true; + configDir = config.secrets.nixConfigFolder; + onCalendar = "daily"; + user = config.users.users.aires.name; + }; + virtualization.enable = true; + }; + + ui = { + desktops.gnome = { + enable = true; + tripleBuffering.enable = true; + }; + flatpak = { + # Enable Flatpak support. + enable = true; + + # Define Flatpak packages to install. + packages = [ + "com.github.tchx84.Flatseal" + "com.github.wwmm.easyeffects" + "md.obsidian.Obsidian" + "org.keepassxc.KeePassXC" + "org.mozilla.firefox" + ]; + }; + }; + + users.aires = { + enable = true; + services = { + syncthing = { + enable = true; + autostart = true; + enableTray = false; + }; + }; + }; + }; +} diff --git a/hosts/Dimaga/hardware-configuration.nix b/hosts/Dimaga/hardware-configuration.nix new file mode 100644 index 0000000..e3dad4c --- /dev/null +++ b/hosts/Dimaga/hardware-configuration.nix @@ -0,0 +1 @@ +builtins.abort "Need to generate hardware-configuration.nix for Dimaga" \ No newline at end of file