1
0
Fork 0
forked from foxora/nix

Compare commits

..

7 commits

6 changed files with 32 additions and 22 deletions

20
flake.lock generated
View file

@ -155,18 +155,18 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772900511, "lastModified": 1772502315,
"narHash": "sha256-JTEO5WzqgrU61EBz2UFQ2jtN8de+RnMC1FnJExJtCpw=", "narHash": "sha256-DHE6jU97GZ+QfUdPi4plZRnXtAvtGubOxqA5sQ4DD9M=",
"owner": "cry128", "ref": "bleeding",
"repo": "cerulean", "rev": "9bab917d8cc3b16f3c73b1980fcb55a4b5ce5239",
"rev": "02ded5d4f0d53eaeb68f1b68469926fd21acc6db", "revCount": 191,
"type": "github" "type": "git",
"url": "https://tearforge.net/cry/cerulean"
}, },
"original": { "original": {
"owner": "cry128", "ref": "bleeding",
"ref": "v0.2.5-alpha", "type": "git",
"repo": "cerulean", "url": "https://tearforge.net/cry/cerulean"
"type": "github"
} }
}, },
"crane": { "crane": {

View file

@ -15,7 +15,7 @@
}; };
cerulean = { cerulean = {
url = "github:cry128/cerulean/v0.2.5-alpha"; url = "git+https://tearforge.net/cry/cerulean?ref=bleeding";
inputs = { inputs = {
systems.follows = "systems"; systems.follows = "systems";
nixpkgs.follows = "nixpkgs"; nixpkgs.follows = "nixpkgs";

View file

@ -0,0 +1,9 @@
{
lib,
config,
...
}: {
nixpkgs.channels.default = {
default = lib.mkForce config.nixpkgs.channels.default.upkgs;
};
}

View file

@ -12,7 +12,7 @@ in {
}; };
config = lib.mkIf enabled { config = lib.mkIf enabled {
nixpkgs.channels = { nixpkgs.channels.default = {
upkgs.overlays = [ upkgs.overlays = [
(self: super: { (self: super: {
amdgpu-ignore-ctx-privileges = super.fetchpatch { amdgpu-ignore-ctx-privileges = super.fetchpatch {

View file

@ -1,6 +1,6 @@
{inputs, ...} @ args: { {inputs, ...} @ args: {
nixpkgs.channels = { nixpkgs.channels = {
base = { default = {
overlays = [(import ./overlays.nix args)]; overlays = [(import ./overlays.nix args)];
config.allowUnfree = true; config.allowUnfree = true;
}; };

View file

@ -1,4 +1,8 @@
{inputs, ...} @ args: { {
inputs,
cerulean,
...
} @ args: {
nodes = { nodes = {
base = inputs.nixpkgs; base = inputs.nixpkgs;
homeManager = inputs.home-manager; homeManager = inputs.home-manager;
@ -49,12 +53,9 @@
# needed to get interface working # needed to get interface working
qemu.extraArgs = [ qemu.extraArgs = [
"-monitor" "-monitor" "unix:/var/lib/microvms/home-assistant/monitor.sock,server,nowait"
"unix:/var/lib/microvms/home-assistant/monitor.sock,server,nowait" "-chardev" "socket,id=serial1,path=/var/lib/microvms/home-assistant/serial.sock,server=on,wait=off"
"-chardev" "-serial" "chardev:serial1"
"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:
@ -100,7 +101,7 @@
deploy.ssh = { deploy.ssh = {
host = "10.16.1.163"; host = "10.16.1.163";
port = 2222; port = 2222;
publicKeys = []; user = "foxora";
}; };
}; };
@ -114,7 +115,7 @@
deploy.ssh = { deploy.ssh = {
host = "10.16.1.58"; host = "10.16.1.58";
port = 2222; port = 2222;
publicKeys = []; user = "foxora";
}; };
}; };
}; };