From 93a0d5b1813aecb4b5aea5f678475a3de0988f4c Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sun, 29 Mar 2026 07:38:06 -0500 Subject: [PATCH] small retooling for flake.nix --- configuration.nix | 6 +++--- custom.template.nix | 2 +- flake.nix | 7 ++++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index 712ca06..fb1dd41 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,10 +1,10 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, roleStateFile, customFile, ... }: { imports = [ ./modules/modules.nix - /etc/nixos/role-state.nix - /etc/nixos/custom.nix + roleStateFile + customFile ./iso/branding.nix ]; diff --git a/custom.template.nix b/custom.template.nix index d50c99a..652dcc5 100644 --- a/custom.template.nix +++ b/custom.template.nix @@ -10,7 +10,7 @@ # # # After making changes, rebuild with: # # # - # sudo nixos-rebuild switch --impure # + # nixos-rebuild switch # # # ########################################################### diff --git a/flake.nix b/flake.nix index eacf571..5adcddf 100755 --- a/flake.nix +++ b/flake.nix @@ -22,8 +22,13 @@ in { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { + roleStateFile = /etc/nixos/role-state.nix; + customFile = /etc/nixos/custom.nix; + }; modules = [ - { nixpkgs.hostPlatform = "x86_64-linux"; } + self.nixosModules.Sovran_SystemsOS ]; };