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"; + }; +} +