Add config for outpost

This commit is contained in:
Lauren Lagarde 2025-06-10 22:51:08 -05:00
parent 535b8c5230
commit 4ee0f79bc9
5 changed files with 120 additions and 37 deletions

View file

@ -27,8 +27,9 @@
lix-module.url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-2.tar.gz";
lix-module.inputs.nixpkgs.follows = "nixpkgs";
# Installers
disko.url = "github:nix-community/disko/v1.11.0";
disko.url = "github:nix-community/disko/latest";
disko.inputs.nixpkgs.follows = "nixpkgs";
nixos-generators.url = "github:nix-community/nixos-generators/7c60ba4bc8d6aa2ba3e5b0f6ceb9fc07bc261565";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
@ -48,7 +49,10 @@
locale = "en_US.UTF-8";
stateVersion = "24.11";
pkgs = import nixpkgs {inherit system; };
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
@ -73,14 +77,17 @@
}];
# TODO: Surely a better way, no?
inherited_modules = [
inherited_modules_lite = [
{
time.timeZone = timezone;
system.stateVersion = stateVersion;
}
lix-module.nixosModules.default
home-manager.nixosModules.home-manager
];
inherited_modules = inherited_modules_lite ++ [
lix-module.nixosModules.default
waveforms.nixosModule
disko.nixosModules.default
];
@ -130,7 +137,7 @@
modules = iso_modules ++ [
{
networking.hostName = "ll-nixos-base";
home-manager.users."lauren_lagarde" = { config, ... }: {
home-manager.users."lauren_lagarde" = { config, pkgs-unstable, ... }: {
imports = inputs.mlaga97-home-manager.homeManagerModules."lauren_lagarde@ll-latitude-e5591";
};
}
@ -204,6 +211,15 @@
] ++ inherited_modules;
specialArgs = { inherit inputs pkgs-unstable; };
};
outpost-sdcard = nixos-generators.nixosGenerate {
system = "aarch64-linux";
format = "sd-aarch64";
modules = pi_modules ++ [
./systems/outpost.nix
] ++ inherited_modules_lite;
specialArgs = { inherit inputs pkgs-unstable; };
};
};
packages.x86_64-linux = {
@ -220,7 +236,8 @@
modules = iso_modules ++ [
{
networking.hostName = "ll-nixos";
home-manager.users."lauren_lagarde" = { config, ... }: {
home-manager.users."lauren_lagarde" = {
nixpkgs.config.allowUnfree = true;
imports = inputs.mlaga97-home-manager.homeManagerModules."lauren_lagarde@ll-latitude-e5591";
};
}
@ -238,6 +255,7 @@
{
networking.hostName = "ll-nixos";
home-manager.users."lauren_lagarde" = { config, ... }: {
nixpkgs.config.allowUnfree = true;
imports = inputs.mlaga97-home-manager.homeManagerModules."lauren_lagarde@ll-latitude-e5591";
};
}