remove desktop environment from server; consolidate much-needed caps:esc switch to common users file

This commit is contained in:
Haak Saxberg 2022-08-09 17:36:58 -07:00
parent b5948db3da
commit f739cc8fde
4 changed files with 10 additions and 31 deletions

View file

@ -26,6 +26,9 @@
server = {
deployment.targetHost = "192.168.1.65";
imports = [ ../system/xps11/configuration.nix ];
networking.wireless.networks.N904.pskRaw = (
(import ../system/framework/keys.nix).wifi.N904.pskRaw
);
};
nas = {

View file

@ -9,6 +9,10 @@
];
};
# run the following command to swap escape and caps-lock keys, like a
# civilized person:
services.xserver.xkbOptions = "caps:swapescape";
users.extraUsers.haak = {
shell = pkgs.zsh;
};

View file

@ -142,9 +142,6 @@
desktopManager.gnome.enable = true;
layout = "us";
# run the following command to swap escape and caps-lock keys, like a
# civilized person:
xkbOptions = "caps:swapescape";
};
services.syncthing = {

View file

@ -19,10 +19,10 @@
boot.loader.efi.canTouchEfiVariables = true;
hardware.bluetooth.enable = true;
networking.networkmanager.enable = true;
# networking.networkmanager.enable = true;
networking.hostName = "athena"; # Define your hostname.
# Create entries for /etc/wpa_supplicant.conf by running `wpa_passphrase SSID PASSWORD`
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
@ -49,21 +49,12 @@
# $ nix search wget
environment.systemPackages = with pkgs; [
cachix
# configure local network sharing, launch app on startup, and auto-connect
# in the preferences menu
mullvad-vpn
p7zip
# Do NOT use qbittorrent unless you have set up interface binding with your
# VPN: https://web.archive.org/web/20210426203101/https://mullvad.net/en/help/bittorrent/
qbittorrent
wget
zsh
];
nixpkgs.config.allowUnfree = true;
fonts.fonts = with pkgs; [ fira-code ];
# Open ports in the firewall.
networking.firewall = {
allowedTCPPorts = [
@ -147,11 +138,6 @@
};
};
# VPN setup
services.mullvad-vpn.enable = true;
networking.wireguard.enable = true;
networking.firewall.checkReversePath = "loose";
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
@ -162,10 +148,7 @@
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "us";
services.xserver.xkbOptions = "caps:swapescape";
services.plex = {
enable = true;
@ -174,15 +157,7 @@
};
# Enable touchpad support.
services.xserver.libinput.enable = true;
# Enable the KDE Desktop Environment.
services.xserver = {
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
};
location.provider = "geoclue2";
# services.xserver.libinput.enable = true;
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database