forked from emily/nixfiles
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"];
|
||||
|
||||
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;
|
||||
|
|
15
flake.nix
15
flake.nix
|
@ -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
3
pkgs/overlay.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
final: prev: {
|
||||
nyastodon = final.callPackage ./nyastodon/default.nix { };
|
||||
}
|
Loading…
Reference in a new issue