From 5d6d8f57dc6e7fb92fc070d7f8101c365f826c84 Mon Sep 17 00:00:00 2001 From: sajenim Date: Thu, 4 May 2023 16:34:27 +0800 Subject: [PATCH] add jade.nix --- nixos/configuration.nix | 4 +++- nixos/jade.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 nixos/jade.nix diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 0ce6de1..6b38924 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -12,7 +12,9 @@ # inputs.hardware.nixosModules.common-ssd # You can also split up your configuration and import pieces of it here: - # ./users.nix + + # Import our desktop environment + ./jade.nix # Import your generated (nixos-generate-config) hardware configuration ./hardware-configuration.nix diff --git a/nixos/jade.nix b/nixos/jade.nix new file mode 100644 index 0000000..d67fe70 --- /dev/null +++ b/nixos/jade.nix @@ -0,0 +1,29 @@ +{ inputs, outputs, lib, config, pkgs, ... }: + +{ + # Import our modules + imports = [ ]; + + # Add overlays exported from flakes: + nixpkgs.overlays = [ + (final: prev: { + xmonad-jsm = inputs.xmonad-jsm.packages.${pkgs.system}.xmonad-jsm; + xmobar-jsm = inputs.xmobar-jsm.packages.${pkgs.system}.xmobar-jsm; + }) + ]; + + # Install our dependencies + environment.systemPackages = with pkgs; [ + dmenu + feh + xmobar-jsm + ]; + + # Setup our window manager + services.xserver.windowManager.xmonad = { + enable = true; + enableContribAndExtras = true; + config = builtins.readFile "${inputs.xmonad-jsm}/src/xmonad.hs"; + }; +} +