Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

ngi-nix/pixelfed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixelfed

Funded by the European Commission under the Next Generation Internet initiative

Objective

  1. Package Pixelfed for NixOS
  2. Allow usage of Pixelfed through the module system for NixOS

Using the Module (NixOS)

To enable the pixelfed module in NixOS, you will have to use pixelfed.nix and package in pixelfed.nix

This will only cover the flake-based approach (Nix 3.x), but can be expanded for Nix 2.x compatibility.

To include github:ngi-nix/pixelfed into your flake, you will first have to include it as an input like the following

{
  inputs.pixelfed = { type = "github"; owner = "ngi-nix"; repo = "pixelfed"; };
}

Before including the module and overlay into the system configuration

{
  #...
  nixosConfigurations.<name> = nixpkgs.lib.nixosSystem {
    system = "<system>";
    modules = [
      ({ ... }: {
        # Or just `imports = [ inputs.pixelfed.nixosModules.pixelfed ]`
        imports = builtins.attrValues inputs.pixelfed.nixosModules;
        nixpkgs.overlays = [ inputs.pixelfed.overlay ];
      })
    ];
  };
}

In which you can enable the service afterwards

{
  #...
  nixosConfigurations.<name> = nixpkgs.lib.nixosSystem {
    system = "<system>";
    modules = [
      ({ ... }: {
        services.pixelfed.enable = true;
      })
    ];
  };
}

Using the test container

See REVIEW.md

About

Archived: This service is maintained as a NixOS module

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •