migrate to experimental snow.flake schema

This commit is contained in:
do butterflies cry? 2026-02-21 16:21:20 +10:00
parent 2c76f1f6ef
commit ba8d341512
3 changed files with 28 additions and 50 deletions

40
flake.lock generated
View file

@ -144,7 +144,6 @@
"cerulean": {
"inputs": {
"deploy-rs": "deploy-rs",
"home-manager": "home-manager",
"microvm": "microvm",
"nixpkgs": [
"nixpkgs"
@ -155,15 +154,16 @@
]
},
"locked": {
"lastModified": 1771409623,
"narHash": "sha256-1IhHueuQTVCVrui700IP9DfLXwb3kU2rnEWPSdxQY0k=",
"ref": "refs/heads/main",
"rev": "d5211287bd3cb96078f2053488d67d557848a8f2",
"revCount": 176,
"lastModified": 1771654432,
"narHash": "sha256-F2QSihcnsiz5o2AQADQVRG8ijZqoPDmvIQjbReLu680=",
"ref": "bleeding",
"rev": "fb117bb9ff3f521b53f825201ec618624627cfb2",
"revCount": 183,
"type": "git",
"url": "https://tearforge.net/cry/cerulean"
},
"original": {
"ref": "bleeding",
"type": "git",
"url": "https://tearforge.net/cry/cerulean"
}
@ -455,28 +455,6 @@
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"cerulean",
"nixpkgs"
]
},
"locked": {
"lastModified": 1770260404,
"narHash": "sha256-3iVX1+7YUIt23hBx1WZsUllhbmP2EnXrV8tCRbLxHc8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0d782ee42c86b196acff08acfbf41bb7d13eed5b",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.11",
"repo": "home-manager",
"type": "github"
}
},
"home-manager_2": {
"inputs": {
"nixpkgs": [
"nixpkgs-unstable"
@ -497,7 +475,7 @@
"type": "github"
}
},
"home-manager_3": {
"home-manager_2": {
"inputs": {
"nixpkgs": [
"zen",
@ -1548,7 +1526,7 @@
"awww": "awww",
"cachyos": "cachyos",
"cerulean": "cerulean",
"home-manager": "home-manager_2",
"home-manager": "home-manager",
"hyprland-git": "hyprland-git",
"hyprland-plugins": "hyprland-plugins",
"iamb": "iamb",
@ -1856,7 +1834,7 @@
},
"zen": {
"inputs": {
"home-manager": "home-manager_3",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_10"
},
"locked": {

View file

@ -15,7 +15,7 @@
};
cerulean = {
url = "git+https://tearforge.net/cry/cerulean";
url = "git+https://tearforge.net/cry/cerulean?ref=bleeding";
inputs = {
systems.follows = "systems";
nixpkgs.follows = "nixpkgs";
@ -70,6 +70,8 @@
extra-experimental-features = "pipe-operators";
};
outputs = inputs:
import ./snow.nix inputs;
outputs = inputs: let
inherit (inputs.cerulean) snow;
in
snow.flake inputs ./.;
}

View file

@ -1,22 +1,20 @@
{cerulean, ...} @ inputs:
cerulean.mkNexus ./. (self: {
nexus = {
args = {inherit inputs;};
modules = with inputs; [];
{
inputs,
cerulean,
...
} @ args: {
nodes = {
base = inputs.nixpkgs;
homeManager = inputs.home-manager;
args = {inherit inputs;};
modules = with inputs; [];
groups = {
servers = {};
};
nodes = let
inherit
(self.nexus)
groups
;
in {
nodes = {
nixarawrui = {
system = "x86_64-linux";
@ -30,7 +28,7 @@ cerulean.mkNexus ./. (self: {
arcturus = {
system = "x86_64-linux";
groups = [
groups = groups: [
groups.servers
];
@ -110,7 +108,7 @@ cerulean.mkNexus ./. (self: {
lyra = {
system = "x86_64-linux";
groups = [
groups = groups: [
groups.servers
];
@ -122,4 +120,4 @@ cerulean.mkNexus ./. (self: {
};
};
};
})
}