working install, many things broken
This commit is contained in:
parent
6e4f0f3aaf
commit
5371aeaa2a
|
@ -127,10 +127,11 @@
|
|||
users = digga.lib.rakeLeaves ./users;
|
||||
};
|
||||
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
|
||||
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;
|
||||
suites = with profiles; rec {
|
||||
base = [ direnv git ];
|
||||
gui = [ base firefox desktop ];
|
||||
#gui = [ base profiles.firefox profiles.desktop ];
|
||||
};
|
||||
};
|
||||
users = {
|
||||
|
|
|
@ -3,11 +3,16 @@
|
|||
imports = [
|
||||
./configuration.nix
|
||||
profiles.users.anish
|
||||
#profiles.users.profiles.firefox
|
||||
#profiles.users.profiles.desktop
|
||||
] ++ suites.curve;
|
||||
|
||||
home-manager.users.anish = { suites, ... }: {
|
||||
imports = suites.gui;
|
||||
};
|
||||
#home-manager.users.anish = { suites, ... }: {
|
||||
# imports = [
|
||||
# profiles.users.profiles.desktop
|
||||
# profiles.users.profiles.firefox
|
||||
# ];
|
||||
#};
|
||||
|
||||
#bud.enable = true;
|
||||
}
|
||||
|
|
|
@ -2,46 +2,46 @@
|
|||
|
||||
{
|
||||
#imports = [ ./music.nix ]
|
||||
environment.systemPackages = with pkgs; [
|
||||
lightdm
|
||||
dunst
|
||||
libnotify
|
||||
(polybar.override {
|
||||
pulseSupport = true;
|
||||
nlSupport = true;
|
||||
})
|
||||
];
|
||||
|
||||
services = {
|
||||
picom.enable = true;
|
||||
#redshift.enable = true;
|
||||
xserver = {
|
||||
enable = true;
|
||||
displayManager = {
|
||||
defaultSession = "none+bspwm";
|
||||
lightdm.enable = true;
|
||||
#lightdm.greeters.mini.enable = true;
|
||||
#lightdm.greeters.mini.user = "anish"; # TODO hardcoded
|
||||
};
|
||||
windowManager.bspwm.enable = true;
|
||||
windowManager.bspwm.configFile = "/home/anish/.bspwm/bspwmrc";
|
||||
windowManager.bspwm.sxhkd.configFile = "/home/anish/sxhkdrc";
|
||||
#windowManager.default = "bspwm";
|
||||
};
|
||||
};
|
||||
|
||||
#systemd.user.services."dunst" = {
|
||||
# enable = true;
|
||||
# description = "";
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig.Restart = "always";
|
||||
# serviceConfig.RestartSec = 2;
|
||||
# serviceConfig.ExecStart = "${pkgs.dunst}/bin/dunst";
|
||||
#};
|
||||
services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
|
||||
text-color = "#ff79c6"
|
||||
password-background-color = "#1E2029"
|
||||
window-color = "#181a23"
|
||||
border-color = "#181a23"
|
||||
'';
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# lightdm
|
||||
# dunst
|
||||
# libnotify
|
||||
# (polybar.override {
|
||||
# pulseSupport = true;
|
||||
# nlSupport = true;
|
||||
# })
|
||||
# ];
|
||||
#
|
||||
# services = {
|
||||
# picom.enable = true;
|
||||
# #redshift.enable = true;
|
||||
# xserver = {
|
||||
# enable = true;
|
||||
# displayManager = {
|
||||
# defaultSession = "none+bspwm";
|
||||
# lightdm.enable = true;
|
||||
# lightdm.greeters.mini.enable = true;
|
||||
# lightdm.greeters.mini.user = "anish"; # TODO hardcoded
|
||||
# };
|
||||
# windowManager.bspwm.enable = true;
|
||||
# windowManager.bspwm.configFile = "/home/anish/.bspwm/bspwmrc";
|
||||
# windowManager.bspwm.sxhkd.configFile = "/home/anish/sxhkdrc";
|
||||
# #windowManager.default = "bspwm";
|
||||
# };
|
||||
# };
|
||||
#
|
||||
# #systemd.user.services."dunst" = {
|
||||
# # enable = true;
|
||||
# # description = "";
|
||||
# # wantedBy = [ "default.target" ];
|
||||
# # serviceConfig.Restart = "always";
|
||||
# # serviceConfig.RestartSec = 2;
|
||||
# # serviceConfig.ExecStart = "${pkgs.dunst}/bin/dunst";
|
||||
# #};
|
||||
# services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
|
||||
# text-color = "#ff79c6"
|
||||
# password-background-color = "#1E2029"
|
||||
# window-color = "#181a23"
|
||||
# border-color = "#181a23"
|
||||
# '';
|
||||
}
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
extraGroups = [ "wheel" "audio" ];
|
||||
};
|
||||
|
||||
#home-manager.programs.git = {
|
||||
# userName = "Anish Lakhwara";
|
||||
# userEmail = "anish+git@lakhwara.com";
|
||||
# delta.enable = true;
|
||||
#};
|
||||
|
||||
home-manager.users.anish = { suites, ... }: {
|
||||
imports = suites.gui;
|
||||
home-manager.users.anish.programs.git = {
|
||||
userName = "Anish Lakhwara";
|
||||
userEmail = "anish+git@lakhwara.com";
|
||||
delta.enable = true;
|
||||
};
|
||||
|
||||
#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_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
|
||||
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 '*:scratch' state=floating sticky=on center=on border=off rectangle=1000x800+0+0
|
||||
|
||||
#
|
||||
# polybar
|
||||
for file in $XDG_CONFIG_HOME/bspwm/rc.d/*; do
|
||||
source "$file"
|
||||
done
|
||||
|
|
|
@ -1,45 +1,51 @@
|
|||
{pkgs, ...}:
|
||||
|
||||
{
|
||||
# Enable bspwm and sxhkd
|
||||
xsession.windowManager.bspwm = {
|
||||
#imports = [ ./xdg.nix ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
rofi
|
||||
lightdm
|
||||
dunst
|
||||
libnotify
|
||||
(polybar.override {
|
||||
pulseSupport = true;
|
||||
nlSupport = true;
|
||||
})
|
||||
];
|
||||
|
||||
services = {
|
||||
picom.enable = true;
|
||||
#redshift.enable = true;
|
||||
xserver = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
bspc config remove_disabled_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
|
||||
|
||||
# Load polybar
|
||||
for file in $XDG_CONFIG_HOME/bspwm/rc.d/*; do
|
||||
source "$file"
|
||||
done
|
||||
displayManager = {
|
||||
defaultSession = "none+bspwm";
|
||||
lightdm.enable = true;
|
||||
lightdm.greeters.mini.enable = true;
|
||||
lightdm.greeters.mini.user = "anish"; # TODO hardcoded
|
||||
lightdm.greeters.mini.extraConfig = ''
|
||||
text-color = "#ff79c6"
|
||||
password-background-color = "#1E2029"
|
||||
window-color = "#181a23"
|
||||
border-color = "#181a23"
|
||||
'';
|
||||
};
|
||||
services.sxhkd.enable = true;
|
||||
windowManager.bspwm.enable = true;
|
||||
#windowManager.bspwm.configFile = "/home/anish/.bspwm/bspwmrc";
|
||||
windowManager.bspwm.sxhkd.configFile = "/home/anish/.config/sxhkdrc";
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.anish = {
|
||||
# Add gtk theme for Dracular and Paper
|
||||
# Set wallpaper
|
||||
|
||||
# Install themes
|
||||
# More nixOS Config
|
||||
#packages = with pkgs; [
|
||||
# dracula-theme
|
||||
# paper-icon-theme
|
||||
#];
|
||||
home.packages = with pkgs; [
|
||||
dracula-theme
|
||||
paper-icon-theme
|
||||
];
|
||||
|
||||
# Font stuff
|
||||
#fonts = {
|
||||
|
@ -59,28 +65,22 @@
|
|||
|
||||
# Move required config files around
|
||||
home.file = {
|
||||
"bspwm/rc.d/polybar".source = ./run.sh;
|
||||
"bspwm/bspwmrc".source = ./bspwmrc;
|
||||
"sxhkdrc".source = ./sxhkdrc;
|
||||
"rofi/theme" = {
|
||||
".config/bspwm/rc.d/polybar".source = ./run.sh;
|
||||
".config/bspwm/bspwmrc".source = ./bspwmrc;
|
||||
".config/sxhkdrc".source = ./sxhkdrc;
|
||||
".config/rofi/theme" = {
|
||||
source = ./rofi;
|
||||
recursive = true;
|
||||
};
|
||||
"polybar" = {
|
||||
".config/polybar" = {
|
||||
source = ./polybar;
|
||||
recursive = true;
|
||||
};
|
||||
"dunst/dunstrc".source = ./dunstrc;
|
||||
".config/dunst/dunstrc".source = ./dunstrc;
|
||||
".config/kitty/kitty.conf".source = ./kitty.conf;
|
||||
".config/kitty/ayu.conf".source = ./ayu-kitty.conf;
|
||||
};
|
||||
|
||||
# Login screen
|
||||
# not a home-manager variable, just nixOS one
|
||||
#services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
|
||||
# text-color = "#ff79c6"
|
||||
# password-background-color = "#1E2029"
|
||||
# window-color = "#181a23"
|
||||
# border-color = "#181a23"
|
||||
# '';
|
||||
|
||||
# Compositor
|
||||
services.picom = {
|
||||
|
@ -104,4 +104,5 @@
|
|||
|
||||
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)"
|
||||
|
||||
super + space
|
||||
$DOTFILES_BIN/rofi/appmenu
|
||||
rofi -show drun -modi drun,run -show-icons -theme theme/appmenu.rasi
|
||||
|
||||
super + Tab
|
||||
$DOTFILES_BIN/rofi/windowmenu
|
||||
rofi -show window -show-icons -theme theme/windowmenu.rasi
|
||||
|
||||
super + p
|
||||
$DOTFILES_BIN/rofi/bwmenu
|
||||
|
||||
super + shift + p
|
||||
$DOTFILES_BIN/rofi/bwmenu -r
|
||||
$DOTFILES_BIN/rofi/passmenu
|
||||
|
||||
super + slash
|
||||
$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,6 +1,7 @@
|
|||
{pkgs, ... }:
|
||||
|
||||
{
|
||||
home-manager.users.anish = {
|
||||
programs.browserpass.enable = true;
|
||||
programs.browserpass.browsers = [ "firefox" ];
|
||||
#env.XDG_DEXSTOP_DIR = "$HOME/";
|
||||
|
@ -84,18 +85,20 @@
|
|||
"datareporting.healthreport.service.enabled" = false;
|
||||
"datareporting.policy.dataSubmissionEnabled" = false;
|
||||
};
|
||||
|
||||
# Override?
|
||||
#packages = with pkgs; [
|
||||
# firefox-bin
|
||||
# (makeDesktopItem {
|
||||
# name = "firefox-private";
|
||||
# desktopName = "Firefox (Private)";
|
||||
# genericName = "Open a private Firefox window";
|
||||
# icon = "firefox";
|
||||
# exec = "${firefox-bin}/bin/firefox --private-window";
|
||||
# categories = "Network";
|
||||
# })
|
||||
# ];
|
||||
home.packages = with pkgs; [
|
||||
firefox-bin
|
||||
(makeDesktopItem {
|
||||
name = "firefox-private";
|
||||
desktopName = "Firefox (Private)";
|
||||
genericName = "Open a private Firefox window";
|
||||
icon = "firefox";
|
||||
exec = "${firefox-bin}/bin/firefox --private-window";
|
||||
categories = "Network";
|
||||
})
|
||||
];
|
||||
|
||||
home.file = let cfgPath = ".mozilla/firefox"; in {
|
||||
"${cfgPath}/profiles.ini".text = ''
|
||||
[Profile0]
|
||||
|
@ -108,4 +111,5 @@
|
|||
Version=2
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue