From 813b45ad7dbc88d76b19a87c79bbd83841b61137 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 1 Dec 2023 12:29:28 +0100 Subject: [PATCH] Add a function for creating system configurations --- lib/system.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/system.nix diff --git a/lib/system.nix b/lib/system.nix new file mode 100644 index 0000000..dd24c4f --- /dev/null +++ b/lib/system.nix @@ -0,0 +1,12 @@ +name : + { dualBoot ? false } : + nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + { config, pkgs, ... }: { + imports = [ + ../hardware-configuration.nix + ]; + } + ]; + }