Add more services to home-manager

This commit is contained in:
Artemis Tosini 2021-01-10 07:29:08 +00:00
parent 2d922f85ef
commit d32c230ed5
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
6 changed files with 104 additions and 29 deletions

42
home/alacritty.yml Normal file
View file

@ -0,0 +1,42 @@
scrolling:
history: 16384
font:
normal:
family: Fira Code
size: 8
shell:
program: /run/current-system/sw/bin/fish
# Colors (Hyper)
colors:
# Default colors
primary:
background: '0x000000'
foreground: '0xffffff'
cursor:
text: '0xF81CE5'
cursor: '0xffffff'
# Normal colors
normal:
black: '0x000000'
red: '0xfe0100'
green: '0x33ff00'
yellow: '0xfeff00'
blue: '0x0066ff'
magenta: '0xcc00ff'
cyan: '0x00ffff'
white: '0xd0d0d0'
# Bright colors
bright:
black: '0x808080'
red: '0xfe0100'
green: '0x33ff00'
yellow: '0xfeff00'
blue: '0x0066ff'
magenta: '0xcc00ff'
cyan: '0x00ffff'
white: '0xFFFFFF'

6
home/config Normal file
View file

@ -0,0 +1,6 @@
daemonize
ignore-empty-password
image=/home/artemis/.config/swaylock/xp.jpg
indicator-caps-lock
show-failed-attempts
show-keyboard-layout

View file

@ -7,36 +7,22 @@
useGlobalPkgs = true; useGlobalPkgs = true;
}; };
home-manager.users.artemis = { pkgs, ... }: { home-manager.users.artemis = { pkgs, ... }: {
programs.git = { imports = [
enable = true; ./git.nix
package = pkgs.gitAndTools.gitFull; ];
userName = "Artemis Tosini";
userEmail = "me@artem.ist";
signing = {
key = "D2173817C3E4B155EA8FFF49A54531E0D32143ED";
signByDefault = true;
};
ignores = [ "compile_commands.json" ".clangd/" ".idea/" ];
lfs.enable = true;
delta.enable = true;
extraConfig = {
transfer.fsckObjects = true;
advice.detachedHead = false; xdg.enable = true;
format.signOff = true; xdg.configFile = {
init.defaultBranch = "canon"; "alacritty/alacritty.yml".source = ./alacritty.yml;
log.showSignature = true; "mpv/mpv.conf".source = ./mpv.conf;
mailmap.file = "${../private/mailmap}"; "swaylock/config".text = ''
daemonize
credential.helper = "!${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper $@"; ignore-empty-password
sendemail = { indicator-caps-lock
smtpServer = "smtp.fastmail.com"; show-failed-attempts
smtpUser = "me@artem.ist"; show-keyboard-layout
smtpEncryption = "tls"; image=${./xp.jpg}
smtpServerPort = 587; '';
confirm = "auto";
};
};
}; };
}; };
} }

34
home/git.nix Normal file
View file

@ -0,0 +1,34 @@
{ pkgs, ... }:
{
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = "Artemis Tosini";
userEmail = "me@artem.ist";
signing = {
key = "D2173817C3E4B155EA8FFF49A54531E0D32143ED";
signByDefault = true;
};
ignores = [ "compile_commands.json" ".clangd/" ".idea/" ];
lfs.enable = true;
delta.enable = true;
extraConfig = {
transfer.fsckObjects = true;
advice.detachedHead = false;
format.signOff = true;
init.defaultBranch = "canon";
log.showSignature = true;
mailmap.file = "${../private/mailmap}";
credential.helper = "!${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper $@";
sendemail = {
smtpServer = "smtp.fastmail.com";
smtpUser = "me@artem.ist";
smtpEncryption = "tls";
smtpServerPort = 587;
confirm = "auto";
};
};
};
}

7
home/mpv.conf Normal file
View file

@ -0,0 +1,7 @@
gpu-context=wayland
hwdec=vaapi
vo=gpu
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
slang=eng

BIN
home/xp.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 KiB