-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add Nix flake #322
base: main
Are you sure you want to change the base?
Add Nix flake #322
Conversation
There is already a NixOS package for |
Hey, are there any updates on this? I was the one who originally packaged discordo for nixpkgs earlier this year, and while I think it makes it more accessible for most people, I think a flake would provide additional benefits. My biggest gripe at the moment is that I'm either using a version from last month, or if I want to get the most recent changes I'd have to pull and nix run github:ayn2op/discordo/main Nix would then run discordo, and if the most recent version is not there, it would pull and rebuild it before running. |
Hi, Does anyone know why the flake was removed? |
@ayn2op not required obviously but it would be pretty sweet if this could be merged (pending the changes to actually make it work). I understand if you're not interested in extra maintenance burden, however. |
I'm trying to revive this PR. Got the following error while trying to build it on f272589:
I'm not a Go expert. Anyone knows how to solve this? @epetousis @linuxmobile @Arian-D @ayn2op |
Fixed in the latest commit. |
oh right, the new changes. |
I am using my own flake: |
I've improved the flake further and now finally consider it ready for review.
{ config, lib, discordo, ... }: {
imports = [ discordo.homeManagerModules.default ];
programs.discordo = {
enable = true;
settings = {
timestamps = true;
theme.messages_text.author_color = "red";
};
tokenCommand =
let
passBin = lib.getExe config.programs.password-store.package;
token = "discord-token";
in
"${passBin} ${token}";
};
} Note that installation is still possible without home-manager. Just as before, it's as simple as { discordo, pkgs, ... }: {
environment.systemPackages = [
discordo.packages.${pkgs.system}.default
];
} though of course you'll lose out on the dotfile management that home-manager is used for. Please check PTAL @linuxmobile @ayn2op |
This PR adds support for the Nix build system.