Move zeus to ezconfigs

This commit is contained in:
Chris Dombroski 2024-09-19 21:56:38 -04:00
parent fe1b1eb6e8
commit 120c8ea9f0
5 changed files with 19 additions and 26 deletions

View file

@ -120,21 +120,6 @@
} }
]; ];
}; };
zeus = inputs.nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
pkgs-unstable = inputs.nixunstable.legacyPackages.x86_64-linux;
};
modules = [
./systems/zeus/configuration.nix
inputs.impermanence.nixosModules.impermanence
inputs.nixos-hardware.nixosModules.supermicro
inputs.nixos-hardware.nixosModules.common-cpu-amd
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
inputs.nixos-hardware.nixosModules.common-pc
];
};
orangepihole = inputs.nixpkgs.lib.nixosSystem { orangepihole = inputs.nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;

View file

@ -1,20 +1,27 @@
{ {
config, config,
pkgs, pkgs,
pkgs-unstable,
inputs, inputs,
ezModules,
... ...
}: }:
let
pkgs-unstable = import inputs.nixunstable { inherit (pkgs.stdenv) system; };
in
{ {
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./zeus/hardware-configuration.nix
../../nixos-modules inputs.impermanence.nixosModules.impermanence
../../nixos-modules/aarch64-emu.nix inputs.nixos-hardware.nixosModules.supermicro
../../nixos-modules/networkd-base.nix inputs.nixos-hardware.nixosModules.common-cpu-amd
../../nixos-modules/smartd.nix inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
../../nixos-modules/plymouth.nix inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
inputs.nixos-hardware.nixosModules.common-pc
ezModules.aarch64-emu
ezModules.networkd-base
ezModules.smartd
ezModules.plymouth
]; ];
boot = { boot = {
@ -407,6 +414,7 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH7rvqA2VG9kOPHBNgfna0YA+jEjIR6ZAKrdgWVWQjCV root@orangepihole" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH7rvqA2VG9kOPHBNgfna0YA+jEjIR6ZAKrdgWVWQjCV root@orangepihole"
]; ];
}; };
nix.settings.trusted-users = ["nixremote" ];
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.

View file

@ -153,6 +153,6 @@
IdentitiesOnly yes IdentitiesOnly yes
IdentityFile ${config.sops.secrets."nixremote/sshkey".path} IdentityFile ${config.sops.secrets."nixremote/sshkey".path}
''; '';
nix.distributedBuilds = false; nix.distributedBuilds = true;
#nix.settings.max-jobs = 0; nix.settings.max-jobs = 0;
} }

View file

@ -109,7 +109,7 @@
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
vim-full # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim-full # Do not forget to add an editor to edit zeus.nix! The Nano editor is also installed by default.
libreoffice-qt libreoffice-qt
firefox firefox
syncthing syncthing