about summary refs log tree commit diff
path: root/modules/user
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-18 18:30:42 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-03-18 18:30:42 +0100
commit012fc8e4f399af06ab013ba136fe1d2cffb913f1 (patch)
tree30067e9c9420fea0a9150234a01bd43208a9d18c /modules/user
parent95a16e591e9e26158ebf1604e5cb2c82dfcf2856 (diff)
Refactor overrides into my base profile.
Just moving the overrides into the base profile isn't enough here,
as we wouldn't be able to refer to packages anymore, because the global
nixpkgs.config override is now gone.

Instead, we're now putting pkgs.vuizvui.* into the NixOS module system
by a new profiles/common.nix, which is used unconditionally for all
machines.

Of course, the result of this is that we now need to change all
references to vuizvui-related packages, which also is a good thing,
because we will no longer shadow existing packages from upstream
nixpkgs.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/aszlig/profiles/base.nix31
-rw-r--r--modules/user/aszlig/profiles/workstation/packages.nix10
-rw-r--r--modules/user/aszlig/services/i3/default.nix3
-rw-r--r--modules/user/aszlig/services/vlock/default.nix2
-rw-r--r--modules/user/aszlig/system/kernel.nix2
5 files changed, 39 insertions, 9 deletions
diff --git a/modules/user/aszlig/profiles/base.nix b/modules/user/aszlig/profiles/base.nix
index 4083150c..8ccc77d2 100644
--- a/modules/user/aszlig/profiles/base.nix
+++ b/modules/user/aszlig/profiles/base.nix
@@ -58,7 +58,36 @@ in {
       xz
     ];
 
-    nixpkgs.config = import ../../../../nixpkgs/config.nix;
+    nixpkgs.config = {
+      pulseaudio = true;
+      chromium.enablePepperFlash = true;
+      firefox.jre = true;
+
+      # Needed for CPU microcode
+      allowUnfree = true;
+
+      allowBroken = true;
+
+      packageOverrides = pkgs: {
+        miro = pkgs.miro.override {
+          enableBonjour = true;
+        };
+        netrw = pkgs.netrw.override {
+          checksumType = "mhash";
+        };
+        pulseaudio = pkgs.pulseaudio.override {
+          useSystemd = true;
+        };
+        uqm = pkgs.uqm.override {
+          use3DOVideos = true;
+          useRemixPacks = true;
+        };
+        w3m = pkgs.w3m.override {
+          graphicsSupport = true;
+        };
+      };
+    };
+
     system.fsPackages = with pkgs; [ sshfsFuse ];
     time.timeZone = "Europe/Berlin";
   };
diff --git a/modules/user/aszlig/profiles/workstation/packages.nix b/modules/user/aszlig/profiles/workstation/packages.nix
index 5b60ac21..6d952448 100644
--- a/modules/user/aszlig/profiles/workstation/packages.nix
+++ b/modules/user/aszlig/profiles/workstation/packages.nix
@@ -1,11 +1,11 @@
 pkgs: with pkgs; [
-  aacolorize
+  vuizvui.aacolorize
   acpi
   apg
   ascii
   aspellDicts.de
   aspellDicts.en
-  axbo
+  vuizvui.axbo
   bc
   beets
   chromiumBeta
@@ -51,7 +51,7 @@ pkgs: with pkgs; [
   netrw
   nix-prefetch-scripts
   nix-repl
-  nixops
+  vuizvui.nixops
   nixpkgs-lint
   nmap
   openssh
@@ -61,7 +61,7 @@ pkgs: with pkgs; [
   picard
   posix_man_pages
   pulseaudio
-  pvolctrl
+  vuizvui.pvolctrl
   python
   python3
   pythonPackages.hetzner
@@ -79,7 +79,7 @@ pkgs: with pkgs; [
   surfraw
   taskwarrior
   telnet
-  tomahawk
+  vuizvui.tomahawk
   unzip
   uqm
   valgrind
diff --git a/modules/user/aszlig/services/i3/default.nix b/modules/user/aszlig/services/i3/default.nix
index f1e46b7c..6064ec99 100644
--- a/modules/user/aszlig/services/i3/default.nix
+++ b/modules/user/aszlig/services/i3/default.nix
@@ -112,7 +112,8 @@ in
       name = "i3.conf";
       src = ./i3.conf;
 
-      inherit (pkgs) dmenu xterm pvolctrl;
+      inherit (pkgs) dmenu xterm;
+      inherit (pkgs.vuizvui) pvolctrl;
       inherit (pkgs.xorg) xsetroot;
       inherit wsConfig barConfig;
 
diff --git a/modules/user/aszlig/services/vlock/default.nix b/modules/user/aszlig/services/vlock/default.nix
index fdf0522f..5eb5e83d 100644
--- a/modules/user/aszlig/services/vlock/default.nix
+++ b/modules/user/aszlig/services/vlock/default.nix
@@ -5,7 +5,7 @@ let
 
   messageFile = pkgs.runCommand "message.cat" {} ''
     echo -en '\e[H\e[2J\e[?25l' > "$out"
-    "${pkgs.aacolorize}/bin/aacolorize" \
+    "${pkgs.vuizvui.aacolorize}/bin/aacolorize" \
       "${./message.cat}" "${./message.colmap}" \
       >> "$out"
   '';
diff --git a/modules/user/aszlig/system/kernel.nix b/modules/user/aszlig/system/kernel.nix
index a98a0a44..e715ccb2 100644
--- a/modules/user/aszlig/system/kernel.nix
+++ b/modules/user/aszlig/system/kernel.nix
@@ -45,7 +45,7 @@ in {
       linuxVuizvui = pkgs.buildLinux {
         inherit (mainlineKernel) version src;
 
-        kernelPatches = singleton pkgs.vuizvuiKernelPatches.bfqsched;
+        kernelPatches = singleton pkgs.vuizvui.kernelPatches.bfqsched;
         configfile = generateKConf cfg.config;
         allowImportFromDerivation = true;
       };