Skip to content

Commit

Permalink
Simplify Ficolo builder configuration and fix nix issues and formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kaapu <[email protected]>
  • Loading branch information
mkaapu committed Nov 28, 2023
1 parent 7118fda commit 3e16351
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 86 deletions.
34 changes: 0 additions & 34 deletions hosts/ficolobuild/configuration.nix

This file was deleted.

55 changes: 38 additions & 17 deletions hosts/ficolobuild/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,46 @@
# SPDX-License-Identifier: Apache-2.0
{
self,
config,
inputs,
lib,
modulesPath,
...
}: {
flake.nixosConfigurations = {
generic-x86_64-linux = lib.nixosSystem {
specialArgs = {
inherit self inputs;
};
modules = [
inputs.disko.nixosModules.disko
(with self.nixosModules; [
user-cazfi
user-hrosten
user-jrautiola
user-mkaapu
])
./configuration.nix
];
};
};
imports = lib.flatten [
(modulesPath + "/installer/scan/not-detected.nix")
inputs.disko.nixosModules.disko
(with self.nixosModules; [
common
user-cazfi
user-hrosten
user-jrautiola
user-mkaapu
])
./disk-config.nix
];

boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "megaraid_sas" "nvme" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];

# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

# networking.hostName = "nixos"; # Define your hostname.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.

# Enable the OpenSSH daemon.
services.openssh.enable = true;
}
9 changes: 6 additions & 3 deletions hosts/ficolobuild/disk-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
};
ESP = {
size = "512M";
type = "EFOO";
format = "vfat";
mountpoint = "/boot";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
Expand Down
32 changes: 0 additions & 32 deletions hosts/ficolobuild/hardware-configuration.nix

This file was deleted.

0 comments on commit 3e16351

Please sign in to comment.