aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-08-27 21:10:56 +0200
committerAdrian Kummerlaender2020-08-27 21:10:56 +0200
commit290c1c8116cd70cc248cf4bb9458611a16c5694a (patch)
tree7a2e824dd593e31ba5878b419460d543473d85a3 /gui
parent191438718de6175cb0cff457005ed312cc4e8fd8 (diff)
downloadnixos_home-290c1c8116cd70cc248cf4bb9458611a16c5694a.tar
nixos_home-290c1c8116cd70cc248cf4bb9458611a16c5694a.tar.gz
nixos_home-290c1c8116cd70cc248cf4bb9458611a16c5694a.tar.bz2
nixos_home-290c1c8116cd70cc248cf4bb9458611a16c5694a.tar.lz
nixos_home-290c1c8116cd70cc248cf4bb9458611a16c5694a.tar.xz
nixos_home-290c1c8116cd70cc248cf4bb9458611a16c5694a.tar.zst
nixos_home-290c1c8116cd70cc248cf4bb9458611a16c5694a.zip
Use niv for tracking channel versions
This way the config is actually reproducible without manually tracking supported nixpkgs states. home-manager is now not installed environment-wide anymore but only available inside a nix-shell.
Diffstat (limited to 'gui')
-rw-r--r--gui/apps/web.nix4
-rw-r--r--gui/emacs.nix42
-rw-r--r--gui/gtk.nix7
3 files changed, 25 insertions, 28 deletions
diff --git a/gui/apps/web.nix b/gui/apps/web.nix
index 5b85ba5..eab7dbd 100644
--- a/gui/apps/web.nix
+++ b/gui/apps/web.nix
@@ -1,11 +1,11 @@
-{ config, pkgs, ... }:
+{ config, pkgs, pkgs-unstable, ... }:
{
home = {
packages = (with pkgs; [
thunderbird
tdesktop
- ]) ++ (with config.custom.nixpkgs-unstable; [
+ ]) ++ (with pkgs-unstable; [
zotero
]);
};
diff --git a/gui/emacs.nix b/gui/emacs.nix
index ce5912b..a0cd3bd 100644
--- a/gui/emacs.nix
+++ b/gui/emacs.nix
@@ -1,6 +1,11 @@
-{ config, pkgs, ... }:
+{ config, pkgs, sources, ... }:
-{
+let
+ pkgs-unstable = import sources.nixpkgs-unstable {
+ overlays = [ (import sources.emacs-overlay) ];
+ };
+
+in {
programs.emacs = let
akr-color-theme = pkgs.stdenv.mkDerivation {
name = "emacs-color-theme-akr";
@@ -44,27 +49,18 @@
in {
enable = true;
- package = let
- pkgs-unstable = import <nixpkgs-unstable> {
- overlays = [
- (import (builtins.fetchTarball {
- url = https://github.com/nix-community/emacs-overlay/archive/c10d59874dfa8341237702bce514a763198770c4.tar.gz;
- }))
- ];
- };
- in
- pkgs-unstable.emacsWithPackagesFromUsePackage {
- config = ./conf/init.el;
- package = pkgs-unstable.emacsGcc;
- extraEmacsPackages = epkgs: with epkgs.melpaPackages; [
- pdf-tools
- mu4e-alert
- ] ++ [
- akr-color-theme
- custom-runtime-env
- pkgs.mu
- ];
- };
+ package = pkgs-unstable.emacsWithPackagesFromUsePackage {
+ config = ./conf/init.el;
+ package = pkgs-unstable.emacsGcc;
+ extraEmacsPackages = epkgs: with epkgs.melpaPackages; [
+ pdf-tools
+ mu4e-alert
+ ] ++ [
+ akr-color-theme
+ custom-runtime-env
+ pkgs.mu
+ ];
+ };
};
home.packages = with pkgs; [
diff --git a/gui/gtk.nix b/gui/gtk.nix
index 2251507..b26a626 100644
--- a/gui/gtk.nix
+++ b/gui/gtk.nix
@@ -1,14 +1,15 @@
-{ config, pkgs, ... }:
+{ config, pkgs, pkgs-personal, ... }:
let
hidpi = config.custom.hidpi;
+
in {
gtk = {
enable = true;
theme = {
name = "oomox";
- package = config.custom.pkgs.oomox-gtk-theme {
+ package = pkgs-personal.oomox-gtk-theme {
accent_bg = "aadb0f";
bg = "d8d8d8";
fg = "101010";
@@ -37,7 +38,7 @@ in {
iconTheme = {
name = "oomox-archdroid";
- package = config.custom.pkgs.oomox-archdroid-icon-theme "909636";
+ package = pkgs-personal.oomox-archdroid-icon-theme "909636";
};
font = {