Skip to content

Commit

Permalink
Remove pinning of DoH, remove packages/unstable, use zram
Browse files Browse the repository at this point in the history
  • Loading branch information
stusmall committed Aug 2, 2024
1 parent 7f1f1a0 commit 416fa45
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 22 deletions.
6 changes: 3 additions & 3 deletions base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
# Enable the X11 windowing system.
services.xserver.enable = true;

# Needed for smartcard management and the yubikey rust crate
services.pcscd.enable = true;

# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
Expand Down Expand Up @@ -120,6 +117,9 @@
# This is the service that lets you pick power profiles in the gnome UI. It conflicts with auto-cpufreq
services.power-profiles-daemon.enable = false;

# Enable zram
zramSwap.enable = true;

# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
Expand Down
1 change: 0 additions & 1 deletion home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
"Alacritty.desktop"
"firefox.desktop"
"rust-rover.desktop"
"pycharm-professional.desktop"
"signal-desktop.desktop"
];
};
Expand Down
13 changes: 0 additions & 13 deletions modules/encrypted-dns.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,16 @@

# Enabled DoH
# pkgs.stubby.passthru.settingsExample is the example toml from the root of the github repo. It has a series of opinionated, safe defaults
# If the TLS keys change at some point we can get the new sha256 hashes with the following command:
#
# nix-shell -p knot-dns --command "kdig -d @1.0.0.2 +tls-ca +tls-host=cloudflare-dns.com example.com"
#
# TODO: Eventually it would be nice to replace this with trust-dns
services.stubby = {
enable = true;
settings = pkgs.stubby.passthru.settingsExample // {
upstream_recursive_servers = [{
address_data = "1.0.0.2";
tls_auth_name = "security.cloudflare-dns.com";
tls_pubkey_pinset = [{
digest = "sha256";
value = "HdDBgtnj07/NrKNmLCbg5rxK78ZehdHZ/Uoutx4iHzY=";
}];
}
{
address_data = "1.1.1.2";
tls_auth_name = "security.cloudflare-dns.com";
tls_pubkey_pinset = [{
digest = "sha256";
value = "HdDBgtnj07/NrKNmLCbg5rxK78ZehdHZ/Uoutx4iHzY=";
}];
}];
};
};
Expand Down
7 changes: 2 additions & 5 deletions modules/jetbrains.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{ pkgs, lib, ... }:
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in
{
environment.systemPackages = with pkgs.jetbrains; [
pycharm-professional
unstable.jetbrains.rust-rover
rust-rover
];

services.opensnitch.rules = {
Expand All @@ -22,7 +19,7 @@ in
type = "regexp";
sensitive = false;
operand = "process.path";
data = "^((${lib.getBin pkgs.jetbrains.jdk})|(${lib.getBin unstable.jetbrains.jdk}))/lib/openjdk/bin/java$";
data = "^(${lib.getBin pkgs.jetbrains.jdk})/lib/openjdk/bin/java$";
}
{
type = "regexp";
Expand Down

0 comments on commit 416fa45

Please sign in to comment.