Compare commits
2 Commits
0ca063ddde
...
316588308d
Author | SHA1 | Date | |
---|---|---|---|
|
316588308d | ||
|
147aec1692 |
@@ -1,4 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, pkgs-stable, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
@@ -42,7 +42,7 @@
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
openldap ldapvi rclone teams-for-linux rpi-imager freerdp tigervnc unixtools.xxd
|
||||
openldap ldapvi rclone teams-for-linux rpi-imager freerdp pkgs-stable.tigervnc unixtools.xxd
|
||||
];
|
||||
|
||||
home.sessionVariables = lib.mkIf config.userSettings.hyprland.enable {
|
||||
|
@@ -1,12 +1,18 @@
|
||||
{ config, lib, inputs, ... }:
|
||||
|
||||
let
|
||||
blocklist = builtins.readFile "${inputs.blocklist-hosts}/alternates/gambling-porn/hosts";
|
||||
allowedHosts = config.systemSettings.security.blocklist.allowedHosts;
|
||||
hostsFileDeletions = builtins.genList (x: "0.0.0.0 " + (builtins.elemAt allowedHosts x)) (builtins.length allowedHosts);
|
||||
blocklist = builtins.replaceStrings hostsFileDeletions (builtins.genList (x: "") (builtins.length hostsFileDeletions)) (builtins.readFile "${inputs.blocklist-hosts}/alternates/gambling-porn/hosts");
|
||||
cfg = config.systemSettings.security.blocklist;
|
||||
in {
|
||||
options = {
|
||||
systemSettings.security.blocklist = {
|
||||
enable = lib.mkEnableOption "Enable basic host blocking for bad websites";
|
||||
allowedHosts = lib.mkOption {
|
||||
description = "List of hosts to allow (remove from blocklist)";
|
||||
type = lib.types.listOf lib.types.str;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user