WIP: Add nixinate

This commit is contained in:
Tristan D. 2023-12-11 20:47:22 +01:00
parent 864b305ee9
commit 7790a7277a
Signed by: tristan
SSH key fingerprint: SHA256:U7y6eMb7CQDaTHv9XoX6/BaQnPqyxxKc+Xnfcefi6rY
3 changed files with 76 additions and 5 deletions

45
flake.lock generated
View file

@ -209,7 +209,7 @@
"hercules-ci-effects": { "hercules-ci-effects": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1701009247, "lastModified": 1701009247,
@ -328,6 +328,24 @@
"type": "github" "type": "github"
} }
}, },
"nixinate": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1702325609,
"narHash": "sha256-RpiVygpD910wp1QsS6Otav2/De2BCzeOL+NmrMdOuzA=",
"ref": "refs/heads/master",
"rev": "063d4788334b09191183e34ca819b6c3589f3648",
"revCount": 63,
"type": "git",
"url": "https://git.vlt81.de/tristan/nixinate.git"
},
"original": {
"type": "git",
"url": "https://git.vlt81.de/tristan/nixinate.git"
}
},
"nixos-unstable": { "nixos-unstable": {
"locked": { "locked": {
"lastModified": 1702151865, "lastModified": 1702151865,
@ -409,6 +427,22 @@
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1653060744,
"narHash": "sha256-kfRusllRumpt33J1hPV+CeCCylCXEU7e0gn2/cIM7cY=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "dfd82985c273aac6eced03625f454b334daae2e8",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1701952659, "lastModified": 1701952659,
"narHash": "sha256-TJv2srXt6fYPUjxgLAL0cy4nuf1OZD4KuA1TrCiQqg0=", "narHash": "sha256-TJv2srXt6fYPUjxgLAL0cy4nuf1OZD4KuA1TrCiQqg0=",
@ -424,7 +458,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1697723726, "lastModified": 1697723726,
"narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=", "narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=",
@ -440,7 +474,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1701718080, "lastModified": 1701718080,
"narHash": "sha256-6ovz0pG76dE0P170pmmZex1wWcQoeiomUZGggfH9XPs=", "narHash": "sha256-6ovz0pG76dE0P170pmmZex1wWcQoeiomUZGggfH9XPs=",
@ -460,7 +494,7 @@
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"hercules-ci-effects": "hercules-ci-effects", "hercules-ci-effects": "hercules-ci-effects",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_5",
"osx-kvm": "osx-kvm" "osx-kvm": "osx-kvm"
}, },
"locked": { "locked": {
@ -568,8 +602,9 @@
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nix-ld": "nix-ld", "nix-ld": "nix-ld",
"nix-wallpaper": "nix-wallpaper", "nix-wallpaper": "nix-wallpaper",
"nixinate": "nixinate",
"nixos-unstable": "nixos-unstable", "nixos-unstable": "nixos-unstable",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_3",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nixtheplanet": "nixtheplanet", "nixtheplanet": "nixtheplanet",
"nur": "nur", "nur": "nur",

View file

@ -13,6 +13,7 @@
nixpkgs = { nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-23.11"; url = "github:NixOS/nixpkgs/nixos-23.11";
}; };
nixinate.url = "git+https://git.vlt81.de/tristan/nixinate.git";
chaotic = { chaotic = {
url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
}; };
@ -59,6 +60,7 @@
, nixpkgs-unstable , nixpkgs-unstable
, nixos-unstable , nixos-unstable
, nixtheplanet , nixtheplanet
, nixinate
, home-manager , home-manager
, emacs-overlay , emacs-overlay
, nur , nur
@ -116,6 +118,7 @@
}; };
in in
{ {
apps = (nixinate.nixinate.x86_64-linux self);
formatter = { formatter = {
${system} = pkgs.nixpkgs-fmt; ${system} = pkgs.nixpkgs-fmt;
}; };
@ -125,6 +128,7 @@
}; };
nixosConfigurations = { nixosConfigurations = {
nixos-pulse = nixpkgs.lib.nixosSystem { nixos-pulse = nixpkgs.lib.nixosSystem {
system = system;
specialArgs = args; specialArgs = args;
modules = modules =
[ [
@ -139,6 +143,8 @@
++ osModules; ++ osModules;
}; };
nixos-desk = nixpkgs.lib.nixosSystem { nixos-desk = nixpkgs.lib.nixosSystem {
system = system;
specialArgs = args;
modules = modules =
[ [
./systems/nixos-desk ./systems/nixos-desk
@ -148,10 +154,21 @@
home-manager.sharedModules = hmModules; home-manager.sharedModules = hmModules;
home-manager.extraSpecialArgs = args; home-manager.extraSpecialArgs = args;
} }
{
_module.args.nixinate = {
host = "100.64.0.3";
sshUser = "tristand";
buildOn = "remote"; # valid args are "local" or "remote"
substituteOnTarget = false; # if buildOn is "local" then it will substitute on the target, "-s"
hermetic = false;
};
}
] ]
++ osModules; ++ osModules;
}; };
nixos-karl-kvm-guest = nixpkgs.lib.nixosSystem { nixos-karl-kvm-guest = nixpkgs.lib.nixosSystem {
system = system;
specialArgs = args;
modules = modules =
[ [
./systems/nixos-karl-kvm-guest ./systems/nixos-karl-kvm-guest
@ -161,6 +178,15 @@
home-manager.sharedModules = hmModules; home-manager.sharedModules = hmModules;
home-manager.extraSpecialArgs = args; home-manager.extraSpecialArgs = args;
} }
{
_module.args.nixinate = {
host = "nixos-karl-kvm-guest.oekonzept.de";
sshUser = "reopen5194";
buildOn = "remote"; # valid args are "local" or "remote"
substituteOnTarget = false; # if buildOn is "local" then it will substitute on the target, "-s"
hermetic = false;
};
}
] ]
++ osModules; ++ osModules;
}; };

View file

@ -17,7 +17,17 @@
]; ];
}; };
# security.wrappers.keybase-redirector = {
# setuid = true;
# owner = "root";
# group = "root";
# source = "${pkgs.kbfs}/bin/redirector";
# };
services = { services = {
keybase.enable = true;
kbfs.enable = false;
kbfs.enableRedirector = false;
resolved = { resolved = {
enable = true; enable = true;
dnssec = "true"; dnssec = "true";