forked from foxora/nix
migrate to experimental snow.flake schema
This commit is contained in:
parent
a477f18fa6
commit
3acfc33cea
3 changed files with 34 additions and 53 deletions
40
flake.lock
generated
40
flake.lock
generated
|
|
@ -144,7 +144,6 @@
|
||||||
"cerulean": {
|
"cerulean": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
"home-manager": "home-manager",
|
|
||||||
"microvm": "microvm",
|
"microvm": "microvm",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
|
|
@ -155,15 +154,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771409623,
|
"lastModified": 1771654432,
|
||||||
"narHash": "sha256-1IhHueuQTVCVrui700IP9DfLXwb3kU2rnEWPSdxQY0k=",
|
"narHash": "sha256-F2QSihcnsiz5o2AQADQVRG8ijZqoPDmvIQjbReLu680=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "bleeding",
|
||||||
"rev": "d5211287bd3cb96078f2053488d67d557848a8f2",
|
"rev": "fb117bb9ff3f521b53f825201ec618624627cfb2",
|
||||||
"revCount": 176,
|
"revCount": 183,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://tearforge.net/cry/cerulean"
|
"url": "https://tearforge.net/cry/cerulean"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
"ref": "bleeding",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://tearforge.net/cry/cerulean"
|
"url": "https://tearforge.net/cry/cerulean"
|
||||||
}
|
}
|
||||||
|
|
@ -455,28 +455,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager": {
|
"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": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs-unstable"
|
"nixpkgs-unstable"
|
||||||
|
|
@ -497,7 +475,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager_3": {
|
"home-manager_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"zen",
|
"zen",
|
||||||
|
|
@ -1548,7 +1526,7 @@
|
||||||
"awww": "awww",
|
"awww": "awww",
|
||||||
"cachyos": "cachyos",
|
"cachyos": "cachyos",
|
||||||
"cerulean": "cerulean",
|
"cerulean": "cerulean",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager",
|
||||||
"hyprland-git": "hyprland-git",
|
"hyprland-git": "hyprland-git",
|
||||||
"hyprland-plugins": "hyprland-plugins",
|
"hyprland-plugins": "hyprland-plugins",
|
||||||
"iamb": "iamb",
|
"iamb": "iamb",
|
||||||
|
|
@ -1856,7 +1834,7 @@
|
||||||
},
|
},
|
||||||
"zen": {
|
"zen": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager_3",
|
"home-manager": "home-manager_2",
|
||||||
"nixpkgs": "nixpkgs_10"
|
"nixpkgs": "nixpkgs_10"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
cerulean = {
|
cerulean = {
|
||||||
url = "git+https://tearforge.net/cry/cerulean";
|
url = "git+https://tearforge.net/cry/cerulean?ref=bleeding";
|
||||||
inputs = {
|
inputs = {
|
||||||
systems.follows = "systems";
|
systems.follows = "systems";
|
||||||
nixpkgs.follows = "nixpkgs";
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -70,6 +70,8 @@
|
||||||
extra-experimental-features = "pipe-operators";
|
extra-experimental-features = "pipe-operators";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs:
|
outputs = inputs: let
|
||||||
import ./snow.nix inputs;
|
inherit (inputs.cerulean) snow;
|
||||||
|
in
|
||||||
|
snow.flake inputs ./.;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
39
snow.nix
39
snow.nix
|
|
@ -1,22 +1,20 @@
|
||||||
{cerulean, ...} @ inputs:
|
{
|
||||||
cerulean.mkNexus ./. (self: {
|
inputs,
|
||||||
nexus = {
|
cerulean,
|
||||||
args = {inherit inputs;};
|
...
|
||||||
|
} @ args: {
|
||||||
modules = with inputs; [];
|
nodes = {
|
||||||
|
|
||||||
base = inputs.nixpkgs;
|
base = inputs.nixpkgs;
|
||||||
|
homeManager = inputs.home-manager;
|
||||||
|
|
||||||
|
args = {inherit inputs;};
|
||||||
|
modules = with inputs; [];
|
||||||
|
|
||||||
groups = {
|
groups = {
|
||||||
servers = {};
|
servers = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
nodes = let
|
nodes = {
|
||||||
inherit
|
|
||||||
(self.nexus)
|
|
||||||
groups
|
|
||||||
;
|
|
||||||
in {
|
|
||||||
nixarawrui = {
|
nixarawrui = {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
|
|
@ -30,7 +28,7 @@ cerulean.mkNexus ./. (self: {
|
||||||
arcturus = {
|
arcturus = {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
groups = [
|
groups = groups: [
|
||||||
groups.servers
|
groups.servers
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -55,9 +53,12 @@ cerulean.mkNexus ./. (self: {
|
||||||
|
|
||||||
# needed to get interface working
|
# needed to get interface working
|
||||||
qemu.extraArgs = [
|
qemu.extraArgs = [
|
||||||
"-monitor" "unix:/var/lib/microvms/home-assistant/monitor.sock,server,nowait"
|
"-monitor"
|
||||||
"-chardev" "socket,id=serial1,path=/var/lib/microvms/home-assistant/serial.sock,server=on,wait=off"
|
"unix:/var/lib/microvms/home-assistant/monitor.sock,server,nowait"
|
||||||
"-serial" "chardev:serial1"
|
"-chardev"
|
||||||
|
"socket,id=serial1,path=/var/lib/microvms/home-assistant/serial.sock,server=on,wait=off"
|
||||||
|
"-serial"
|
||||||
|
"chardev:serial1"
|
||||||
];
|
];
|
||||||
|
|
||||||
# memory cannot be 2GB so i doubled it and used 4GB:
|
# memory cannot be 2GB so i doubled it and used 4GB:
|
||||||
|
|
@ -110,7 +111,7 @@ cerulean.mkNexus ./. (self: {
|
||||||
lyra = {
|
lyra = {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
groups = [
|
groups = groups: [
|
||||||
groups.servers
|
groups.servers
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -122,4 +123,4 @@ cerulean.mkNexus ./. (self: {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue