Dossier overlays
This commit is contained in:
parent
a684bb89d8
commit
0a3a10edb3
@ -36,6 +36,9 @@
|
|||||||
|
|
||||||
# List packages installed in system profile. To search by name, run:
|
# List packages installed in system profile. To search by name, run:
|
||||||
# $ nix-env -qaP | grep wget
|
# $ nix-env -qaP | grep wget
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(import ./overlays/riot-web.nix)
|
||||||
|
];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
neovim
|
neovim
|
||||||
git
|
git
|
||||||
|
13
overlays/riot-web.nix
Normal file
13
overlays/riot-web.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
self: super:
|
||||||
|
{
|
||||||
|
riot-web = super.riot-web.override {
|
||||||
|
conf = ''
|
||||||
|
{
|
||||||
|
"default_hs_url": "https://matrix.nyanlout.re",
|
||||||
|
"default_is_url": "https://vector.im",
|
||||||
|
"brand": "Nyanloutre",
|
||||||
|
"default_theme": "dark"
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
10
services.nix
10
services.nix
@ -108,18 +108,10 @@ in
|
|||||||
services.searx.enable = true;
|
services.searx.enable = true;
|
||||||
|
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
nixpkgs.overlays = [ (self: super: { riot-web_custom = super.riot-web.override { conf = ''
|
|
||||||
{
|
|
||||||
"default_hs_url": "https://matrix.nyanlout.re",
|
|
||||||
"default_is_url": "https://vector.im",
|
|
||||||
"brand": "Nyanloutre",
|
|
||||||
"default_theme": "dark"
|
|
||||||
}
|
|
||||||
''; }; } ) ];
|
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
"riot" = {
|
"riot" = {
|
||||||
listen = [ { addr = "127.0.0.1"; port = riot_port; } ];
|
listen = [ { addr = "127.0.0.1"; port = riot_port; } ];
|
||||||
locations = { "/" = { root = pkgs.riot-web_custom; }; };
|
locations = { "/" = { root = pkgs.riot-web; }; };
|
||||||
};
|
};
|
||||||
"organizr" = {
|
"organizr" = {
|
||||||
listen = [ { addr = "127.0.0.1"; port = organizr_port; } ];
|
listen = [ { addr = "127.0.0.1"; port = organizr_port; } ];
|
||||||
|
Loading…
Reference in New Issue
Block a user