aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-07-11 20:42:10 +0200
committerAdrian Kummerlaender2018-07-11 20:42:10 +0200
commit93a53dc19cf1761e3a9ee924cfe146a465a11735 (patch)
tree3217feac19de3dd562fd3992d853e1cbd6ffe5b5
parent5c8176f99c91e31f44848946e12813e2b99be3e9 (diff)
downloadnixos_home-93a53dc19cf1761e3a9ee924cfe146a465a11735.tar
nixos_home-93a53dc19cf1761e3a9ee924cfe146a465a11735.tar.gz
nixos_home-93a53dc19cf1761e3a9ee924cfe146a465a11735.tar.bz2
nixos_home-93a53dc19cf1761e3a9ee924cfe146a465a11735.tar.lz
nixos_home-93a53dc19cf1761e3a9ee924cfe146a465a11735.tar.xz
nixos_home-93a53dc19cf1761e3a9ee924cfe146a465a11735.tar.zst
nixos_home-93a53dc19cf1761e3a9ee924cfe146a465a11735.zip
Add host-specific config analogously to nixos_system
Enables installation of modem-manager-gui derivation to be restricted to asterix. XMonad config will also get host-specific sections in the future.
-rw-r--r--gui/pkgs/modem-manager-gui.nix35
-rw-r--r--home.nix2
-rw-r--r--host/asterix.nix14
-rw-r--r--host/obelix.nix7
4 files changed, 57 insertions, 1 deletions
diff --git a/gui/pkgs/modem-manager-gui.nix b/gui/pkgs/modem-manager-gui.nix
new file mode 100644
index 0000000..50d64a8
--- /dev/null
+++ b/gui/pkgs/modem-manager-gui.nix
@@ -0,0 +1,35 @@
+{ stdenv, pkgs, ... }:
+
+stdenv.mkDerivation rec {
+ name = "modem-manager-gui";
+
+ src = pkgs.fetchhg {
+ url = "https://linuxonly@bitbucket.org/linuxonly/modem-manager-gui";
+ rev = "5c6456f";
+ };
+
+ # required for locale generation
+ LANG = "en_US.UTF-8";
+ LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
+ # required to get Po4a to work
+ PERL5LIB="${pkgs.perlPackages.Po4a}/lib/perl5";
+
+ buildInputs = with pkgs; [
+ pkgconfig
+ gtk3
+ glib
+ gdbm
+ perlPackages.Po4a
+ itstool
+ libappindicator-gtk3
+ meson
+ gettext
+ ninja
+ ];
+
+ meta = {
+ description = "modem-manager-gui";
+ homepage = https://linuxonly.ru/page/modem-manager-gui;
+ license = stdenv.lib.licenses.gpl3;
+ };
+}
diff --git a/home.nix b/home.nix
index 50d8787..01c1880 100644
--- a/home.nix
+++ b/home.nix
@@ -7,7 +7,7 @@
};
imports = [
- ./gui/default.nix
+ ./host/current.nix
];
home = {
diff --git a/host/asterix.nix b/host/asterix.nix
new file mode 100644
index 0000000..7a74307
--- /dev/null
+++ b/host/asterix.nix
@@ -0,0 +1,14 @@
+{ pkgs, ... }:
+
+{
+ imports = [
+ ../gui/default.nix
+ ];
+
+ home.packages = let
+ # only asterix has a 3g modem
+ modem-manager-gui = import ../gui/pkgs/modem-manager-gui.nix pkgs;
+ in [
+ modem-manager-gui
+ ];
+}
diff --git a/host/obelix.nix b/host/obelix.nix
new file mode 100644
index 0000000..bfd3522
--- /dev/null
+++ b/host/obelix.nix
@@ -0,0 +1,7 @@
+{ pkgs, ... }:
+
+{
+ imports = [
+ ../gui/default.nix
+ ];
+}