summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-10-05 18:04:34 +0200
committerAlan Pearce2019-10-05 18:04:34 +0200
commit09e879cfa15b856a1a26820fcb646edc4adcda88 (patch)
tree06bf8b06cbe15fab2bc3267ff41602836454af86
parenta64e999255638c9a0ae5b7c104d80ac3201b1bc5 (diff)
downloadnixfiles-09e879cfa15b856a1a26820fcb646edc4adcda88.tar.lz
nixfiles-09e879cfa15b856a1a26820fcb646edc4adcda88.tar.zst
nixfiles-09e879cfa15b856a1a26820fcb646edc4adcda88.zip
Move shell and UI packages to user
-rw-r--r--system/modules/programs/shell.nix23
-rw-r--r--system/modules/user-interface.nix10
-rw-r--r--user/modules/base.nix22
-rw-r--r--user/modules/user-interface.nix16
4 files changed, 39 insertions, 32 deletions
diff --git a/system/modules/programs/shell.nix b/system/modules/programs/shell.nix
index cf36a115..68fbfcc5 100644
--- a/system/modules/programs/shell.nix
+++ b/system/modules/programs/shell.nix
@@ -8,27 +8,4 @@
   programs.vim = pkgs.lib.attrsets.optionalAttrs pkgs.stdenv.isDarwin {
     enable = true;
   };
-
-  environment.systemPackages = with pkgs; [
-    pv
-    fd
-    unstable.sd
-    entr
-    file
-    htop
-    lsof
-    iftop
-    nmap
-    moreutils
-    mtr
-    tree
-    zip
-    telnet
-  ] ++ (
-  if !stdenv.isDarwin
-  then [
-    vim
-    unar
-  ] else [
-  ]);
 }
diff --git a/system/modules/user-interface.nix b/system/modules/user-interface.nix
index d25a9176..2fb0acd2 100644
--- a/system/modules/user-interface.nix
+++ b/system/modules/user-interface.nix
@@ -17,8 +17,6 @@
 
     fish # for emacs-fish-completion
 
-    unstable.xst # st, but with support for XResources
-
     lxappearance
     lxrandr
     lxtask
@@ -42,11 +40,7 @@
     wire-desktop
 
     trash-cli
-  ] ++ (if !stdenv.isDarwin
-  then [
-    unstable.mu
-  ]
-  else []);
+  ];
 
   nixpkgs.config.allowUnfree = true;
 
@@ -58,8 +52,6 @@
 
   services.devmon.enable = true;
 
-  environment.sessionVariables.TERMINAL = "st";
-
   systemd.user.services.trash-clean = {
     path = with pkgs; [ trash-cli ];
     description = "Remove old files from FreeDesktop.org trash";
diff --git a/user/modules/base.nix b/user/modules/base.nix
index 46645d94..cc83cb47 100644
--- a/user/modules/base.nix
+++ b/user/modules/base.nix
@@ -6,4 +6,26 @@
   manual = {
     html.enable = true;
   };
+  home.packages = with pkgs; [
+    pv
+    fd
+    unstable.sd
+    entr
+    file
+    htop
+    lsof
+    iftop
+    nmap
+    moreutils
+    mtr
+    tree
+    zip
+    telnet
+  ] ++ (
+  if !stdenv.isDarwin
+  then [
+    vim
+    unar
+  ] else [
+  ]);
 }
diff --git a/user/modules/user-interface.nix b/user/modules/user-interface.nix
new file mode 100644
index 00000000..835cb7b7
--- /dev/null
+++ b/user/modules/user-interface.nix
@@ -0,0 +1,16 @@
+{ config, pkgs, ... }:
+
+let
+  inherit (pkgs) stdenv;
+in
+{
+  home.sessionVariables = {
+    TERMINAL = "${pkgs.unstable.xst}/bin/xst";
+  };
+
+  home.packages = with pkgs; [
+    unstable.xst # st, but with support for XResources
+  ] ++ lib.optionals (!stdenv.isDarwin) [
+    pkgs.unstable.mu
+  ];
+}