small retooling for flake.nix

This commit is contained in:
2026-03-29 07:38:06 -05:00
parent 33e3db9998
commit 93a0d5b181
3 changed files with 10 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, roleStateFile, customFile, ... }:
{ {
imports = [ imports = [
./modules/modules.nix ./modules/modules.nix
/etc/nixos/role-state.nix roleStateFile
/etc/nixos/custom.nix customFile
./iso/branding.nix ./iso/branding.nix
]; ];

View File

@@ -10,7 +10,7 @@
# # # #
# After making changes, rebuild with: # # After making changes, rebuild with: #
# # # #
# sudo nixos-rebuild switch --impure # # nixos-rebuild switch #
# # # #
########################################################### ###########################################################

View File

@@ -22,8 +22,13 @@
in in
{ {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
roleStateFile = /etc/nixos/role-state.nix;
customFile = /etc/nixos/custom.nix;
};
modules = [ modules = [
{ nixpkgs.hostPlatform = "x86_64-linux"; } self.nixosModules.Sovran_SystemsOS
]; ];
}; };