From decb028d1924d62cd03f7e57ceec0cb5b0598a46 Mon Sep 17 00:00:00 2001 From: _cry64 Date: Sat, 13 Dec 2025 09:30:20 +1000 Subject: [PATCH] add flake --- flake.lock | 27 ++++++++++++++++++ flake.nix | 34 +++++++++++++++++++++++ {cerulean/CeruleanOS => lib}/cdesktop.nix | 0 {cerulean/CeruleanOS => lib}/csystem.nix | 0 {cerulean/CeruleanOS => lib}/cuser.nix | 0 5 files changed, 61 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix rename {cerulean/CeruleanOS => lib}/cdesktop.nix (100%) rename {cerulean/CeruleanOS => lib}/csystem.nix (100%) rename {cerulean/CeruleanOS => lib}/cuser.nix (100%) diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..7666840 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1756754095, + "narHash": "sha256-9Rsn9XEWINExosFkKEqdp8EI6Mujr1gmQiyrEcts2ls=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "7c815e513adbf03c9098b2bd230c1e0525c8a7f9", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-25.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..823fcda --- /dev/null +++ b/flake.nix @@ -0,0 +1,34 @@ +{ + description = "Your Nix Cloud Simplified"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; + + systems.url = "github:nix-systems/default"; + }; + + outputs = inputs @ { + self, + systems, + nixpkgs, + ... + }: let + defaultSystems = ["aarch64-darwin" "aarch64-linux" "i686-linux" "x86_64-darwin" "x86_64-linux"]; + + forAllSystems = f: + nixpkgs.lib.genAttrs defaultSystems (system: + f system (import nixpkgs { + inherit system; + overlays = builtins.attrValues self.overlays; + })); + in { + overlays.default = final: prev: { + }; + + checks = self.packages; + packages = + forAllSystems (system: pkgs: rec { + }); + }; +} diff --git a/cerulean/CeruleanOS/cdesktop.nix b/lib/cdesktop.nix similarity index 100% rename from cerulean/CeruleanOS/cdesktop.nix rename to lib/cdesktop.nix diff --git a/cerulean/CeruleanOS/csystem.nix b/lib/csystem.nix similarity index 100% rename from cerulean/CeruleanOS/csystem.nix rename to lib/csystem.nix diff --git a/cerulean/CeruleanOS/cuser.nix b/lib/cuser.nix similarity index 100% rename from cerulean/CeruleanOS/cuser.nix rename to lib/cuser.nix