logoalt Hacker News

solomonbtoday at 9:23 PM0 repliesview on HN

Thank you for the `nix app`!

Being able to launch it with:

     nix run github:cpcloud/micasa     
Is super convenient.

Actually we could go further and serve `micasa` via ssh:

    users.users.micasa = {
      isNormalUser = true;
      shell = pkgs.bashInteractive;
      openssh.authorizedKeys.keys = ...
    };
  
    services.openssh.extraConfig = ''
      Match User micasa
        ForceCommand ${micasaPkg}/bin/micasa
        AllowTcpForwarding no
        X11Forwarding no
    '';
Then we could put this in a nixosModule in your flake.nix. Would you be interested in a PR which does this?

    services.micasa-ssh = {
      enable = true;
      authorizedKeys = [ "ssh-ed25519 AAAA..." ];
      port = 2222;
    };