Minor refactors
This commit is contained in:
parent
e1785b5171
commit
f831429666
|
@ -7,8 +7,8 @@
|
||||||
{
|
{
|
||||||
my.packages = with pkgs; [
|
my.packages = with pkgs; [
|
||||||
firefox-bin (pkgs.writeScriptBin "firefox-private" ''
|
firefox-bin (pkgs.writeScriptBin "firefox-private" ''
|
||||||
#! ${pkgs.bash}/bin/bash
|
#!${stdenv.shell}
|
||||||
firefox --private-window "$@"
|
${firefox}/bin/firefox --private-window "$@"
|
||||||
'')
|
'')
|
||||||
(makeDesktopItem {
|
(makeDesktopItem {
|
||||||
name = "firefox-private";
|
name = "firefox-private";
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
folders =
|
folders =
|
||||||
let deviceEnabled = devices: lib.elem config.networking.hostName devices;
|
let deviceEnabled = devices: lib.elem config.networking.hostName devices;
|
||||||
deviceType = devices:
|
deviceType = devices:
|
||||||
if (deviceEnabled devices)
|
if deviceEnabled devices
|
||||||
then "sendreceive"
|
then "sendreceive"
|
||||||
else "receiveonly";
|
else "receiveonly";
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in a new issue