Skip to content

Commit

Permalink
Added tclip
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Aug 12, 2024
1 parent 79e829c commit a35b0b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions machines/kuato/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@
makeModulesClosure = x:
super.makeModulesClosure (x // {allowMissing = true;});
})

(final: super: {
# TODO(fzakaria): These should from an overlay from the flake.
# Checkphase with emulation takes a very long time. For now disable it.
tclip = inputs.tailscale-tclip.packages."${super.system}".tclip.overrideAttrs (oldAttrs: {
doCheck = false;
});
tclipd = inputs.tailscale-tclip.packages."${super.system}".tclipd.overrideAttrs (oldAttrs: {
doCheck = false;
});
})
];
};

Expand Down Expand Up @@ -99,6 +110,7 @@
tclip = {
enable = true;
tailscaleAuthKeyFile = config.age.secrets."tailscale-tclip.key".path;
funnel = true;
};
# Enable the X11 windowing system.
xserver = {
Expand Down
6 changes: 3 additions & 3 deletions modules/nixos/tclip.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ in {
description = ''
tclip package to use
'';
default = inputs.tailscale-tclip.packages."${pkgs.system}".tclipd;
default = pkgs.tclipd;
};

dataDir = mkOption {
Expand Down Expand Up @@ -61,7 +61,7 @@ in {
};
config = mkIf cfg.enable {
environment.systemPackages = [
inputs.tailscale-tclip.packages."${pkgs.system}".tclip
pkgs.tclip
];

users.users."${cfg.user}" = {
Expand All @@ -79,7 +79,7 @@ in {
script = let
args =
[
"--data-dir"
"--data-location"
cfg.dataDir
"--hostname"
cfg.hostname
Expand Down

0 comments on commit a35b0b0

Please sign in to comment.