Add vnc keyfiles and config

This commit is contained in:
Benjamin Bädorf 2022-04-28 23:24:33 +02:00
parent ad313173ad
commit 8f8923203b
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
5 changed files with 18 additions and 2 deletions

View file

@ -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;

View file

@ -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;
}

Binary file not shown.

Binary file not shown.

View file

@ -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";