about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/audio.nix9
-rwxr-xr-xmodules/larbs.nix28
-rwxr-xr-xmodules/nur.nix9
3 files changed, 46 insertions, 0 deletions
diff --git a/modules/audio.nix b/modules/audio.nix
new file mode 100755
index 0000000..2563c21
--- /dev/null
+++ b/modules/audio.nix
@@ -0,0 +1,9 @@
+{ pkgs, ... }:
+{
+  hardware.pulseaudio.enable = true;
+
+  environment.systemPackages = with pkgs; [
+    pulsemixer
+    pamixer
+  ];
+}
diff --git a/modules/larbs.nix b/modules/larbs.nix
new file mode 100755
index 0000000..5dcd309
--- /dev/null
+++ b/modules/larbs.nix
@@ -0,0 +1,28 @@
+{ pkgs, ... }:
+let
+  pnvim = import ../pkgs/nvim.nix pkgs;
+in
+{
+  imports = [
+    ./audio.nix
+    ./slock.nix
+  ];
+
+  environment.systemPackages = with pkgs.nur.repos.pn; [
+    pnvim
+    larbs-mail
+    larbs-news
+    larbs-music
+    dmenu
+    dwm
+    dwmblocks
+    larbs-scripts
+    st
+  ];
+
+  services.xserver = {
+    enable = true;
+    displayManager.startx.enable = true;
+    libinput.enable = true;
+  };
+}
diff --git a/modules/nur.nix b/modules/nur.nix
new file mode 100755
index 0000000..c8326e9
--- /dev/null
+++ b/modules/nur.nix
@@ -0,0 +1,9 @@
+{
+  nixpkgs.config.packageOverrides = pkgs: {
+    nur = import (builtins.fetchTarball {
+      url = "https://github.com/nix-community/NUR/archive/master.tar.gz";
+    }) {
+      inherit pkgs;
+    };
+  };
+}