1
0
Fork 0
forked from emily/nixfiles

added nyastodon config

This commit is contained in:
emily 2024-04-22 14:14:30 +02:00
parent 6d5f59d139
commit 0a4b7c4458
Signed by untrusted user: emily
GPG key ID: F6F4C66207FCF995
4 changed files with 18 additions and 8 deletions

View file

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

View file

@ -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;

View file

@ -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 {

3
pkgs/overlay.nix Normal file
View file

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