Renamed hardware and disk configuration files for congenital-optimist
This commit is contained in:
parent
1a4e7fd3f6
commit
253b05b45e
4 changed files with 15 additions and 16 deletions
20
flake.nix
20
flake.nix
|
@ -6,10 +6,14 @@
|
|||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
|
||||
let
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-unstable,
|
||||
...
|
||||
} @ inputs: let
|
||||
system = "x86_64-linux";
|
||||
|
||||
|
||||
# Create unstable package set
|
||||
unstable = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
|
@ -20,17 +24,15 @@
|
|||
specialArgs = {
|
||||
inherit inputs unstable;
|
||||
};
|
||||
|
||||
in {
|
||||
# NixOS system configurations
|
||||
nixosConfigurations = {
|
||||
|
||||
# congenital-optimist - AMD Threadripper workstation
|
||||
congenital-optimist = nixpkgs.lib.nixosSystem {
|
||||
inherit system specialArgs;
|
||||
modules = [
|
||||
./machines/congenital-optimist/configuration.nix
|
||||
./machines/congenital-optimist/hardware-configuration.nix
|
||||
./machines/congenital-optimist/hardware-co.nix
|
||||
./modules/common/nix.nix
|
||||
./modules/common/base.nix
|
||||
./modules/common/tty.nix
|
||||
|
@ -75,8 +77,8 @@
|
|||
};
|
||||
|
||||
# Custom packages for the home lab
|
||||
packages.${system} = import ./packages {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
packages.${system} = import ./packages {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
};
|
||||
|
||||
# Development shells for different projects
|
||||
|
@ -147,4 +149,4 @@
|
|||
# Formatter for Nix files
|
||||
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./hardware-co.nix
|
||||
./disk-ram-co.nix
|
||||
./network-congenital-optimist.nix
|
||||
|
||||
# Security modules
|
||||
|
|
|
@ -16,12 +16,8 @@
|
|||
powerOnBoot = true;
|
||||
};
|
||||
|
||||
# ZRAM swap configuration
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "zstd";
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
# Audio system (PipeWire)
|
||||
services.pipewire = {
|
||||
enable = true;
|
Loading…
Add table
Add a link
Reference in a new issue