Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pmihaly committed Oct 10, 2024
1 parent 308b4c6 commit bab36ef
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 9 deletions.
4 changes: 2 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions machines/skylake/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
};

server.enable = true;
altserver.enable = true;
style.enable = true;

backup = {
Expand Down
6 changes: 1 addition & 5 deletions overlays/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@
}
);

mpv =
if !prev.stdenv.isDarwin then
prev.mpv
else
prev.iina;
mpv = if !prev.stdenv.isDarwin then prev.mpv else prev.iina;
})
]
49 changes: 49 additions & 0 deletions use-cases/altserver/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
pkgs,
lib,
vars,
config,
...
}:

with lib;
let
cfg = config.modules.altserver;
in
{
options.modules.altserver = {
enable = mkEnableOption "altserver";
};
config = mkIf cfg.enable {

systemd.tmpfiles.rules =
let
directories = [
"${vars.storage}/Services/anisette"
];
in
(map (directory: "d ${directory} 0750 misi backup -") directories);

services.usbmuxd = {
enable = true;
package = pkgs.usbmuxd2;
};

home-manager.users.${vars.username} = {
home.packages = with pkgs; [
libimobiledevice
altserver-linux
];
};

virtualisation.oci-containers.containers.alt_anisette_server = {
image = "dadoum/anisette-v3-server";
ports = [
"6969:6969"
];
volumes = [
"${vars.storage}/Services/anisette:/home/Alcoholic/.config/anisette-v3/lib/"
];
};
};
}
1 change: 1 addition & 0 deletions use-cases/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
./music-production
./dev
./style
./altserver
];
}
4 changes: 2 additions & 2 deletions use-cases/shell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ in
enable = true;
openFirewall = true;
ports = [ 69 ];
settings.PasswordAuthentication = false;
hostKeys = cfg.sshServer.hostKeys;
settings.PasswordAuthentication = true;
# hostKeys = cfg.sshServer.hostKeys;
};
})

Expand Down

0 comments on commit bab36ef

Please sign in to comment.