Skip to content

Package for Nix + NixOs Flake module - #23

Closed
RustySnek wants to merge 18 commits into
Nortank12:mainfrom
RustySnek:nix
Closed

RustySnek wants to merge 18 commits into
Nortank12:mainfrom
RustySnek:nix

Conversation

@RustySnek

Copy link
Copy Markdown
  • Packaged for Nix
  • Adds NixOs Flake module
  • Adds devenv

build and run with nix

nix build
nix run . -- --mode temp # pass in temp mode

NixOs Flakes

declares udev rules and runs rootless by default

# flake.nix

{
  inputs.deepcool.url = "github:RustySnek/deepcool-digital-linux/nix";
  # ...

  outputs = {nixpkgs, deepcool, ...} @ inputs: {
    nixosConfigurations.HOSTNAME = nixpkgs.lib.nixosSystem {
      modules = [
        deepcool.packages.x86_64-linux.nixosModule
        ./configuration.nix
      ];
    };
  }
}

# configuration.nix

{inputs, pkgs, ...}: {
  services.deepcool-digital = {
    enable = true;
    mode = "temp"; # ["temp" "usage" "power" "auto"] default: temp
    use_fahrenheit = false; # default: false
    alarm = true; # default: false
    product_id = "2" # default: none (auto)
  };
}

TODO

  • Readme

@Nortank12

Copy link
Copy Markdown
Owner

I like the idea, but for now, I prioritize compatibility and device support. I also plan on writing a GUI, and it would make more sense to add the flake module (and packages for other distros) at that point.

I'm closing this PR, but please create a new thread in discussions with detailed instructions so other NixOS users can implement it. If I have a working GUI version of this program, I'll let you know and will integrate your work into the repo.

Thanks for your contribution, and apologies for the delayed response!

@Nortank12 Nortank12 closed this Jan 22, 2025
@Nortank12 Nortank12 mentioned this pull request Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants