diff --git a/hosts/chocolatebar/chocolatebar.nix b/hosts/chocolatebar/chocolatebar.nix index aacfad3f..52a5a96f 100644 --- a/hosts/chocolatebar/chocolatebar.nix +++ b/hosts/chocolatebar/chocolatebar.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, self, ... }: with lib; let psCfg = config.pub-solar; @@ -24,6 +24,18 @@ in wayvnc ]; + age.secrets."vnc-key.pem" = { + file = "${self}/secrets/vnc-key-chocolatebar.pem"; + mode = "700"; + owner = psCfg.user.name; + }; + age.secrets."vnc-cert.pem" = { + file = "${self}/secrets/vnc-cert-chocolatebar.pem"; + mode = "700"; + owner = psCfg.user.name; + }; + pub-solar.sway.vnc.enable = true; + home-manager.users."${psCfg.user.name}".xdg.configFile = mkIf psCfg.sway.enable { "sway/config.d/10-autostart.conf".source = ./.config/sway/config.d/autostart.conf; "sway/config.d/10-input-defaults.conf".source = ./.config/sway/config.d/input-defaults.conf; diff --git a/secrets/secrets.nix b/secrets/secrets.nix index bbdc4961..65b6ed99 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -39,5 +39,8 @@ in "crypto_keyfile-chocolatebar.bin".publicKeys = chocolatebarKeys; "hdd_keyfile-chocolatebar.bin".publicKeys = chocolatebarKeys; + "vnc-cert-chocolatebar.pem".publicKeys = chocolatebarKeys; + "vnc-key-chocolatebar.pem".publicKeys = chocolatebarKeys; + "mopidy.conf".publicKeys = allKeys; } diff --git a/secrets/vnc-cert-chocolatebar.pem b/secrets/vnc-cert-chocolatebar.pem new file mode 100644 index 00000000..d7003993 Binary files /dev/null and b/secrets/vnc-cert-chocolatebar.pem differ diff --git a/secrets/vnc-key-chocolatebar.pem b/secrets/vnc-key-chocolatebar.pem new file mode 100644 index 00000000..d2853d11 Binary files /dev/null and b/secrets/vnc-key-chocolatebar.pem differ diff --git a/users/ben/home.nix b/users/ben/home.nix index a185875d..ac768fc2 100644 --- a/users/ben/home.nix +++ b/users/ben/home.nix @@ -11,6 +11,7 @@ in home-manager = pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] { home.packages = with pkgs; [ + tigervnc dogecoin nodejs itch @@ -88,7 +89,7 @@ in # xdg.configFile."wallpaper.jpg".source = ./assets/wallpaper.jpg; }; - age.secrets = pkgs.lib.setAttrByPath [ "mopidy.conf" ] { + age.secrets."mopidy.conf" = { file = "${self}/secrets/mopidy.conf"; mode = "700"; owner = "mopidy";