Compare commits

..

No commits in common. "07903ac9e32ab81e3ab79f2a6fcda2fc89a9aec3" and "1a4e7fd3f611180a765db9aeb2b4408b2fd3d837" have entirely different histories.

4 changed files with 19 additions and 16 deletions

View file

@ -6,14 +6,10 @@
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
}; };
outputs = { outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
self, let
nixpkgs,
nixpkgs-unstable,
...
} @ inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
# Create unstable package set # Create unstable package set
unstable = import nixpkgs-unstable { unstable = import nixpkgs-unstable {
inherit system; inherit system;
@ -24,15 +20,17 @@
specialArgs = { specialArgs = {
inherit inputs unstable; inherit inputs unstable;
}; };
in { in {
# NixOS system configurations # NixOS system configurations
nixosConfigurations = { nixosConfigurations = {
# congenital-optimist - AMD Threadripper workstation # congenital-optimist - AMD Threadripper workstation
congenital-optimist = nixpkgs.lib.nixosSystem { congenital-optimist = nixpkgs.lib.nixosSystem {
inherit system specialArgs; inherit system specialArgs;
modules = [ modules = [
./machines/congenital-optimist/configuration.nix ./machines/congenital-optimist/configuration.nix
./machines/congenital-optimist/hardware-co.nix ./machines/congenital-optimist/hardware-configuration.nix
./modules/common/nix.nix ./modules/common/nix.nix
./modules/common/base.nix ./modules/common/base.nix
./modules/common/tty.nix ./modules/common/tty.nix
@ -77,8 +75,8 @@
}; };
# Custom packages for the home lab # Custom packages for the home lab
packages.${system} = import ./packages { packages.${system} = import ./packages {
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
}; };
# Development shells for different projects # Development shells for different projects
@ -149,4 +147,4 @@
# Formatter for Nix files # Formatter for Nix files
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra; formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
}; };
} }

View file

@ -6,8 +6,7 @@
... ...
}: { }: {
imports = [ imports = [
./hardware-co.nix ./hardware-configuration.nix
./disk-ram-co.nix
./network-congenital-optimist.nix ./network-congenital-optimist.nix
# Security modules # Security modules
@ -19,6 +18,9 @@
# Services # Services
../../modules/services/nfs-client.nix ../../modules/services/nfs-client.nix
# Hardware modules
../../modules/hardware/amd-workstation.nix
# Desktop environments # Desktop environments
../../modules/desktop/common.nix ../../modules/desktop/common.nix
../../modules/desktop/gnome.nix ../../modules/desktop/gnome.nix

View file

@ -1,7 +1,6 @@
{ {
config, config,
pkgs, pkgs,
lib,
... ...
}: { }: {
# AMD GPU configuration # AMD GPU configuration
@ -17,8 +16,12 @@
powerOnBoot = true; powerOnBoot = true;
}; };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; # ZRAM swap configuration
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; zramSwap = {
enable = true;
algorithm = "zstd";
};
# Audio system (PipeWire) # Audio system (PipeWire)
services.pipewire = { services.pipewire = {
enable = true; enable = true;