Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/modules: add greenclip user service #54913

Merged
merged 2 commits into from Jul 23, 2019
Merged

Conversation

steve-chavez
Copy link
Member

@steve-chavez steve-chavez commented Jan 30, 2019

Motivation for this change

greenclip is a tool for managing your clipboard with rofi. see https://github.com/erebe/greenclip

The greenclip package(haskellPackages.greenclip) is already available, this is just for adding a nixos systemd user service for greenclip daemon.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@cyplo
Copy link
Contributor

cyplo commented Jul 21, 2019

Heya, this looks cool !
Is there anything we need to do to get this merged, in addition to resolving the conflict ? Thanks !

@teto
Copy link
Member

teto commented Jul 21, 2019

arf sry I tried to resolve the conflict via github's ui but seems like it merged current master into the branch. Better drop my commit and properly rebase.

@steve-chavez
Copy link
Member Author

@teto Just rebased 😃

in {

options.services.greenclip = {
enable = mkEnableOption "Whether to enable the greenclip daemon that will listen to selections";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mkEnableOption is defined as ```
mkEnableOption =
# Name for the created option
name: mkOption {
default = false;
example = true;
description = "Whether to enable ${name}.";
type = lib.types.bool;
};

so the current value is not good. "Greenclip daemon" should be enough ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@teto True, just saw the mkEnableOption source. Fixed.

@teto
Copy link
Member

teto commented Jul 23, 2019

the systemd service looks fine to me but I am no expert. I guess it can be refined later in case of problem.

@teto teto merged commit dfd3a02 into NixOS:master Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants