summaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
Diffstat (limited to 'systems')
-rw-r--r--systems/darwin.nix11
-rw-r--r--systems/default.nix38
-rw-r--r--systems/nixinate.nix9
-rw-r--r--systems/nixos.nix19
4 files changed, 44 insertions, 33 deletions
diff --git a/systems/darwin.nix b/systems/darwin.nix
new file mode 100644
index 0000000..f36d152
--- /dev/null
+++ b/systems/darwin.nix
@@ -0,0 +1,11 @@
+{self, ...}: {
+ flake = {
+ darwinConfigurations = let
+ inherit (self.lib) darwinSystem;
+ in {
+ caroline = darwinSystem {
+ modules = [./caroline];
+ };
+ };
+ };
+}
diff --git a/systems/default.nix b/systems/default.nix
index 881310b..7bf8c5e 100644
--- a/systems/default.nix
+++ b/systems/default.nix
@@ -1,35 +1,7 @@
{
- inputs,
- self,
- ...
-}: {
- flake = {
- darwinConfigurations = let
- inherit (self.lib) darwinSystem;
- in {
- caroline = darwinSystem {
- modules = [./caroline];
- };
- };
-
- nixosConfigurations = let
- inherit (self.lib) nixosSystem nixosSystemStable;
- in {
- glados = nixosSystem {
- modules = [./glados];
- };
-
- glados-wsl = nixosSystem {
- modules = [./glados-wsl];
- };
-
- atlas = nixosSystemStable {
- modules = [./atlas];
- };
- };
- };
-
- perSystem = {system, ...}: {
- apps = (inputs.nixinate.nixinate.${system} self).nixinate;
- };
+ imports = [
+ ./darwin.nix
+ ./nixos.nix
+ ./nixinate.nix
+ ];
}
diff --git a/systems/nixinate.nix b/systems/nixinate.nix
new file mode 100644
index 0000000..5f1c66f
--- /dev/null
+++ b/systems/nixinate.nix
@@ -0,0 +1,9 @@
+{
+ inputs,
+ self,
+ ...
+}: {
+ perSystem = {system, ...}: {
+ apps = (inputs.nixinate.nixinate.${system} self).nixinate;
+ };
+}
diff --git a/systems/nixos.nix b/systems/nixos.nix
new file mode 100644
index 0000000..9f95f02
--- /dev/null
+++ b/systems/nixos.nix
@@ -0,0 +1,19 @@
+{self, ...}: {
+ flake = {
+ nixosConfigurations = let
+ inherit (self.lib) nixosSystem nixosSystemStable;
+ in {
+ glados = nixosSystem {
+ modules = [./glados];
+ };
+
+ glados-wsl = nixosSystem {
+ modules = [./glados-wsl];
+ };
+
+ atlas = nixosSystemStable {
+ modules = [./atlas];
+ };
+ };
+ };
+}