Reconfigure specialArgs
This commit is contained in:
parent
bad19362f0
commit
ccf29ce98f
1 changed files with 11 additions and 12 deletions
23
flake.nix
23
flake.nix
|
@ -12,9 +12,10 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Updated packages.
|
# Packages.
|
||||||
fluffychat2.url = "github:NixOS/nixpkgs?ref=pull/419632/head"; # FluffyChat 2.0.0
|
fluffychat2.url = "github:NixOS/nixpkgs?ref=pull/419632/head"; # FluffyChat 2.0.0
|
||||||
feishin0_17.url = "github:NixOS/nixpkgs?ref=pull/414929/head"; # Feishin 0.17.0
|
feishin0_17.url = "github:NixOS/nixpkgs?ref=pull/414929/head"; # Feishin 0.17.0
|
||||||
|
webone.url = "github:firewalkwithm3/webone?rev=256f5e115ceffb71fd2d61e0c7cb9b6b55c7571a"; # WebOne HTTP proxy.
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
@ -34,7 +35,7 @@
|
||||||
{
|
{
|
||||||
hostname,
|
hostname,
|
||||||
suite,
|
suite,
|
||||||
platform,
|
platform ? "x86_64-linux",
|
||||||
user ? "fern",
|
user ? "fern",
|
||||||
extraModules ? [ ],
|
extraModules ? [ ],
|
||||||
}:
|
}:
|
||||||
|
@ -42,17 +43,20 @@
|
||||||
system = platform;
|
system = platform;
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit user;
|
inherit hostname suite platform user; # Inherit variables.
|
||||||
secrets = builtins.toString inputs.secrets;
|
secrets = builtins.toString inputs.secrets; # Secrets directory.
|
||||||
fluffychat2 = import fluffychat2 { inherit system; };
|
# Packages
|
||||||
feishin0_17 = import feishin0_17 { inherit system; };
|
userPkgs = {
|
||||||
|
fluffychat = fluffychat2.legacyPackages.${system}.fluffychat;
|
||||||
|
feishin = feishin0_17.legacyPackages.${system}.feishin;
|
||||||
|
webone = webone.packages.${system}.default;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./suites/common.nix
|
./suites/common.nix
|
||||||
./suites/${suite}.nix
|
./suites/${suite}.nix
|
||||||
./hosts/${suite}/${hostname}.nix
|
./hosts/${suite}/${hostname}.nix
|
||||||
{ networking.hostName = hostname; }
|
|
||||||
] ++ extraModules;
|
] ++ extraModules;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
@ -62,7 +66,6 @@
|
||||||
muskduck = mkHost {
|
muskduck = mkHost {
|
||||||
hostname = "muskduck";
|
hostname = "muskduck";
|
||||||
suite = "laptop";
|
suite = "laptop";
|
||||||
platform = "x86_64-linux";
|
|
||||||
extraModules = [
|
extraModules = [
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
nixos-hardware.nixosModules.lenovo-thinkpad-t480
|
nixos-hardware.nixosModules.lenovo-thinkpad-t480
|
||||||
|
@ -85,27 +88,23 @@
|
||||||
hostname = "docker";
|
hostname = "docker";
|
||||||
suite = "vm";
|
suite = "vm";
|
||||||
user = "docker";
|
user = "docker";
|
||||||
platform = "x86_64-linux";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
vm-minecraft = mkHost {
|
vm-minecraft = mkHost {
|
||||||
hostname = "minecraft";
|
hostname = "minecraft";
|
||||||
suite = "vm";
|
suite = "vm";
|
||||||
user = "docker";
|
user = "docker";
|
||||||
platform = "x86_64-linux";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# LXC containers.
|
# LXC containers.
|
||||||
lxc-technitium = mkHost {
|
lxc-technitium = mkHost {
|
||||||
hostname = "technitium";
|
hostname = "technitium";
|
||||||
suite = "lxc";
|
suite = "lxc";
|
||||||
platform = "x86_64-linux";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
lxc-firefox-syncserver = mkHost {
|
lxc-firefox-syncserver = mkHost {
|
||||||
hostname = "firefox-syncserver";
|
hostname = "firefox-syncserver";
|
||||||
suite = "lxc";
|
suite = "lxc";
|
||||||
platform = "x86_64-linux";
|
|
||||||
extraModules = [
|
extraModules = [
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue