Improve Ubuntu config

This commit is contained in:
Paul-Henri Froidmont 2020-10-11 20:33:37 +02:00
parent 8b87b06972
commit b43c58c514
284 changed files with 388 additions and 220 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
.idea .idea
*.iml *.iml
result

View file

@ -1,198 +0,0 @@
{ config, lib, pkgs, ... }:
{
xsession = {
enable = true;
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = ./files/xmonad.hs;
};
initExtra = ''
keepassxc &
'';
numlock.enable = true;
};
nixpkgs.config.packageOverrides = pkgs: {
ncmpcpp = pkgs.ncmpcpp.override {visualizerSupport = true;};
};
home.sessionVariables = {
EDITOR = "vim";
QT_AUTO_SCREEN_SCALE_FACTOR = "0";
};
home.packages = with pkgs; [
haskellPackages.xmobar
ncmpcpp
mpc_cli
pulsemixer
feh
xorg.xbacklight
xorg.xinit
xorg.xwininfo
xorg.xkill
scrot
i3lock
numix-gtk-theme
# Ranger preview utils
w3m
xclip
odt2txt
];
home.keyboard = {
layout = "fr";
options = ["caps:escape"];
};
home.file.".wallpaper.png".source = ./files/wallpaper.png;
home.file.".xmonad/xmobarrc".source = ./files/xmobarrc;
home.file.".config/ncmpcpp" = {
source = ./files/ncmpcpp;
recursive = true;
};
home.file.".xmonad/scripts" = {
source = ./files/scripts;
recursive = true;
};
home.file.".themes/oomox-gruvmox-dark-medium-default" = {
source = ./files/oomox-gruvmox-dark-medium-default;
recursive = true;
};
gtk = {
enable = true;
theme.name = "oomox-gruvmox-dark-medium-default";
iconTheme.name = "oomox-gruvmox-dark-medium-default";
};
qt = {
enable = true;
platformTheme = "gtk";
};
services.mpd = {
enable = true;
musicDirectory = "${config.home.homeDirectory}/Nextcloud/Media/Music";
extraConfig = ''
max_output_buffer_size "16384"
auto_update "yes"
audio_output {
type "alsa"
name "alsa"
}
audio_output {
type "fifo"
name "toggle_visualizer"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
'';
};
programs.rofi = {
enable = true;
theme = "gruvbox-dark";
terminal = "urxvt";
};
programs.urxvt = {
enable = true;
package = pkgs.rxvt_unicode-with-plugins;
fonts = ["xft:monospace:size=12:antialias=true"];
scroll = {
bar.enable = false;
lines = 65535;
};
keybindings = {
"Shift-Control-C" = "eval:selection_to_clipboard";
"Shift-Control-V" = "eval:paste_clipboard";
};
extraConfig = {
"perl-ext-common" = "default,clipboard,matcher,resize-font";
"background" = "rgba:28ff/28ff/28ff/cf00";
"foreground" = "#ebdbb2";
"color0" = "#282828";
"color8" = "#928374";
"color1" = "#cc241d";
"color9" = "#fb4934";
"color2" = "#98971a";
"color10" = "#b8bb26";
"color3" = "#d79921";
"color11" = "#fabd2f";
"color4" = "#458588";
"color12" = "#83a598";
"color5" = "#b16286";
"color13" = "#d3869b";
"color6" = "#689d6a";
"color14" = "#8ec07c";
"color7" = "#a89984";
"color15" = "#ebdbb2";
"termName" = "rxvt-256color";
"letterSpace" = "-1";
"internalBorder" = "10";
"depth" = "32";
"resize-font.smaller" = "C-Down";
"resize-font.bigger" = "C-Up";
};
};
services.picom.enable = true;
services.stalonetray = {
enable = true;
config = {
geometry = "1x1-5+0";
background = "#000000";
transparent = true;
grow_gravity = "E";
icon_gravity = "E";
icon_size = "24";
kludges = "force_icons_size";
};
};
services.unclutter.enable = true;
services.pasystray.enable = true;
services.dunst = {
enable = true;
settings = {
global = {
monitor = 0;
geometry = "350x5-30+50";
transparency = 10;
font = "monospace 14";
idle_threshold = 120;
allow_markup = "yes";
format = "<b>%s</b>\n%b";
show_age_threshold = 300;
word_wrap = "yes";
sticky_history = "yes";
sort = "yes";
};
frame = {
width = 3;
color = "#ebdbb2";
};
shortcuts = {
close = "ctrl+space";
close_all = "ctrl+shift+space";
history = "ctrl+grave";
context = "ctrl+shift+period";
};
urgency_low = {
foreground = "#ebdbb2";
background = "#32302f";
timeout = 10;
};
urgency_normal = {
foreground = "#ebdbb2";
background = "#32302f";
timeout = 10;
};
urgency_critical = {
foreground = "#ebdbb2";
background = "#32302f";
timeout = 10;
};
};
};
services.screen-locker = {
enable = true;
inactiveInterval = 5;
lockCmd = "\${pkgs.i3lock}/bin/i3lock -e -f -c 000000 -i ~/.wallpaper.png";
};
}

