Skip to content

Commit

Permalink
remove outdated blocklist, bump to 1.5.3 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
cottand authored Sep 1, 2024
1 parent 21e0f37 commit 5a9eab5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
)

// BuildVersion returns the build version of leng, this should be incremented every new release
var BuildVersion = "1.5.1"
var BuildVersion = "1.5.3"

// ConfigVersion returns the version of leng, this should be incremented every time the config changes so leng presents a warning
var ConfigVersion = "1.5.1"
var ConfigVersion = "1.5.3"

// Config holds the configuration parameters
type Config struct {
Expand Down Expand Up @@ -141,7 +141,6 @@ followCnameDepth = 12
blocklist = []
# list of sources to pull blocklists from, stores them in ./sources
sources = [
"https://mirror1.malwaredomains.com/files/justdomains",
"https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts",
"https://sysctl.org/cameleon/hosts",
"https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt",
Expand Down
4 changes: 2 additions & 2 deletions doc/src/Nix.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Please refer to [Configuration](./Configuration.md) for the options you can use
{
inputs = {
# pinned version for safety
leng.url = "github:cottand/leng/v1.5.1";
leng.url = "github:cottand/leng/v1.5.3";
leng.nixpkgs.follows = "nixpkgs";
};
Expand Down Expand Up @@ -52,7 +52,7 @@ Add the following inside your configuration.nix:
{pkgs, lib, ... }: {
imports = [
# import leng module
(builtins.getFlake "github:cottand/leng/v1.5.1").nixosModules.default
(builtins.getFlake "github:cottand/leng/v1.5.3").nixosModules.default
];
# now you can use services.leng!
Expand Down
8 changes: 4 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
inherit system;
vendorHash = null;
pname = "leng";
version = "1.5.1";
version = "1.5.3";
src = ./.;
};
default = leng;
Expand Down Expand Up @@ -56,7 +56,7 @@
with lib;
let
cfg = config.services.leng;
toml = pkgs.formats.toml {};
toml = pkgs.formats.toml { };
in
{
## interface
Expand All @@ -75,7 +75,7 @@
};
configuration = mkOption {
type = toml.type;
default = {};
default = { };
description = "Configuration as Nix attrSet";
example = ''
{
Expand Down Expand Up @@ -124,7 +124,7 @@
{
assertion = cfg.configuration.blocking.sourcesStore == "/var/lib/leng-sources";
message = ''
`services.leng.configuration.blocking.sourcesStore` should be set to `var/lib/leng-sources`, but it is set to ${cfg.configuration.blocking.sourcesStore}.
`services.leng.configuration.blocking.sourcesStore` should be set to `var/lib/leng-sources`, but it is set to ${cfg.configuration.blocking.sourcesStore}.
'';
}
];
Expand Down

0 comments on commit 5a9eab5

Please sign in to comment.