add jade.nix

This commit is contained in:
♥ Minnie ♥ 2023-05-04 16:34:27 +08:00
parent 65ecde812d
commit 5d6d8f57dc
2 changed files with 32 additions and 1 deletions

View file

@ -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

29
nixos/jade.nix Normal file
View file

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