summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/common.nix33
-rw-r--r--nixos/kde.nix4
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; [