View file

@ -6,7 +6,10 @@
R R
tldr tldr
thefuck thefuck
atool
linuxPackages.perf linuxPackages.perf
meslo-lg
nerdfonts
]; ];
programs.neovim = { programs.neovim = {
enable = true; enable = true;
@ -98,7 +101,7 @@
home.file.".config/ranger/plugins" = { home.file.".config/ranger/plugins" = {
source = builtins.fetchGit { source = builtins.fetchGit {
url = "git://github.com/alexanderjeurissen/ranger_devicons.git"; url = "git://github.com/alexanderjeurissen/ranger_devicons.git";
rev = "1fa1d0f29047979b9ffd541eb330756ac4b348ab"; rev = "68ffbffd086b0e9bb98c74705abe891b756b9e11";
}; };
recursive = true; recursive = true;
}; };

57
configs/home/email.nix Normal file
View file

@ -0,0 +1,57 @@
{ config, lib, pkgs, ... }:
let
davMailArhsConf = pkgs.writeText "davmail-arhs.propertries" ''
davmail.server=true
davmail.url=https\://webmail.arhs-developments.com/owa/
davmail.caldavPort=1080
davmail.imapPort=1143
davmail.ldapPort=1389
davmail.popPort=1110
davmail.smtpPort=1025
davmail.disableUpdateCheck=true
'';
davMailIngenicoConf = pkgs.writeText "davmail-ingenico.propertries" ''
davmail.server=true
davmail.mode=O365Modern
davmail.oauth.clientId=8ed87c30-ae92-4443-8528-f6a52ac95362
davmail.oauth.redirectUri=https://login.microsoftonline.com/common/oauth2/nativeclient
davmail.oauth.tenantId=143a5e19-140b-4632-b3ea-e71a15cddb8c
davmail.url=https://outlook.office365.com/EWS/Exchange.asmx
davmail.caldavPort=2080
davmail.imapPort=2143
davmail.ldapPort=2389
davmail.popPort=2110
davmail.smtpPort=2025
davmail.disableUpdateCheck=true
'';
in {
home.packages = with pkgs; [
davmail
];
systemd.user.services = {
davmail-arhs = {
Unit = {
Description = "DavMail ARhS Exchange";
};
Service = {
Type = "simple";
RemainAfterExit = "no";
ExecStart = "${pkgs.davmail}/bin/davmail ${davMailArhsConf}";
};
};
};
systemd.user.services = {
davmail-ingenico = {
Unit = {
Description = "DavMail Ingenico Exchange";
};
Service = {
Type = "simple";
RemainAfterExit = "no";
ExecStart = "${pkgs.davmail}/bin/davmail ${davMailIngenicoConf}";
};
};
};
}

Some files were not shown because too many files have changed in this diff Show more