added nyastodon config

update-inputs-2024-05-17-10-45
emily 4 weeks ago
parent 6d5f59d139
commit 0a4b7c4458
Signed by: snaki
GPG Key ID: F6F4C66207FCF995

@ -7,6 +7,8 @@
];
boot.binfmt.emulatedSystems = ["aarch64-linux"];
deployment.targetUser = lib.mkForce "emily";
networking = {
hostName = "seras";
nftables.enable = lib.mkForce false;

@ -1,12 +1,6 @@
{ config, lib, pkgs, ... }: {
nixpkgs.overlays = [
(final: prev: {
nyastodon = final.callPackage ../../pkgs/nyastodon/default.nix { };
})
];
services.mastodon = {
enable = true;
enableUnixSocket = false;
package = pkgs.nyastodon;
localDomain = config.networking.fqdn;
configureNginx = true;

@ -50,9 +50,16 @@
outputs = { self, nixpkgs, flake-utils, ... }@inputs: {
colmena = let
hosts = builtins.attrNames (nixpkgs.lib.filterAttrs (name: type: type == "directory") (builtins.readDir ./config/hosts));
hosts = builtins.filter (name: name != "base") (
builtins.attrNames (nixpkgs.lib.filterAttrs (name: type: type == "directory") (
builtins.readDir ./config/hosts)));
hostCfg = hostname: {
imports = [ (./config/hosts/${hostname}/configuration.nix) ];
imports = [
(./config/hosts/${hostname}/configuration.nix)
({ ... }: {
nixpkgs.overlays = [ self.overlays.kyouma ];
})
];
};
in {
meta = {
@ -84,6 +91,10 @@
};
};
images.lain = self.nixosConfigurations.lain.config.system.build.sdImage;
overlays = {
kyouma = import ./pkgs/overlay.nix;
default = self.overlays.kyouma;
};
} // flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {

@ -0,0 +1,3 @@
final: prev: {
nyastodon = final.callPackage ./nyastodon/default.nix { };
}
Loading…
Cancel
Save