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";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
|
outputs = {
|
||||||
let
|
self,
|
||||||
|
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;
|
||||||
|
@ -20,17 +24,15 @@
|
||||||
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-configuration.nix
|
./machines/congenital-optimist/hardware-co.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
|
||||||
|
@ -75,8 +77,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
|
||||||
|
@ -147,4 +149,4 @@
|
||||||
# Formatter for Nix files
|
# Formatter for Nix files
|
||||||
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
|
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-co.nix
|
||||||
|
./disk-ram-co.nix
|
||||||
./network-congenital-optimist.nix
|
./network-congenital-optimist.nix
|
||||||
|
|
||||||
# Security modules
|
# Security modules
|
||||||
|
|
|
@ -16,12 +16,8 @@
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# ZRAM swap configuration
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
zramSwap = {
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
enable = true;
|
|
||||||
algorithm = "zstd";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Audio system (PipeWire)
|
# Audio system (PipeWire)
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
Loading…
Add table
Add a link
Reference in a new issue