From 09dc1fefcf73dd3e57939105c22d050a65222211 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 1 Dec 2024 10:31:03 +0100 Subject: add sway The config is the default config copied from /etc/sway/config. --- nixos/hamac-configuration.nix | 1 + nixos/parts/graphical.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 nixos/parts/graphical.nix (limited to 'nixos') diff --git a/nixos/hamac-configuration.nix b/nixos/hamac-configuration.nix index 306260d..145baf8 100644 --- a/nixos/hamac-configuration.nix +++ b/nixos/hamac-configuration.nix @@ -7,6 +7,7 @@ imports = [ ./hamac-hardware-configuration.nix ./sanix.nix + ./parts/graphical.nix ]; # Bootloader. diff --git a/nixos/parts/graphical.nix b/nixos/parts/graphical.nix new file mode 100644 index 0000000..93082a9 --- /dev/null +++ b/nixos/parts/graphical.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +{ + programs.sway = { + enable = true; + # Execute sway with required environment variables for GTK apps. + wrapperFeatures.gtk = true; + }; + + environment.systemPackages = with pkgs; [ + ]; +} -- cgit v1.2.3