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

remove outdated blocklist, bump to 1.5.3 #61

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading