From b679cae9ecb52ea7115db11f440f4742aed3111f Mon Sep 17 00:00:00 2001 From: intergrav Date: Fri, 10 Jul 2026 13:08:22 -0400 Subject: [PATCH] d-latitude --- flake.lock | 57 +++++++++++++++++++++++- flake.nix | 5 +++ hosts/nixos/d-latitude/default.nix | 68 +++++++++++++++++++++++++++++ hosts/nixos/d-latitude/hardware.nix | 32 ++++++++++++++ hosts/nixos/default.nix | 6 +++ 5 files changed, 167 insertions(+), 1 deletion(-) create mode 100644 hosts/nixos/d-latitude/default.nix create mode 100644 hosts/nixos/d-latitude/hardware.nix diff --git a/flake.lock b/flake.lock index e94fcb8..f209d3a 100644 --- a/flake.lock +++ b/flake.lock @@ -16,6 +16,27 @@ "url": "https://tangled.org/@jakelazaroff.com/actor-typeahead" } }, + "aerothemeplasma-nix": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1783111738, + "narHash": "sha256-TzLdayj0p8BDNe5p+E2RAbEA+lfCdYJh/LWX4D/bNDo=", + "owner": "nyakase", + "repo": "aerothemeplasma-nix", + "rev": "5eb9e4e98887a81e2458537e988ce6890845ceff", + "type": "github" + }, + "original": { + "owner": "nyakase", + "repo": "aerothemeplasma-nix", + "type": "github" + } + }, "agenix": { "inputs": { "darwin": "darwin", @@ -105,7 +126,7 @@ "crane": "crane", "dream2nix": "dream2nix", "fenix": "fenix", - "flake-parts": "flake-parts", + "flake-parts": "flake-parts_2", "nixglhost": "nixglhost", "nixpkgs": "nixpkgs_2", "pyproject-build-systems": "pyproject-build-systems", @@ -203,6 +224,24 @@ } }, "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1778716662, + "narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_2": { "inputs": { "nixpkgs-lib": [ "exo", @@ -488,6 +527,21 @@ "type": "github" } }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1777168982, + "narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1775595990, @@ -663,6 +717,7 @@ }, "root": { "inputs": { + "aerothemeplasma-nix": "aerothemeplasma-nix", "agenix": "agenix", "exo": "exo", "home-manager": "home-manager_2", diff --git a/flake.nix b/flake.nix index bcb4999..5c2e778 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,11 @@ }; agenix.url = "github:ryantm/agenix"; + aerothemeplasma-nix = { + url = "github:nyakase/aerothemeplasma-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + exo.url = "github:exo-explore/exo/v1.0.71"; tangled.url = "git+https://tangled.org/tangled.org/core?ref=refs/tags/v1.15.0-alpha"; tinysub.url = "git+https://tangled.org/devins.page/tinysub"; diff --git a/hosts/nixos/d-latitude/default.nix b/hosts/nixos/d-latitude/default.nix new file mode 100644 index 0000000..3f3151d --- /dev/null +++ b/hosts/nixos/d-latitude/default.nix @@ -0,0 +1,68 @@ +{ + config, + pkgs, + ... +}: { + imports = [ + ./hardware.nix + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + boot.kernelPackages = pkgs.linuxPackages_latest; + + boot.plymouth.enable = true; + + networking = { + hostName = "d-latitude"; + networkmanager.enable = true; + }; + + services.pulseaudio.enable = false; + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + }; + + programs.firefox.enable = true; + + powerManagement.enable = true; + powerManagement.powertop.enable = true; + + services.power-profiles-daemon.enable = false; + services.auto-cpufreq.enable = true; + + services.displayManager.sddm.enable = true; + services.desktopManager.plasma6.enable = true; + services.displayManager.defaultSession = "aerothemeplasma"; + + programs.aeroshell = { + enable = true; + fonts.segoe.enable = true; + polkit.enable = true; + aerothemeplasma = { + enable = true; + plymouth.enable = true; + sddm.enable = true; + }; + }; + programs.linver.enable = true; + programs.execbin.enable = true; + + programs.gamemode.enable = true; + + environment.systemPackages = with pkgs; [ + prismlauncher + dorion + ]; + + nixpkgs.config.permittedInsecurePackages = [ + "pnpm-9.15.9" + ]; + nixpkgs.config.allowUnfree = true; + + system.stateVersion = "26.11"; +} diff --git a/hosts/nixos/d-latitude/hardware.nix b/hosts/nixos/d-latitude/hardware.nix new file mode 100644 index 0000000..ab1f347 --- /dev/null +++ b/hosts/nixos/d-latitude/hardware.nix @@ -0,0 +1,32 @@ +{ + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-amd"]; + boot.extraModulePackages = []; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/97405261-c9a3-4ef8-9897-3873ad2d5bb9"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/F71A-CEA5"; + fsType = "vfat"; + options = ["fmask=0077" "dmask=0077"]; + }; + + swapDevices = []; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/hosts/nixos/default.nix b/hosts/nixos/default.nix index fff64c1..cff544b 100644 --- a/hosts/nixos/default.nix +++ b/hosts/nixos/default.nix @@ -25,4 +25,10 @@ inputs.nixpkgs.lib.mapAttrs ( bluepill-proxy = [ ../../modules/users/devin ]; + + d-latitude = [ + ../../modules/users/devin + ../../modules/users/devin/desktop + inputs.aerothemeplasma-nix.nixosModules.aerothemeplasma-nix + ]; } -- 2.51.2