added nyastodon config
This commit is contained in:
parent
6d5f59d139
commit
0a4b7c4458
4 changed files with 18 additions and 8 deletions
|
@ -7,6 +7,8 @@
|
||||||
];
|
];
|
||||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||||
|
|
||||||
|
deployment.targetUser = lib.mkForce "emily";
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "seras";
|
hostName = "seras";
|
||||||
nftables.enable = lib.mkForce false;
|
nftables.enable = lib.mkForce false;
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
nixpkgs.overlays = [
|
|
||||||
(final: prev: {
|
|
||||||
nyastodon = final.callPackage ../../pkgs/nyastodon/default.nix { };
|
|
||||||
})
|
|
||||||
];
|
|
||||||
services.mastodon = {
|
services.mastodon = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableUnixSocket = false;
|
|
||||||
package = pkgs.nyastodon;
|
package = pkgs.nyastodon;
|
||||||
localDomain = config.networking.fqdn;
|
localDomain = config.networking.fqdn;
|
||||||
configureNginx = true;
|
configureNginx = true;
|
||||||
|
|
15
flake.nix
15
flake.nix
|
@ -50,9 +50,16 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, ... }@inputs: {
|
outputs = { self, nixpkgs, flake-utils, ... }@inputs: {
|
||||||
colmena = let
|
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: {
|
hostCfg = hostname: {
|
||||||
imports = [ (./config/hosts/${hostname}/configuration.nix) ];
|
imports = [
|
||||||
|
(./config/hosts/${hostname}/configuration.nix)
|
||||||
|
({ ... }: {
|
||||||
|
nixpkgs.overlays = [ self.overlays.kyouma ];
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -84,6 +91,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
images.lain = self.nixosConfigurations.lain.config.system.build.sdImage;
|
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
|
} // flake-utils.lib.eachDefaultSystem (system: let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in {
|
in {
|
||||||
|
|
3
pkgs/overlay.nix
Normal file
3
pkgs/overlay.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
final: prev: {
|
||||||
|
nyastodon = final.callPackage ./nyastodon/default.nix { };
|
||||||
|
}
|
Loading…
Reference in a new issue