diff options
author | Alex Auvolat <alex@adnab.me> | 2023-04-02 18:44:46 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-04-02 18:44:46 +0200 |
commit | e7b19b1a5df73b1598bd8d8381aca74df3900e53 (patch) | |
tree | 6412782cc56920177a0af7bafbcccb8197b658aa /nixos | |
parent | 7da914ad942d91169937b2eaa84960425de20d13 (diff) | |
download | user-config-e7b19b1a5df73b1598bd8d8381aca74df3900e53.tar.gz user-config-e7b19b1a5df73b1598bd8d8381aca74df3900e53.zip |
use unbound
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/common.nix | 33 | ||||
-rw-r--r-- | nixos/kde.nix | 4 |
2 files changed, 24 insertions, 13 deletions
diff --git a/nixos/common.nix b/nixos/common.nix index 10cf2b3..86fb46d 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -14,8 +14,6 @@ in boot.supportedFilesystems = [ "ntfs" ]; boot.cleanTmpDir = true; - networking.networkmanager.enable = true; - time.timeZone = "Europe/Paris"; i18n.defaultLocale = "en_US.UTF-8"; @@ -36,6 +34,28 @@ in keyMap = "fr"; }; + # ---- network config ---- + + networking.networkmanager.enable = true; + + services.unbound = { + enable = true; + resolveLocalQueries = true; + }; + services.resolved.enable = false; + + # Open ports in the firewall. + networking.firewall.allowedTCPPorts = [ + 22000 # syncthing + ]; + networking.firewall.allowedUDPPorts = [ + 22000 # syncthing + ]; + # Or disable the firewall altogether. + # networking.firewall.enable = false; + + # ---- apps config ---- + # Enable the X11 windowing system. services.xserver.enable = true; @@ -178,15 +198,6 @@ in settings = { Peers = [ "tls://37.187.118.206:53103" ]; }; }; - # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ - 22000 # syncthing - ]; - networking.firewall.allowedUDPPorts = [ - 22000 # syncthing - ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you diff --git a/nixos/kde.nix b/nixos/kde.nix index 5204a15..defcddc 100644 --- a/nixos/kde.nix +++ b/nixos/kde.nix @@ -1,6 +1,6 @@ { config, pkgs, ... }: { - #services.xserver.displayManager.sddm.enable = true; - services.xserver.displayManager.lightdm.enable = true; + services.xserver.displayManager.sddm.enable = true; + #services.xserver.displayManager.lightdm.enable = true; services.xserver.desktopManager.plasma5.enable = true; environment.systemPackages = with pkgs.libsForQt5; [ |