evaluates
This commit is contained in:
17
flake.lock
generated
17
flake.lock
generated
@@ -412,6 +412,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-zulip": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1764583012,
|
||||||
|
"narHash": "sha256-6ht4dtI1TBDAaB/Tatq+FcPexaZTBWuRiJGnioCDx5c=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "a9dd0f80d775745f1d88055f24d944562db97c5e",
|
||||||
|
"revCount": 67,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.afnix.fr/nix-zulip/nix-zulip"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.afnix.fr/nix-zulip/nix-zulip"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-mailserver": {
|
"nixos-mailserver": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"blobs": "blobs",
|
"blobs": "blobs",
|
||||||
@@ -583,6 +599,7 @@
|
|||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
|
"nix-zulip": "nix-zulip",
|
||||||
"nixos-mailserver": "nixos-mailserver",
|
"nixos-mailserver": "nixos-mailserver",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"noshell": "noshell",
|
"noshell": "noshell",
|
||||||
|
|||||||
18
flake.nix
18
flake.nix
@@ -14,6 +14,10 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
nix-zulip = {
|
||||||
|
url = "git+https://git.afnix.fr/nix-zulip/nix-zulip";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
noshell = {
|
noshell = {
|
||||||
url = "github:viperML/noshell";
|
url = "github:viperML/noshell";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -41,6 +45,7 @@
|
|||||||
impermanence,
|
impermanence,
|
||||||
nixos-mailserver,
|
nixos-mailserver,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
nix-zulip,
|
||||||
noshell,
|
noshell,
|
||||||
nur,
|
nur,
|
||||||
nvf,
|
nvf,
|
||||||
@@ -48,6 +53,7 @@
|
|||||||
stylix,
|
stylix,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
nix-zulip' = (import "${nix-zulip}/nix/default.nix" {}).output;
|
||||||
machines = import ./machines.nix;
|
machines = import ./machines.nix;
|
||||||
configuration = machine: modules:
|
configuration = machine: modules:
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
@@ -63,16 +69,20 @@
|
|||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
nixos-mailserver.nixosModule
|
nixos-mailserver.nixosModule
|
||||||
phoenix.nixosModules.default
|
phoenix.nixosModules.default
|
||||||
|
nix-zulip'.nixosModules.zulip
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
agenix.overlays.default
|
||||||
|
nur.overlays.default
|
||||||
|
nix-zulip'.overlays.default
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
configurationWithHomeManager = machine: (configuration machine
|
configurationWithHomeManager = machine: (configuration machine
|
||||||
[
|
[
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [
|
|
||||||
agenix.overlays.default
|
|
||||||
nur.overlays.default
|
|
||||||
];
|
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.extraSpecialArgs = {inherit machine;};
|
home-manager.extraSpecialArgs = {inherit machine;};
|
||||||
home-manager.users =
|
home-manager.users =
|
||||||
|
|||||||
@@ -4,6 +4,21 @@
|
|||||||
machine,
|
machine,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
# zulip config
|
||||||
|
services.zulip = {
|
||||||
|
enable = true;
|
||||||
|
host = "chat.${config.networking.domain}";
|
||||||
|
camoKeyFile = builtins.toFile "camoKeyFile" "key";
|
||||||
|
rabbitmqPasswordFile = builtins.toFile "rabbitmqPasswordFile" "password";
|
||||||
|
secretKeyFile = builtins.toFile "secretKeyFile" "secret key";
|
||||||
|
sharedSecretKeyFile = builtins.toFile "sharedSecretKeyFile" "shared secret key";
|
||||||
|
avatarSaltKeyFile = builtins.toFile "avatarSaltKeyFile" "avatar salt key";
|
||||||
|
zulipSettings = {
|
||||||
|
EXTERNAL_HOST = "EXTERNAL_HOST";
|
||||||
|
ZULIP_ADMINISTRATOR = "ZULIP_ADMINISTRATOR";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# roundcube config
|
# roundcube config
|
||||||
services.roundcube = {
|
services.roundcube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user