summaryrefslogtreecommitdiff
path: root/hosts/ades
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-05-09 17:54:45 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-05-09 17:54:45 -0500
commit4ea08b3976188eb01a74548d68b227a7794b4caa (patch)
tree505c0df98ed00ed592be15895b8ed3eb7aa9e2c3 /hosts/ades
downloadnixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.tar.gz
nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.zip
Add current configuration
Diffstat (limited to 'hosts/ades')
-rw-r--r--hosts/ades/common.nix60
-rw-r--r--hosts/ades/default.nix24
-rw-r--r--hosts/ades/firefox-prefs.nix51
-rw-r--r--hosts/ades/hardware.nix23
-rw-r--r--hosts/ades/styx.nix21
5 files changed, 179 insertions, 0 deletions
diff --git a/hosts/ades/common.nix b/hosts/ades/common.nix
new file mode 100644
index 0000000..1a32da0
--- /dev/null
+++ b/hosts/ades/common.nix
@@ -0,0 +1,60 @@
+{ lib, pkgs, ... }:
+
+{
+ this.pc.enable = true;
+ this.overlays.emacs.enable = lib.mkForce false;
+ this.gui.enable = true;
+
+ this.locales.default = "us";
+
+ time.timeZone = "America/Chicago";
+
+ this.sets = {
+ arch.tools = true;
+ cli.tools.full = true;
+ net.tools.minimal = true;
+ sound.tools = true;
+ sys.tools = true;
+ };
+ environment.systemPackages = with pkgs; [
+ emacs
+ jre
+ rxvt-unicode
+ nethack
+ sil-q
+ ppsspp
+ wesnoth
+ minetest
+ gzdoom
+ teeworlds
+ superTuxKart
+ mindustry
+ shattered-pixel-dungeon
+ bzflag
+ xonotic-glx
+ mgba
+ taisei
+ unvanquished
+ ];
+
+ programs.firefox = {
+ enable = true;
+ package = pkgs.firefox-esr;
+ } //
+ import ./firefox-prefs.nix {};
+
+ services.xserver = {
+ enable = true;
+ windowManager.awesome = {
+ enable = true;
+ };
+ };
+
+ services.joycond.enable = true;
+
+ this.hosts = {
+ mine = true;
+ };
+
+ system.stateVersion = "24.11";
+}
diff --git a/hosts/ades/default.nix b/hosts/ades/default.nix
new file mode 100644
index 0000000..b4cae58
--- /dev/null
+++ b/hosts/ades/default.nix
@@ -0,0 +1,24 @@
+{ mkHost, hosts, nixpkgs }:
+
+let inherit (nixpkgs.lib.attrsets)
+ mergeAttrsList;
+in
+mergeAttrsList
+ ((map (h: mkHost "x86_64-linux" h
+ [ ./common.nix ])
+ [
+ "acheron"
+ "asphodel"
+ "cocytus"
+ "elysium"
+ "lethe"
+ "makaron"
+ "oneiron"
+ "tartarus"
+ ])
+ ++
+ (map (h: mkHost "x86_64-linux" h
+ [ ./common.nix ./${h}.nix ])
+ [
+ "styx"
+ ]))
diff --git a/hosts/ades/firefox-prefs.nix b/hosts/ades/firefox-prefs.nix
new file mode 100644
index 0000000..47a10c6
--- /dev/null
+++ b/hosts/ades/firefox-prefs.nix
@@ -0,0 +1,51 @@
+{ ... }:
+
+{
+ policies = {
+ SearchBar = "separate";
+ SearchEngines = {
+ Remove = ["Google" "Amazon.com" "Bing" "EBay"];
+ Default = "DuckDuckGo";
+ };
+ DisableTelemetry = true;
+ EnableTrackingProtection = { Value = true; };
+ OverrideFirstRunPage = "";
+ OverridePostUpdatePage = "";
+ NoDefaultBookmarks = true;
+ FirefoxSuggest = {
+ WebSuggestions = false;
+ SponsoredSuggestions = false;
+ ImproveSuggest = false;
+ };
+ FirefoxHome = {
+ Search = true;
+ TopSites = false;
+ SponsoredTopSites = false;
+ Highlights = false;
+ Pocket = false;
+ SponsoredPocket = false;
+ Snippets = false;
+ };
+ UserMessaging = {
+ WhatsNew = false;
+ ExtensionRecommendations = false;
+ FeatureRecommendations = false;
+ UrlbarInterventions = false;
+ SkipOnboarding = true;
+ MoreFromMozilla = false;
+ };
+ ExtensionSettings."uBlock@raymondhill.net" = {
+ installation_mode = "force_installed";
+ install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
+ };
+ };
+
+ preferencesStatus = "default";
+ preferences = {
+ "browser.aboutConfig.showWarning" = false;
+ "browser.uidensity" = 1;
+ "browser.backspace_action" = 1;
+ "browser.ctrlTab.sortByRecentlyUsed" = true;
+ "browser.startup.page" = 3;
+ };
+}
diff --git a/hosts/ades/hardware.nix b/hosts/ades/hardware.nix
new file mode 100644
index 0000000..4698ae8
--- /dev/null
+++ b/hosts/ades/hardware.nix
@@ -0,0 +1,23 @@
+{ pkgs, ... }:
+
+{
+ boot.initrd.availableKernelModules = [];
+ boot.initrd.kernelModules = [
+ "iwlwifi"
+ ];
+ boot.kernelModules = [
+ "kvm-intel"
+ ];
+ boot.extraModulePackages = [];
+
+ hardware.graphics.extraPackages = [pkgs.intel-vaapi-driver];
+ services.xserver.videoDrivers = ["intel"];
+
+ hardware.firmware = with pkgs; [
+ linux-firmware
+ ];
+
+ hardware.bluetooth.enable = true;
+
+ nixpkgs.hostPlatform = "x86_64-linux";
+}
diff --git a/hosts/ades/styx.nix b/hosts/ades/styx.nix
new file mode 100644
index 0000000..ba35edd
--- /dev/null
+++ b/hosts/ades/styx.nix
@@ -0,0 +1,21 @@
+{ lib, ... }:
+
+let swapPart = "/dev/sda2";
+in
+{
+ boot.resumeDevice = swapPart;
+
+ fileSystems."/" = lib.mkForce {
+ device = "/dev/sda1";
+ fsType = "ext4";
+ };
+
+ fileSystems."/home" = lib.mkForce {
+ device = "/dev/sda3";
+ fsType = "ext4";
+ };
+
+ swapDevices = [
+ { device = swapPart; }
+ ];
+}