Skip to content

Nix Flake containing package and module for SentinelOne

Notifications You must be signed in to change notification settings

MercuryTechnologies/sentinelone-nix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sentinelone-nix

About

Package and module to use SentinelOne on NixOS. Based on the SentinelOne package from GitLab.

Usage

To use this module, add it to your flake inputs as

inputs.sentinelone.url = "github:devusb/sentinelone-nix";

Then, import and use the module in your NixOS configuration as

imports = [
    inputs.sentinelone.nixosModules.sentinelone
];
services.sentinelone = {
  enable = true;
  sentinelOneManagementTokenPath = /path/to/file/containing/token;
  email = "[email protected]";
  serialNumber = "M4CH1N3";
  package = pkgs.sentinelone.overrideAttrs (old: {
    version = "sentinelone.package.version"; 
    src = pkgs.fetchurl {
        url = "https://url-to-sentinelone-package.deb";
        hash = "sentinelone-hash";
    };
  });
};

overriding package to point to a URL where a SentinelOne deb is available.

sentinelOneManagementTokenPath could be from a sops-nix secret such as

sops = {
  secrets.s1_mgmt_token = {
    sopsFile = ../../secrets/sentinelone.yaml;
  };
};
services.sentinelone = {
  sentinelOneManagementTokenPath = config.sops.secrets.s1_mgmt_token.path;
};

About

Nix Flake containing package and module for SentinelOne

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 100.0%