migrate to experimental snow.flake schema #4
6 changed files with 60 additions and 70 deletions
70
flake.lock
generated
70
flake.lock
generated
|
|
@ -144,28 +144,29 @@
|
||||||
"cerulean": {
|
"cerulean": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
"home-manager": "home-manager",
|
|
||||||
"microvm": "microvm",
|
"microvm": "microvm",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nt": "nt",
|
"nt": "nt",
|
||||||
|
"sops-nix": "sops-nix",
|
||||||
"systems": [
|
"systems": [
|
||||||
"systems"
|
"systems"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771409623,
|
"lastModified": 1772900511,
|
||||||
"narHash": "sha256-1IhHueuQTVCVrui700IP9DfLXwb3kU2rnEWPSdxQY0k=",
|
"narHash": "sha256-JTEO5WzqgrU61EBz2UFQ2jtN8de+RnMC1FnJExJtCpw=",
|
||||||
"ref": "refs/heads/main",
|
"owner": "cry128",
|
||||||
"rev": "d5211287bd3cb96078f2053488d67d557848a8f2",
|
"repo": "cerulean",
|
||||||
"revCount": 176,
|
"rev": "02ded5d4f0d53eaeb68f1b68469926fd21acc6db",
|
||||||
"type": "git",
|
"type": "github"
|
||||||
"url": "https://tearforge.net/cry/cerulean"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"owner": "cry128",
|
||||||
"url": "https://tearforge.net/cry/cerulean"
|
"ref": "v0.2.5-alpha",
|
||||||
|
"repo": "cerulean",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"crane": {
|
"crane": {
|
||||||
|
|
@ -455,28 +456,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 +476,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager_3": {
|
"home-manager_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"zen",
|
"zen",
|
||||||
|
|
@ -1548,7 +1527,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",
|
||||||
|
|
@ -1625,6 +1604,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"sops-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"cerulean",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772495394,
|
||||||
|
"narHash": "sha256-hmIvE/slLKEFKNEJz27IZ8BKlAaZDcjIHmkZ7GCEjfw=",
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"rev": "1d9b98a29a45abe9c4d3174bd36de9f28755e3ff",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"spectrum": {
|
"spectrum": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
@ -1856,7 +1856,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 = "github:cry128/cerulean/v0.2.5-alpha";
|
||||||
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 ./.;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
nixpkgs.channels.default = {
|
|
||||||
default = lib.mkForce config.nixpkgs.channels.default.upkgs;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -12,7 +12,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf enabled {
|
config = lib.mkIf enabled {
|
||||||
nixpkgs.channels.default = {
|
nixpkgs.channels = {
|
||||||
upkgs.overlays = [
|
upkgs.overlays = [
|
||||||
(self: super: {
|
(self: super: {
|
||||||
amdgpu-ignore-ctx-privileges = super.fetchpatch {
|
amdgpu-ignore-ctx-privileges = super.fetchpatch {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{inputs, ...} @ args: {
|
{inputs, ...} @ args: {
|
||||||
nixpkgs.channels = {
|
nixpkgs.channels = {
|
||||||
default = {
|
base = {
|
||||||
overlays = [(import ./overlays.nix args)];
|
overlays = [(import ./overlays.nix args)];
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
39
snow.nix
39
snow.nix
|
|
@ -1,22 +1,16 @@
|
||||||
{cerulean, ...} @ inputs:
|
{inputs, ...} @ args: {
|
||||||
cerulean.mkNexus ./. (self: {
|
nodes = {
|
||||||
nexus = {
|
|
||||||
args = {inherit inputs;};
|
|
||||||
|
|
||||||
modules = with inputs; [];
|
|
||||||
|
|
||||||
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 +24,7 @@ cerulean.mkNexus ./. (self: {
|
||||||
arcturus = {
|
arcturus = {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
groups = [
|
groups = groups: [
|
||||||
groups.servers
|
groups.servers
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -55,9 +49,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:
|
||||||
|
|
@ -103,23 +100,23 @@ cerulean.mkNexus ./. (self: {
|
||||||
deploy.ssh = {
|
deploy.ssh = {
|
||||||
host = "10.16.1.163";
|
host = "10.16.1.163";
|
||||||
port = 2222;
|
port = 2222;
|
||||||
user = "foxora";
|
publicKeys = [];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
lyra = {
|
lyra = {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
groups = [
|
groups = groups: [
|
||||||
groups.servers
|
groups.servers
|
||||||
];
|
];
|
||||||
|
|
||||||
deploy.ssh = {
|
deploy.ssh = {
|
||||||
host = "10.16.1.58";
|
host = "10.16.1.58";
|
||||||
port = 2222;
|
port = 2222;
|
||||||
user = "foxora";
|
publicKeys = [];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue