More home-manager management

This commit is contained in:
Charlotte Van Petegem 2020-09-27 22:14:04 +02:00
parent 10df2301e1
commit f720df9e46
No known key found for this signature in database
GPG key ID: 019E764B7184435A
8 changed files with 61 additions and 50 deletions

View file

@ -33,6 +33,10 @@
"/vendor/bundle"
"**/*.patch"
];
signing = {
key = "charlotte@vanpetegem.me";
signByDefault = true;
};
userEmail = config.custom.git.email;
userName = "Charlotte Van Petegem";
};

View file

@ -2,45 +2,38 @@
{
home-manager.users.charlotte = { pkgs, ... }: {
home.packages = [ pkgs.kitty ];
xdg.configFile."kitty/kitty.conf".text = ''
font_family Fira Code
font_size 9.0
disable_ligatures cursor
background #fbffff
foreground #535c65
selection_background #6d7782
selection_foreground #fbffff
url_color #906c33
cursor #434951
# normal
color0 #fbffff
color1 #ae5865
color2 #4d7f43
color3 #906c33
color4 #2b7ab2
color5 #8f63a2
color6 #008483
color7 #535c65
# bright
color8 #6d7782
color9 #ae5865
color10 #4d7f43
color11 #906c33
color12 #2b7ab2
color13 #8f63a2
color14 #008483
color15 #434951
enable_audio_bell no
visual_bell_duration 0.25
remember_window_size no
initial_window_width 1280
initial_window_width 720
'';
programs.kitty = {
enable = true;
settings = {
font_family = "Fira Code";
font_size = 9;
disable_ligatures = "cursor";
background = "#fbffff";
foreground = "#535c65";
selection_background = "#6d7782";
selection_foreground = "#fbffff";
url_color = "#906c33";
cursor = "#434951";
color0 = "#fbffff";
color1 = "#ae5865";
color2 = "#4d7f43";
color3 = "#906c33";
color4 = "#2b7ab2";
color5 = "#8f63a2";
color6 = "#008483";
color7 = "#535c65";
color8 = "#6d7782";
color9 = "#ae5865";
color10 = "#4d7f43";
color11 = "#906c33";
color12 = "#2b7ab2";
color13 = "#8f63a2";
color14 = "#008483";
color15 = "#434951";
enable_audio_bell = false;
visual_bell_duration = "0.25";
remember_window_size = false;
};
};
};
}

View file

@ -30,6 +30,7 @@ in
];
home-manager.users.charlotte = { pkgs, ... }: {
home.sessionVariables = { EDITOR = "nvim"; };
programs.neovim = {
enable = true;
extraConfig = ''

View file

@ -6,6 +6,10 @@
];
home-manager.users.charlotte = { pkgs, ... }: {
home.packages = [ pkgs.pass ];
programs.password-store = {
enable = true;
settings = { PASSWORD_STORE_DIR = "$HOME/repos/passwords"; };
};
services.password-store-sync.enable = true;
};
}

View file

@ -8,7 +8,12 @@ in
{
services.dbus.packages = with pkgs; [ gnome3.dconf ];
home-manager.users.charlotte = { pkgs, lib, ... }: {
home.packages = [ color-picker launcher screenshot ];
home.packages = [ color-picker screenshot ];
programs.mako = {
enable = true;
font = "Fira Code Normal 9";
layer = "overlay";
};
services.kanshi = {
enable = true;
profiles = {
@ -67,7 +72,6 @@ in
];
startup = [
{ command = "${pkgs.swayidle}/bin/swayidle -w timeout 300 '${pkgs.swaylock}/bin/swaylock -f -c 000000' timeout 150 '${pkgs.sway}/bin/swaymsg \"output * dpms off\"' resume '${pkgs.sway}/bin/swaymsg \"output * dpms on\"' before-sleep '${pkgs.swaylock}/bin/swaylock -f -c 000000'"; }
{ command = "${pkgs.mako}/bin/mako"; }
];
window.commands = [
{ command = "floating enable"; criteria = { app_id = "launcher"; }; }
@ -77,10 +81,12 @@ in
"type:keyboard" = { xkb_layout = "us"; xkb_variant = "altgr-intl"; xkb_numlock = "enabled"; };
"type:touchpad" = { drag = "enabled"; dwt = "enabled"; scroll_method = "two_finger"; tap = "enabled"; };
};
modes = {}; # Unset default "resize" mode
keybindings = lib.mkOptionDefault {
"${modifier}+Shift+q" = "nop Unset default kill";
"${modifier}+r" = "nop Unset default resize mode";
"${modifier}+Shift+c" = "kill";
"${modifier}+Shift+r" = "reload";
"${modifier}+Shift+q" = "noop";
"${modifier}+c" = "exec ${pkgs.swaylock}/bin/swaylock -f -c 000000";
"${modifier}+i" = "inhibit_idle open; border normal; mark --add inhibiting_idle";
"${modifier}+Shift+i" = "inhibit_idle none; border pixel; unmark inhibiting_idle";

View file

@ -6,6 +6,9 @@
{ path = "sync"; type = "data"; }
];
home-manager.users.charlotte = { pkgs, ... }: {
services.syncthing.enable = true;
services.syncthing = {
enable = true;
tray = true;
};
};
}

View file

@ -45,11 +45,7 @@
};
}
];
sessionVariables = {
DEFAULT_USER = "charlotte";
EDITOR = "nvim";
PASSWORD_STORE_DIR = "$HOME/repos/passwords";
};
sessionVariables = { DEFAULT_USER = "charlotte"; };
};
};
}