about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/common/desktop/default.nix8
-rw-r--r--hosts/common/desktop/fonts.nix25
-rw-r--r--hosts/common/desktop/xserver.nix63
3 files changed, 0 insertions, 96 deletions
diff --git a/hosts/common/desktop/default.nix b/hosts/common/desktop/default.nix
deleted file mode 100644
index 6a752b6..0000000
--- a/hosts/common/desktop/default.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{ lib, config, pkgs, ... }: {
-  imports = [ ./fonts.nix ./xserver.nix ];
-
-  services.avahi.enable = true;
-  # Important to resolve .local domains of printers, otherwise you get an error
-  # like  "Impossible to connect to XXX.local: Name or service not known"
-  services.avahi.nssmdns = true;
-}
diff --git a/hosts/common/desktop/fonts.nix b/hosts/common/desktop/fonts.nix
deleted file mode 100644
index 747abd1..0000000
--- a/hosts/common/desktop/fonts.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-{ pkgs, config, lib, ... }:
-
-{
-  fonts = {
-    enableDefaultFonts = true;
-    fontDir.enable = true;
-    fontconfig.enable = true;
-    fonts = with pkgs; [
-      dejavu_fonts
-      font-awesome_5
-      noto-fonts
-      noto-fonts-cjk # Chinese, Japanese, Korean
-      noto-fonts-emoji
-      noto-fonts-emoji
-      noto-fonts-extra
-      source-code-pro
-      source-sans-pro
-      source-serif-pro
-    ];
-
-    fontconfig.defaultFonts = {
-      monospace = [ "Source Code Pro" ];
-    };
-  };
-}
diff --git a/hosts/common/desktop/xserver.nix b/hosts/common/desktop/xserver.nix
deleted file mode 100644
index 8a3dee9..0000000
--- a/hosts/common/desktop/xserver.nix
+++ /dev/null
@@ -1,63 +0,0 @@
-{ config, pkgs, lib, ... }:
-
-{
-  programs.sway = {
-    enable = true;
-    wrapperFeatures.gtk = true;
-    extraPackages = with pkgs; [
-      brightnessctl
-      polkit_gnome
-      xsettingsd
-      swaylock
-      swayidle
-      wl-clipboard
-    ];
-    extraSessionCommands = ''
-      export MOZ_ENABLE_WAYLAND=1
-    '';
-  };
-
-  programs.dconf.enable = true;
-
-  services = {
-    dbus = {
-      enable = true;
-      packages = [
-        pkgs.gcr
-        pkgs.gnome3.dconf
-        pkgs.gnome3.gnome-keyring
-      ];
-    };
-
-    udev.packages = [
-      pkgs.gnome3.gnome-settings-daemon
-    ];
-
-    gvfs = {
-      enable = true;
-      package = pkgs.gnome.gvfs;
-    };
-
-    gnome = {
-      gnome-keyring.enable = true;
-      # !https://github.com/NixOS/nixpkgs/issues/16327
-      at-spi2-core.enable = true;
-    };
-  };
-
-  security = {
-    polkit.enable = true;
-  };
-
-  xdg.portal = {
-    enable = true;
-    gtkUsePortal = true;
-    extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
-  };
-
-  environment = {
-    pathsToLink = [ "/libexec" ];
-    homeBinInPath = true;
-    localBinInPath = true;
-  };
-}