pixelfed-from-lock #23
|
@ -59,7 +59,4 @@ lib.mkIf (config.fediversity.enable && config.fediversity.pixelfed.enable) {
|
|||
after = [ "ensure-garage.service" ];
|
||||
};
|
||||
|
||||
services.pixelfed.package = pkgs.pixelfed.overrideAttrs (old: {
|
||||
patches = (old.patches or [ ]) ++ [ ./pixelfed-group-permissions.patch ];
|
||||
});
|
||||
}
|
||||
|
|
41
flake.nix
41
flake.nix
|
@ -5,21 +5,50 @@
|
|||
nixpkgs.url = "github:radvendii/nixpkgs/nixos_rebuild_tests";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
outputs = inputs@{ self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
|
||||
packages.${system} = {
|
||||
pixelfed = pkgs.pixelfed.overrideAttrs (old: {
|
||||
patches = (old.patches or [ ]) ++ [ ./fediversity/pixelfed-group-permissions.patch ];
|
||||
});
|
||||
};
|
||||
|
||||
nixosModules = {
|
||||
## Fediversity modules
|
||||
fediversity = import ./fediversity;
|
||||
fediversity = { pkgs, ... }: {
|
||||
imports = [ ./fediversity ];
|
||||
services.pixelfed.package = self.packages.${pkgs.stdenv.hostPlatform.system}.pixelfed;
|
||||
};
|
||||
|
||||
## VM-specific modules
|
||||
interactive-vm = import ./vm/interactive-vm.nix;
|
||||
mastodon-vm = import ./vm/mastodon-vm.nix;
|
||||
peertube-vm = import ./vm/peertube-vm.nix;
|
||||
pixelfed-vm = import ./vm/pixelfed-vm.nix;
|
||||
interactive-vm = {
|
||||
imports = [
|
||||
./vm/interactive-vm.nix
|
||||
self.nixosModules.fediversity
|
||||
];
|
||||
};
|
||||
mastodon-vm = {
|
||||
imports = [
|
||||
./vm/mastodon-vm.nix
|
||||
self.nixosModules.fediversity
|
||||
];
|
||||
};
|
||||
peertube-vm = {
|
||||
imports = [
|
||||
./vm/peertube-vm.nix
|
||||
self.nixosModules.fediversity
|
||||
];
|
||||
};
|
||||
pixelfed-vm = {
|
||||
imports = [
|
||||
./vm/pixelfed-vm.nix
|
||||
|
||||
self.nixosModules.fediversity
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixosConfigurations = {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ modulesPath, lib, config, ... }: {
|
||||
|
||||
imports = [
|
||||
../fediversity
|
||||
(modulesPath + "/virtualisation/qemu-vm.nix")
|
||||
];
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ pkgs, modulesPath, ... }: {
|
||||
|
||||
imports = [
|
||||
../fediversity
|
||||
(modulesPath + "/virtualisation/qemu-vm.nix")
|
||||
];
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ pkgs, modulesPath, ... }: {
|
||||
|
||||
imports = [
|
||||
../fediversity
|
||||
(modulesPath + "/virtualisation/qemu-vm.nix")
|
||||
];
|
||||
|
||||
|
|
Reference in a new issue
Can you explain what makes this organization better than the one we currently have? I don't have an intuition either way so I'd like to understand the motivation for the change.