Things
- new host `devbox`
- `flake-parts` module to manage agenix secrets
- Searx -> Google again 😩 (it was too slow)
- WIP `git-workspace` module for `home-manager`
- `cgit` module
- `spotify-adblocked` packaged
This commit is contained in:
parent
29bea282e7
commit
52298435cd
23 changed files with 947 additions and 67 deletions
|
@ -14,17 +14,33 @@
|
|||
"common"
|
||||
"ssh"
|
||||
"ccr"
|
||||
"cgit"
|
||||
]);
|
||||
|
||||
ccr.enable = true;
|
||||
|
||||
# programs.sway.enable = true;
|
||||
|
||||
services.rock5b-fan-control.enable = true;
|
||||
|
||||
# nixpkgs.config.permittedInsecurePackages = [
|
||||
# "libav-11.12"
|
||||
# ];
|
||||
services.nginx.enable = true;
|
||||
services.nginx.virtualHosts."localhost" = {
|
||||
cgit = {
|
||||
enable = true;
|
||||
virtual-root = "/";
|
||||
include = [
|
||||
(builtins.toFile "cgitrc-extra-1" ''
|
||||
repo.url=test-repo.git
|
||||
repo.path=/srv/git/test-repo.
|
||||
repo.desc=the master foo repository
|
||||
repo.owner=fooman@example.com
|
||||
css=/custom.css
|
||||
'')
|
||||
(builtins.toFile "cgitrc-extra-2" ''
|
||||
# Allow http transport git clone
|
||||
enable-http-clone=1
|
||||
'')
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems."/mnt/film" = {
|
||||
device = "//ccr.ydns.eu/film";
|
||||
|
@ -58,6 +74,18 @@
|
|||
extraGroups = ["video" "input"];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
8080 # kodi control
|
||||
80
|
||||
];
|
||||
|
||||
programs.bash.loginShellInit = ''
|
||||
[[ "$(tty)" == '/dev/tty1' ]] && \
|
||||
[[ "$(whoami)" == 'kodi' ]] && \
|
||||
${pkgs.kodi-rock5b}/bin/kodi-standalone
|
||||
|
||||
'';
|
||||
|
||||
# Waiting for https://github.com/NixOS/nixpkgs/issues/140304
|
||||
services.getty = let
|
||||
script = pkgs.writeText "login-program.sh" ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue