working install, many things broken
This commit is contained in:
parent
6e4f0f3aaf
commit
5371aeaa2a
|
@ -127,10 +127,11 @@
|
||||||
users = digga.lib.rakeLeaves ./users;
|
users = digga.lib.rakeLeaves ./users;
|
||||||
};
|
};
|
||||||
suites = with profiles; rec {
|
suites = with profiles; rec {
|
||||||
base = [ core users.nixos users.root nvim users.anish ]; # TODO make anish non gui
|
base = [ core users.root nvim users.anish ]; # TODO make anish non gui
|
||||||
sealight = [ base ]; # matrix rsshub backup wireguard
|
sealight = [ base ]; # matrix rsshub backup wireguard
|
||||||
mossnet = [ base ]; # shaarli wallabag nextcloud taskwarrior headphones
|
mossnet = [ base ]; # shaarli wallabag nextcloud taskwarrior headphones
|
||||||
curve = [ base desktop ];
|
graphical = [ base users.profiles.firefox users.profiles.desktop ];
|
||||||
|
curve = [ graphical ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -142,7 +143,7 @@
|
||||||
profiles = digga.lib.rakeLeaves ./users/profiles;
|
profiles = digga.lib.rakeLeaves ./users/profiles;
|
||||||
suites = with profiles; rec {
|
suites = with profiles; rec {
|
||||||
base = [ direnv git ];
|
base = [ direnv git ];
|
||||||
gui = [ base firefox desktop ];
|
#gui = [ base profiles.firefox profiles.desktop ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
users = {
|
users = {
|
||||||
|
|
|
@ -3,11 +3,16 @@
|
||||||
imports = [
|
imports = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
profiles.users.anish
|
profiles.users.anish
|
||||||
|
#profiles.users.profiles.firefox
|
||||||
|
#profiles.users.profiles.desktop
|
||||||
] ++ suites.curve;
|
] ++ suites.curve;
|
||||||
|
|
||||||
home-manager.users.anish = { suites, ... }: {
|
#home-manager.users.anish = { suites, ... }: {
|
||||||
imports = suites.gui;
|
# imports = [
|
||||||
};
|
# profiles.users.profiles.desktop
|
||||||
|
# profiles.users.profiles.firefox
|
||||||
|
# ];
|
||||||
|
#};
|
||||||
|
|
||||||
#bud.enable = true;
|
#bud.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,46 +2,46 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
#imports = [ ./music.nix ]
|
#imports = [ ./music.nix ]
|
||||||
environment.systemPackages = with pkgs; [
|
# environment.systemPackages = with pkgs; [
|
||||||
lightdm
|
# lightdm
|
||||||
dunst
|
# dunst
|
||||||
libnotify
|
# libnotify
|
||||||
(polybar.override {
|
# (polybar.override {
|
||||||
pulseSupport = true;
|
# pulseSupport = true;
|
||||||
nlSupport = true;
|
# nlSupport = true;
|
||||||
})
|
# })
|
||||||
];
|
# ];
|
||||||
|
#
|
||||||
services = {
|
# services = {
|
||||||
picom.enable = true;
|
# picom.enable = true;
|
||||||
#redshift.enable = true;
|
# #redshift.enable = true;
|
||||||
xserver = {
|
# xserver = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
displayManager = {
|
# displayManager = {
|
||||||
defaultSession = "none+bspwm";
|
# defaultSession = "none+bspwm";
|
||||||
lightdm.enable = true;
|
# lightdm.enable = true;
|
||||||
#lightdm.greeters.mini.enable = true;
|
# lightdm.greeters.mini.enable = true;
|
||||||
#lightdm.greeters.mini.user = "anish"; # TODO hardcoded
|
# lightdm.greeters.mini.user = "anish"; # TODO hardcoded
|
||||||
};
|
# };
|
||||||
windowManager.bspwm.enable = true;
|
# windowManager.bspwm.enable = true;
|
||||||
windowManager.bspwm.configFile = "/home/anish/.bspwm/bspwmrc";
|
# windowManager.bspwm.configFile = "/home/anish/.bspwm/bspwmrc";
|
||||||
windowManager.bspwm.sxhkd.configFile = "/home/anish/sxhkdrc";
|
# windowManager.bspwm.sxhkd.configFile = "/home/anish/sxhkdrc";
|
||||||
#windowManager.default = "bspwm";
|
# #windowManager.default = "bspwm";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
#
|
||||||
#systemd.user.services."dunst" = {
|
# #systemd.user.services."dunst" = {
|
||||||
# enable = true;
|
# # enable = true;
|
||||||
# description = "";
|
# # description = "";
|
||||||
# wantedBy = [ "default.target" ];
|
# # wantedBy = [ "default.target" ];
|
||||||
# serviceConfig.Restart = "always";
|
# # serviceConfig.Restart = "always";
|
||||||
# serviceConfig.RestartSec = 2;
|
# # serviceConfig.RestartSec = 2;
|
||||||
# serviceConfig.ExecStart = "${pkgs.dunst}/bin/dunst";
|
# # serviceConfig.ExecStart = "${pkgs.dunst}/bin/dunst";
|
||||||
#};
|
# #};
|
||||||
services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
|
# services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
|
||||||
text-color = "#ff79c6"
|
# text-color = "#ff79c6"
|
||||||
password-background-color = "#1E2029"
|
# password-background-color = "#1E2029"
|
||||||
window-color = "#181a23"
|
# window-color = "#181a23"
|
||||||
border-color = "#181a23"
|
# border-color = "#181a23"
|
||||||
'';
|
# '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,13 @@
|
||||||
extraGroups = [ "wheel" "audio" ];
|
extraGroups = [ "wheel" "audio" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
#home-manager.programs.git = {
|
home-manager.users.anish.programs.git = {
|
||||||
# userName = "Anish Lakhwara";
|
userName = "Anish Lakhwara";
|
||||||
# userEmail = "anish+git@lakhwara.com";
|
userEmail = "anish+git@lakhwara.com";
|
||||||
# delta.enable = true;
|
delta.enable = true;
|
||||||
#};
|
|
||||||
|
|
||||||
home-manager.users.anish = { suites, ... }: {
|
|
||||||
imports = suites.gui;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#home-manager.users.anish = { suites, ... }: {
|
||||||
|
# imports = suites.gui;
|
||||||
|
#};
|
||||||
}
|
}
|
||||||
|
|
25
users/profiles/desktop/ayu-kitty.conf
Normal file
25
users/profiles/desktop/ayu-kitty.conf
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#: This is a port of ayu Mirage color scheme
|
||||||
|
#: based on :
|
||||||
|
#: https://github.com/ayu-theme/ayu-colors
|
||||||
|
|
||||||
|
background #1F2430
|
||||||
|
foreground #CBCCC6
|
||||||
|
cursor #FFCC66
|
||||||
|
selection_background #33415E
|
||||||
|
color0 #000000
|
||||||
|
color8 #4D5566
|
||||||
|
color1 #FF3333
|
||||||
|
color9 #F27983
|
||||||
|
color2 #BAE67E
|
||||||
|
color10 #A6CC70
|
||||||
|
color3 #FFA759
|
||||||
|
color11 #F29E74
|
||||||
|
color4 #73D0FF
|
||||||
|
color12 #77A8D9
|
||||||
|
color5 #D4BFFF
|
||||||
|
color13 #A37ACC
|
||||||
|
color6 #95E6CB
|
||||||
|
color14 #4CBF99
|
||||||
|
color7 #ffffff
|
||||||
|
color15 #F0F0F0
|
||||||
|
selection_foreground #CBCCC6
|
|
@ -15,6 +15,20 @@ bspc monitor $MONITOR -d {1,2,3,4,5}
|
||||||
bspc config remove_disabled_monitors true
|
bspc config remove_disabled_monitors true
|
||||||
bspc config remove_unplugged_monitors true
|
bspc config remove_unplugged_monitors true
|
||||||
|
|
||||||
|
bspc config borderless_monocle true
|
||||||
|
bspc config gapless_monocle true
|
||||||
|
|
||||||
|
bspc config border_width 1
|
||||||
|
bspc config window_gap 4
|
||||||
|
|
||||||
|
bspc config normal_border_color "#181a23"
|
||||||
|
bspc config active_border_color "#181a23"
|
||||||
|
bspc config focused_border_color "#bd93f9"
|
||||||
|
bspc config presel_feedback_color "#bd93f9"
|
||||||
|
|
||||||
|
# Extra padding for polybar
|
||||||
|
bspc config -m primary top_padding 34
|
||||||
|
bspc config -m primary bottom_padding 0
|
||||||
|
|
||||||
# Rules
|
# Rules
|
||||||
bspc rule -r '*'
|
bspc rule -r '*'
|
||||||
|
@ -28,7 +42,7 @@ bspc rule -a 'Emacs:scratch' state=floating
|
||||||
bspc rule -a 'Emacs:emacs-everywhere' state=floating sticky=on
|
bspc rule -a 'Emacs:emacs-everywhere' state=floating sticky=on
|
||||||
bspc rule -a '*:scratch' state=floating sticky=on center=on border=off rectangle=1000x800+0+0
|
bspc rule -a '*:scratch' state=floating sticky=on center=on border=off rectangle=1000x800+0+0
|
||||||
|
|
||||||
#
|
# polybar
|
||||||
for file in $XDG_CONFIG_HOME/bspwm/rc.d/*; do
|
for file in $XDG_CONFIG_HOME/bspwm/rc.d/*; do
|
||||||
source "$file"
|
source "$file"
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,107 +1,108 @@
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Enable bspwm and sxhkd
|
#imports = [ ./xdg.nix ];
|
||||||
xsession.windowManager.bspwm = {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = ''
|
|
||||||
bspc config remove_disabled_monitors true
|
|
||||||
bspc config remove_unplugged_monitors true
|
|
||||||
|
|
||||||
bspc config borderless_monocle true
|
environment.systemPackages = with pkgs; [
|
||||||
bspc config gapless_monocle true
|
rofi
|
||||||
|
lightdm
|
||||||
bspc config border_width 1
|
dunst
|
||||||
bspc config window_gap 4
|
libnotify
|
||||||
|
(polybar.override {
|
||||||
bspc config normal_border_color "#181a23"
|
pulseSupport = true;
|
||||||
bspc config active_border_color "#181a23"
|
nlSupport = true;
|
||||||
bspc config focused_border_color "#bd93f9"
|
})
|
||||||
bspc config presel_feedback_color "#bd93f9"
|
];
|
||||||
|
|
||||||
# Extra padding for polybar
|
|
||||||
bspc config -m primary top_padding 34
|
|
||||||
bspc config -m primary bottom_padding 0
|
|
||||||
|
|
||||||
# Load polybar
|
services = {
|
||||||
for file in $XDG_CONFIG_HOME/bspwm/rc.d/*; do
|
picom.enable = true;
|
||||||
source "$file"
|
#redshift.enable = true;
|
||||||
done
|
xserver = {
|
||||||
'';
|
enable = true;
|
||||||
};
|
displayManager = {
|
||||||
services.sxhkd.enable = true;
|
defaultSession = "none+bspwm";
|
||||||
|
lightdm.enable = true;
|
||||||
# Add gtk theme for Dracular and Paper
|
lightdm.greeters.mini.enable = true;
|
||||||
# Set wallpaper
|
lightdm.greeters.mini.user = "anish"; # TODO hardcoded
|
||||||
|
lightdm.greeters.mini.extraConfig = ''
|
||||||
# Install themes
|
text-color = "#ff79c6"
|
||||||
# More nixOS Config
|
password-background-color = "#1E2029"
|
||||||
#packages = with pkgs; [
|
window-color = "#181a23"
|
||||||
# dracula-theme
|
border-color = "#181a23"
|
||||||
# paper-icon-theme
|
'';
|
||||||
#];
|
};
|
||||||
|
windowManager.bspwm.enable = true;
|
||||||
# Font stuff
|
#windowManager.bspwm.configFile = "/home/anish/.bspwm/bspwmrc";
|
||||||
#fonts = {
|
windowManager.bspwm.sxhkd.configFile = "/home/anish/.config/sxhkdrc";
|
||||||
# fonts = with pkgs; [
|
|
||||||
# fire-code
|
|
||||||
# hermit
|
|
||||||
# hack
|
|
||||||
# fire-code-symbols
|
|
||||||
# siji
|
|
||||||
# font-awesome-ttf
|
|
||||||
# ];
|
|
||||||
# fontconfig.defaultFonts = {
|
|
||||||
# sansSerif = ["Hermit"];
|
|
||||||
# monospace = ["Hermit"];
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
# Move required config files around
|
|
||||||
home.file = {
|
|
||||||
"bspwm/rc.d/polybar".source = ./run.sh;
|
|
||||||
"bspwm/bspwmrc".source = ./bspwmrc;
|
|
||||||
"sxhkdrc".source = ./sxhkdrc;
|
|
||||||
"rofi/theme" = {
|
|
||||||
source = ./rofi;
|
|
||||||
recursive = true;
|
|
||||||
};
|
};
|
||||||
"polybar" = {
|
|
||||||
source = ./polybar;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
"dunst/dunstrc".source = ./dunstrc;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Login screen
|
home-manager.users.anish = {
|
||||||
# not a home-manager variable, just nixOS one
|
# Add gtk theme for Dracular and Paper
|
||||||
#services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
|
# Set wallpaper
|
||||||
# text-color = "#ff79c6"
|
|
||||||
# password-background-color = "#1E2029"
|
|
||||||
# window-color = "#181a23"
|
|
||||||
# border-color = "#181a23"
|
|
||||||
# '';
|
|
||||||
|
|
||||||
# Compositor
|
# Install themes
|
||||||
services.picom = {
|
home.packages = with pkgs; [
|
||||||
fade = true;
|
dracula-theme
|
||||||
fadeDelta = 1;
|
paper-icon-theme
|
||||||
fadeSteps = [ 0.01 0.012 ];
|
];
|
||||||
shadow = true;
|
|
||||||
shadowOffsets = [ (-10) (-10) ];
|
|
||||||
shadowOpacity = 0.22;
|
|
||||||
# activeOpacity = "1.00";
|
|
||||||
# inactiveOpacity = "0.92";
|
|
||||||
extraOptions = ''
|
|
||||||
shadow-radius = 12;
|
|
||||||
# blur-background = true;
|
|
||||||
# blur-background-frame = true;
|
|
||||||
# blur-background-fixed = true;
|
|
||||||
blur-kern = "7x7box";
|
|
||||||
blur-strength = 320;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.autorandr.enable = true;
|
# Font stuff
|
||||||
services.udiskie.automount = true;
|
#fonts = {
|
||||||
|
# fonts = with pkgs; [
|
||||||
|
# fire-code
|
||||||
|
# hermit
|
||||||
|
# hack
|
||||||
|
# fire-code-symbols
|
||||||
|
# siji
|
||||||
|
# font-awesome-ttf
|
||||||
|
# ];
|
||||||
|
# fontconfig.defaultFonts = {
|
||||||
|
# sansSerif = ["Hermit"];
|
||||||
|
# monospace = ["Hermit"];
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
|
||||||
|
# Move required config files around
|
||||||
|
home.file = {
|
||||||
|
".config/bspwm/rc.d/polybar".source = ./run.sh;
|
||||||
|
".config/bspwm/bspwmrc".source = ./bspwmrc;
|
||||||
|
".config/sxhkdrc".source = ./sxhkdrc;
|
||||||
|
".config/rofi/theme" = {
|
||||||
|
source = ./rofi;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
".config/polybar" = {
|
||||||
|
source = ./polybar;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
".config/dunst/dunstrc".source = ./dunstrc;
|
||||||
|
".config/kitty/kitty.conf".source = ./kitty.conf;
|
||||||
|
".config/kitty/ayu.conf".source = ./ayu-kitty.conf;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# Compositor
|
||||||
|
services.picom = {
|
||||||
|
fade = true;
|
||||||
|
fadeDelta = 1;
|
||||||
|
fadeSteps = [ 0.01 0.012 ];
|
||||||
|
shadow = true;
|
||||||
|
shadowOffsets = [ (-10) (-10) ];
|
||||||
|
shadowOpacity = 0.22;
|
||||||
|
# activeOpacity = "1.00";
|
||||||
|
# inactiveOpacity = "0.92";
|
||||||
|
extraOptions = ''
|
||||||
|
shadow-radius = 12;
|
||||||
|
# blur-background = true;
|
||||||
|
# blur-background-frame = true;
|
||||||
|
# blur-background-fixed = true;
|
||||||
|
blur-kern = "7x7box";
|
||||||
|
blur-strength = 320;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.autorandr.enable = true;
|
||||||
|
services.udiskie.automount = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
1
users/profiles/desktop/kitty.conf
Normal file
1
users/profiles/desktop/kitty.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
include ayu.conf
|
|
@ -32,16 +32,13 @@ super + e
|
||||||
emacsclient --eval "(emacs-everywhere)"
|
emacsclient --eval "(emacs-everywhere)"
|
||||||
|
|
||||||
super + space
|
super + space
|
||||||
$DOTFILES_BIN/rofi/appmenu
|
rofi -show drun -modi drun,run -show-icons -theme theme/appmenu.rasi
|
||||||
|
|
||||||
super + Tab
|
super + Tab
|
||||||
$DOTFILES_BIN/rofi/windowmenu
|
rofi -show window -show-icons -theme theme/windowmenu.rasi
|
||||||
|
|
||||||
super + p
|
super + p
|
||||||
$DOTFILES_BIN/rofi/bwmenu
|
$DOTFILES_BIN/rofi/passmenu
|
||||||
|
|
||||||
super + shift + p
|
|
||||||
$DOTFILES_BIN/rofi/bwmenu -r
|
|
||||||
|
|
||||||
super + slash
|
super + slash
|
||||||
$DOTFILES_BIN/rofi/filemenu -x
|
$DOTFILES_BIN/rofi/filemenu -x
|
||||||
|
|
50
users/profiles/desktop/xdg.nix
Normal file
50
users/profiles/desktop/xdg.nix
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# xdg.nix
|
||||||
|
#
|
||||||
|
# Set up and enforce XDG compliance. Other modules will take care of their own,
|
||||||
|
# but this takes care of the general cases.
|
||||||
|
|
||||||
|
{ config, home-manager, ... }:
|
||||||
|
{
|
||||||
|
### A tidy $HOME is a tidy mind
|
||||||
|
home-manager.users.anish.xdg.enable = true;
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
sessionVariables = {
|
||||||
|
# These are the defaults, and xdg.enable does set them, but due to load
|
||||||
|
# order, they're not set before environment.variables are set, which could
|
||||||
|
# cause race conditions.
|
||||||
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
|
XDG_CONFIG_HOME = "$HOME/.config";
|
||||||
|
XDG_DATA_HOME = "$HOME/.local/share";
|
||||||
|
XDG_BIN_HOME = "$HOME/.local/bin";
|
||||||
|
};
|
||||||
|
variables = {
|
||||||
|
# Conform more programs to XDG conventions. The rest are handled by their
|
||||||
|
# respective modules.
|
||||||
|
__GL_SHADER_DISK_CACHE_PATH = "$XDG_CACHE_HOME/nv";
|
||||||
|
ASPELL_CONF = ''
|
||||||
|
per-conf $XDG_CONFIG_HOME/aspell/aspell.conf;
|
||||||
|
personal $XDG_CONFIG_HOME/aspell/en_US.pws;
|
||||||
|
repl $XDG_CONFIG_HOME/aspell/en.prepl;
|
||||||
|
'';
|
||||||
|
#CUDA_CACHE_PATH = "$XDG_CACHE_HOME/nv";
|
||||||
|
HISTFILE = "$XDG_DATA_HOME/bash/history";
|
||||||
|
INPUTRC = "$XDG_CONFIG_HOME/readline/inputrc";
|
||||||
|
LESSHISTFILE = "$XDG_CACHE_HOME/lesshst";
|
||||||
|
WGETRC = "$XDG_CONFIG_HOME/wgetrc";
|
||||||
|
|
||||||
|
# Tools I don't use
|
||||||
|
# SUBVERSION_HOME = "$XDG_CONFIG_HOME/subversion";
|
||||||
|
# BZRPATH = "$XDG_CONFIG_HOME/bazaar";
|
||||||
|
# BZR_PLUGIN_PATH = "$XDG_DATA_HOME/bazaar";
|
||||||
|
# BZR_HOME = "$XDG_CACHE_HOME/bazaar";
|
||||||
|
# ICEAUTHORITY = "$XDG_CACHE_HOME/ICEauthority";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Move ~/.Xauthority out of $HOME (setting XAUTHORITY early isn't enough)
|
||||||
|
#extraInit = ''
|
||||||
|
# export XAUTHORITY=/tmp/Xauthority
|
||||||
|
# [ -e ~/.Xauthority ] && mv -f ~/.Xauthority "$XAUTHORITY"
|
||||||
|
#'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,111 +1,115 @@
|
||||||
{pkgs, ... }:
|
{pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.browserpass.enable = true;
|
home-manager.users.anish = {
|
||||||
programs.browserpass.browsers = [ "firefox" ];
|
programs.browserpass.enable = true;
|
||||||
#env.XDG_DEXSTOP_DIR = "$HOME/";
|
programs.browserpass.browsers = [ "firefox" ];
|
||||||
programs.firefox.profiles.anish.userChrome = (builtins.readFile ./userChrome.css);
|
#env.XDG_DEXSTOP_DIR = "$HOME/";
|
||||||
programs.firefox.profiles.anish.settings = {
|
programs.firefox.profiles.anish.userChrome = (builtins.readFile ./userChrome.css);
|
||||||
"devtools.theme" = "dark";
|
programs.firefox.profiles.anish.settings = {
|
||||||
# Enable userContent.css and userChrome.css for our theme modules
|
"devtools.theme" = "dark";
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
# Enable userContent.css and userChrome.css for our theme modules
|
||||||
# Stop creating ~/Downloads!
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
"browser.download.dir" = "/home/anish/downloads"; # TODO Don't hardcode this!
|
# Stop creating ~/Downloads!
|
||||||
# Don't use the built-in password manager; a nixos user is more likely
|
"browser.download.dir" = "/home/anish/downloads"; # TODO Don't hardcode this!
|
||||||
# using an external one (you are using one, right?).
|
# Don't use the built-in password manager; a nixos user is more likely
|
||||||
#"signon.rememberSignons" = false;
|
# using an external one (you are using one, right?).
|
||||||
# Do not check if Firefox is the default browser
|
#"signon.rememberSignons" = false;
|
||||||
"browser.shell.checkDefaultBrowser" = false;
|
# Do not check if Firefox is the default browser
|
||||||
# Disable the "new tab page" feature and show a blank tab instead
|
"browser.shell.checkDefaultBrowser" = false;
|
||||||
# https://wiki.mozilla.org/Privacy/Reviews/New_Tab
|
# Disable the "new tab page" feature and show a blank tab instead
|
||||||
# https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites#w_how-do-i-turn-the-new-tab-page-off
|
# https://wiki.mozilla.org/Privacy/Reviews/New_Tab
|
||||||
"browser.newtabpage.enabled" = false;
|
# https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites#w_how-do-i-turn-the-new-tab-page-off
|
||||||
"browser.newtab.url" = "about:blank";
|
"browser.newtabpage.enabled" = false;
|
||||||
# Disable Activity Stream
|
"browser.newtab.url" = "about:blank";
|
||||||
# https://wiki.mozilla.org/Firefox/Activity_Stream
|
# Disable Activity Stream
|
||||||
"browser.newtabpage.activity-stream.enabled" = false;
|
# https://wiki.mozilla.org/Firefox/Activity_Stream
|
||||||
# Disable new tab tile ads & preload
|
"browser.newtabpage.activity-stream.enabled" = false;
|
||||||
# http://www.thewindowsclub.com/disable-remove-ad-tiles-from-firefox
|
# Disable new tab tile ads & preload
|
||||||
# http://forums.mozillazine.org/viewtopic.php?p=13876331#p13876331
|
# http://www.thewindowsclub.com/disable-remove-ad-tiles-from-firefox
|
||||||
# https://wiki.mozilla.org/Tiles/Technical_Documentation#Ping
|
# http://forums.mozillazine.org/viewtopic.php?p=13876331#p13876331
|
||||||
# https://gecko.readthedocs.org/en/latest/browser/browser/DirectoryLinksProvider.html#browser-newtabpage-directory-source
|
# https://wiki.mozilla.org/Tiles/Technical_Documentation#Ping
|
||||||
# https://gecko.readthedocs.org/en/latest/browser/browser/DirectoryLinksProvider.html#browser-newtabpage-directory-ping
|
# https://gecko.readthedocs.org/en/latest/browser/browser/DirectoryLinksProvider.html#browser-newtabpage-directory-source
|
||||||
"browser.newtabpage.enhanced" = false;
|
# https://gecko.readthedocs.org/en/latest/browser/browser/DirectoryLinksProvider.html#browser-newtabpage-directory-ping
|
||||||
"browser.newtab.preload" = false;
|
"browser.newtabpage.enhanced" = false;
|
||||||
"browser.newtabpage.directory.ping" = "";
|
"browser.newtab.preload" = false;
|
||||||
"browser.newtabpage.directory.source" = "data:text/plain,{}";
|
"browser.newtabpage.directory.ping" = "";
|
||||||
# Disable some not so useful functionality.
|
"browser.newtabpage.directory.source" = "data:text/plain,{}";
|
||||||
"media.videocontrols.picture-in-picture.video-toggle.enabled" = false;
|
# Disable some not so useful functionality.
|
||||||
"extensions.htmlaboutaddons.recommendations.enabled" = false;
|
"media.videocontrols.picture-in-picture.video-toggle.enabled" = false;
|
||||||
"extensions.htmlaboutaddons.discover.enabled" = false;
|
"extensions.htmlaboutaddons.recommendations.enabled" = false;
|
||||||
"extensions.pocket.enabled" = false;
|
"extensions.htmlaboutaddons.discover.enabled" = false;
|
||||||
"app.normandy.enabled" = false;
|
"extensions.pocket.enabled" = false;
|
||||||
"app.normandy.api_url" = "";
|
"app.normandy.enabled" = false;
|
||||||
"extensions.shield-recipe-client.enabled" = false;
|
"app.normandy.api_url" = "";
|
||||||
"app.shield.optoutstudies.enabled" = false;
|
"extensions.shield-recipe-client.enabled" = false;
|
||||||
# Disable battery API
|
"app.shield.optoutstudies.enabled" = false;
|
||||||
# https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager
|
# Disable battery API
|
||||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1313580
|
# https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager
|
||||||
"dom.battery.enabled" = false;
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1313580
|
||||||
# Disable "beacon" asynchronous HTTP transfers (used for analytics)
|
"dom.battery.enabled" = false;
|
||||||
# https://developer.mozilla.org/en-US/docs/Web/API/navigator.sendBeacon
|
# Disable "beacon" asynchronous HTTP transfers (used for analytics)
|
||||||
"beacon.enabled" = false;
|
# https://developer.mozilla.org/en-US/docs/Web/API/navigator.sendBeacon
|
||||||
# Disable pinging URIs specified in HTML <a> ping= attributes
|
"beacon.enabled" = false;
|
||||||
# http://kb.mozillazine.org/Browser.send_pings
|
# Disable pinging URIs specified in HTML <a> ping= attributes
|
||||||
"browser.send_pings" = false;
|
# http://kb.mozillazine.org/Browser.send_pings
|
||||||
# Disable gamepad API to prevent USB device enumeration
|
"browser.send_pings" = false;
|
||||||
# https://www.w3.org/TR/gamepad/
|
# Disable gamepad API to prevent USB device enumeration
|
||||||
# https://trac.torproject.org/projects/tor/ticket/13023
|
# https://www.w3.org/TR/gamepad/
|
||||||
"dom.gamepad.enabled" = false;
|
# https://trac.torproject.org/projects/tor/ticket/13023
|
||||||
# Don't try to guess domain names when entering an invalid domain name in URL bar
|
"dom.gamepad.enabled" = false;
|
||||||
# http://www-archive.mozilla.org/docs/end-user/domain-guessing.html
|
# Don't try to guess domain names when entering an invalid domain name in URL bar
|
||||||
"browser.fixup.alternate.enabled" = false;
|
# http://www-archive.mozilla.org/docs/end-user/domain-guessing.html
|
||||||
# Disable telemetry
|
"browser.fixup.alternate.enabled" = false;
|
||||||
# https://wiki.mozilla.org/Platform/Features/Telemetry
|
# Disable telemetry
|
||||||
# https://wiki.mozilla.org/Privacy/Reviews/Telemetry
|
# https://wiki.mozilla.org/Platform/Features/Telemetry
|
||||||
# https://wiki.mozilla.org/Telemetry
|
# https://wiki.mozilla.org/Privacy/Reviews/Telemetry
|
||||||
# https://www.mozilla.org/en-US/legal/privacy/firefox.html#telemetry
|
# https://wiki.mozilla.org/Telemetry
|
||||||
# https://support.mozilla.org/t5/Firefox-crashes/Mozilla-Crash-Reporter/ta-p/1715
|
# https://www.mozilla.org/en-US/legal/privacy/firefox.html#telemetry
|
||||||
# https://wiki.mozilla.org/Security/Reviews/Firefox6/ReviewNotes/telemetry
|
# https://support.mozilla.org/t5/Firefox-crashes/Mozilla-Crash-Reporter/ta-p/1715
|
||||||
# https://gecko.readthedocs.io/en/latest/browser/experiments/experiments/manifest.html
|
# https://wiki.mozilla.org/Security/Reviews/Firefox6/ReviewNotes/telemetry
|
||||||
# https://wiki.mozilla.org/Telemetry/Experiments
|
# https://gecko.readthedocs.io/en/latest/browser/experiments/experiments/manifest.html
|
||||||
# https://support.mozilla.org/en-US/questions/1197144
|
# https://wiki.mozilla.org/Telemetry/Experiments
|
||||||
# https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/internals/preferences.html#id1
|
# https://support.mozilla.org/en-US/questions/1197144
|
||||||
"toolkit.telemetry.enabled" = false;
|
# https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/internals/preferences.html#id1
|
||||||
"toolkit.telemetry.unified" = false;
|
"toolkit.telemetry.enabled" = false;
|
||||||
"toolkit.telemetry.archive.enabled" = false;
|
"toolkit.telemetry.unified" = false;
|
||||||
"experiments.supported" = false;
|
"toolkit.telemetry.archive.enabled" = false;
|
||||||
"experiments.enabled" = false;
|
"experiments.supported" = false;
|
||||||
"experiments.manifest.uri" = "";
|
"experiments.enabled" = false;
|
||||||
# Disable health reports (basically more telemetry)
|
"experiments.manifest.uri" = "";
|
||||||
# https://support.mozilla.org/en-US/kb/firefox-health-report-understand-your-browser-perf
|
# Disable health reports (basically more telemetry)
|
||||||
# https://gecko.readthedocs.org/en/latest/toolkit/components/telemetry/telemetry/preferences.html
|
# https://support.mozilla.org/en-US/kb/firefox-health-report-understand-your-browser-perf
|
||||||
"datareporting.healthreport.uploadEnabled" = false;
|
# https://gecko.readthedocs.org/en/latest/toolkit/components/telemetry/telemetry/preferences.html
|
||||||
"datareporting.healthreport.service.enabled" = false;
|
"datareporting.healthreport.uploadEnabled" = false;
|
||||||
"datareporting.policy.dataSubmissionEnabled" = false;
|
"datareporting.healthreport.service.enabled" = false;
|
||||||
};
|
"datareporting.policy.dataSubmissionEnabled" = false;
|
||||||
# Override?
|
};
|
||||||
#packages = with pkgs; [
|
|
||||||
# firefox-bin
|
# Override?
|
||||||
# (makeDesktopItem {
|
home.packages = with pkgs; [
|
||||||
# name = "firefox-private";
|
firefox-bin
|
||||||
# desktopName = "Firefox (Private)";
|
(makeDesktopItem {
|
||||||
# genericName = "Open a private Firefox window";
|
name = "firefox-private";
|
||||||
# icon = "firefox";
|
desktopName = "Firefox (Private)";
|
||||||
# exec = "${firefox-bin}/bin/firefox --private-window";
|
genericName = "Open a private Firefox window";
|
||||||
# categories = "Network";
|
icon = "firefox";
|
||||||
# })
|
exec = "${firefox-bin}/bin/firefox --private-window";
|
||||||
# ];
|
categories = "Network";
|
||||||
home.file = let cfgPath = ".mozilla/firefox"; in {
|
})
|
||||||
"${cfgPath}/profiles.ini".text = ''
|
];
|
||||||
[Profile0]
|
|
||||||
Name=default
|
home.file = let cfgPath = ".mozilla/firefox"; in {
|
||||||
IsRelative=1
|
"${cfgPath}/profiles.ini".text = ''
|
||||||
Path=anish.default
|
[Profile0]
|
||||||
Default=1
|
Name=default
|
||||||
[General]
|
IsRelative=1
|
||||||
StartWithLastProfile=1
|
Path=anish.default
|
||||||
Version=2
|
Default=1
|
||||||
'';
|
[General]
|
||||||
|
StartWithLastProfile=1
|
||||||
|
Version=2
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue