Minor refactors, reformatting & comment revision

This commit is contained in:
Henrik Lissner 2020-01-23 18:58:53 -05:00
parent ff425f9a40
commit a12c05b78f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 10 additions and 8 deletions

View file

@ -6,7 +6,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
my.packages = with pkgs; [ my.packages = with pkgs; [
firefox-bin (pkgs.writeScriptBin "firefox-private" '' firefox-bin
(pkgs.writeScriptBin "firefox-private" ''
#!${stdenv.shell} #!${stdenv.shell}
${firefox}/bin/firefox --private-window "$@" ${firefox}/bin/firefox --private-window "$@"
'') '')

View file

@ -19,7 +19,6 @@
exec = "${qutebrowser}/bin/qutebrowser ':open -p'"; exec = "${qutebrowser}/bin/qutebrowser ':open -p'";
categories = "Network"; categories = "Network";
}) })
]; ];
my.env.BROWSER = "qutebrowser"; my.env.BROWSER = "qutebrowser";
my.home.xdg = { my.home.xdg = {

View file

@ -1,8 +1,9 @@
# modules/graphics.nix # modules/graphics.nix
# #
# The hardest part about switching to linux was sacrifices adobe. It is so bad I # The hardest part about switching to linux? Sacrificing Adobe. It really is
# have a second computer dedicated to adobe (and gaming). Still, I can still # difficult to replace and its open source alternatives don't *quite* cut it,
# manage half of my design work on open source alternatives. # but enough that I can do a fraction of it on Linux. For the rest I have a
# second computer dedicated to design work (and gaming).
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {

View file

@ -12,6 +12,8 @@
my.alias.mpcs = "mpc search any"; my.alias.mpcs = "mpc search any";
my.alias.mpcsp = "mpc searchplay any"; my.alias.mpcsp = "mpc searchplay any";
# Symlink these one at a time because ncmpcpp writes other files to
# ~/.config/ncmpcpp, so it needs to be writeable.
my.home.xdg.configFile = { my.home.xdg.configFile = {
"ncmpcpp/config".source = <config/ncmpcpp/config>; "ncmpcpp/config".source = <config/ncmpcpp/config>;
"ncmpcpp/bindings".source = <config/ncmpcpp/bindings>; "ncmpcpp/bindings".source = <config/ncmpcpp/bindings>;

View file

@ -4,8 +4,7 @@
my = { my = {
packages = with pkgs; [ packages = with pkgs; [
# The developer of tmux chooses not to add XDG support for religious # The developer of tmux chooses not to add XDG support for religious
# reasons (see tmux/tmux#142). Fortunately, nix offers a simple # reasons (see tmux/tmux#142). Fortunately, nix makes this easy:
# workaround:
(writeScriptBin "tmux" '' (writeScriptBin "tmux" ''
#!${stdenv.shell} #!${stdenv.shell}
exec ${tmux}/bin/tmux -f "$TMUX_HOME/config" "$@" exec ${tmux}/bin/tmux -f "$TMUX_HOME/config" "$@"

View file

@ -7,7 +7,7 @@
{ {
virtualisation.virtualbox.host = { virtualisation.virtualbox.host = {
enable = true; enable = true;
enableExtensionPack = true; enableExtensionPack = true; # urg, takes so long to build
}; };
my.user.extraGroups = [ "vboxusers" ]; my.user.extraGroups = [ "vboxusers" ];