Start switch to nixos-facter

This commit is contained in:
Fern Garden 2025-08-23 17:00:28 +08:00
parent 891ce0ce17
commit 32c24866e9
3 changed files with 6485 additions and 14 deletions

View file

@ -7,7 +7,7 @@
nixpkgs-pr-feishin.url = "github:NixOS/nixpkgs?ref=pull/414929/head"; # Feishin 0.17.0
deploy-rs.url = "github:serokell/deploy-rs"; # Remote deployment.
nixos-hardware.url = "github:NixOS/nixos-hardware"; # Hardware specific config.
nixos-facter.url = "github:nix-community/nixos-facter-modules"; # Hardware specific config.
# Secure boot.
lanzaboote = {
@ -40,7 +40,7 @@
};
};
outputs = {nixos-hardware, ...} @ inputs: let
outputs = {...} @ inputs: let
# Import helpers & make functions available.
helpers = import ./helpers.nix inputs;
inherit (helpers) mergeHosts mkHost;
@ -49,26 +49,17 @@
# ThinkPad T480.
(mkHost "muskduck" {
suite = "desktop";
hostModules = [
nixos-hardware.nixosModules.lenovo-thinkpad-t480
];
})
# ThinkPad X220.
(mkHost "pardalote" {
suite = "desktop";
hostModules = [
nixos-hardware.nixosModules.lenovo-thinkpad-x220
];
})
# Raspberry Pi 4B.
(mkHost "weebill" {
suite = "server";
platform = "aarch64-linux";
hostModules = [
nixos-hardware.nixosModules.raspberry-pi-4
];
})
# VM running docker containers.