Compare commits
4 Commits
fcaf049c1f
...
f61980caef
Author | SHA1 | Date |
---|---|---|
Alexandre LUCAZEAU | f61980caef | |
Alexandre LUCAZEAU | a681c1d4de | |
Alexandre LUCAZEAU | 634c91eb3e | |
Alexandre LUCAZEAU | 3fd2175042 |
|
@ -12,6 +12,7 @@
|
||||||
./services.nix
|
./services.nix
|
||||||
./scanner.nix
|
./scanner.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
../modules/prometheus-node.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
@ -133,9 +134,8 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/alexandre";
|
home = "/home/alexandre";
|
||||||
description = "alexandre";
|
description = "alexandre";
|
||||||
extraGroups = [ "wheel" "networkmanager" "docker" "libvirtd" "vboxusers" "scanner" "lp" ];
|
extraGroups = [ "wheel" "networkmanager" "docker" "libvirtd" "vboxusers" "scanner" "lp" "plocate" ];
|
||||||
hashedPassword = "$6$7m77oPQxa$W9YnRLo1X2eqztBHwpoH8diHGkBno5O39AMyL9Qm8y8I6uW63H2Nwx4p239OG5zhOxA8J1lZvHTQ3hKPSP9mT/";
|
hashedPassword = "$6$7m77oPQxa$W9YnRLo1X2eqztBHwpoH8diHGkBno5O39AMyL9Qm8y8I6uW63H2Nwx4p239OG5zhOxA8J1lZvHTQ3hKPSP9mT/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,5 +22,6 @@
|
||||||
font-manager
|
font-manager
|
||||||
utf8proc
|
utf8proc
|
||||||
pam_u2f
|
pam_u2f
|
||||||
|
zlib
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,31 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
ntp.enable = true;
|
ntp.enable = true;
|
||||||
tlp.enable = true;
|
tlp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
CPU_SCALING_GOVERNOR_ON_BAT="powersave";
|
||||||
|
CPU_SCALING_GOVERNOR_ON_AC="powersave";
|
||||||
|
# The following prevents the battery from charging fully to
|
||||||
|
# preserve lifetime. Run `tlp fullcharge` to temporarily force
|
||||||
|
# full charge.
|
||||||
|
# https://linrunner.de/tlp/faq/battery.html#how-to-choose-good-battery-charge-thresholds
|
||||||
|
START_CHARGE_THRESH_BAT0=40;
|
||||||
|
STOP_CHARGE_THRESH_BAT0=50;
|
||||||
|
|
||||||
|
# 100 being the maximum, limit the speed of my CPU to reduce
|
||||||
|
# heat and increase battery usage:
|
||||||
|
CPU_MAX_PERF_ON_AC=75;
|
||||||
|
CPU_MAX_PERF_ON_BAT=60;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# ADD group mlocate to your user
|
||||||
|
locate = {
|
||||||
|
enable = true;
|
||||||
|
locate = pkgs.plocate;
|
||||||
|
interval = "hourly";
|
||||||
|
localuser = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
xserver = {
|
xserver = {
|
||||||
|
@ -44,7 +68,7 @@
|
||||||
};
|
};
|
||||||
xautolock = {
|
xautolock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
time = 1;
|
time = 10;
|
||||||
locker = "${pkgs.i3lock}/bin/i3lock -i /home/alexandre/images/coffee_time.png";
|
locker = "${pkgs.i3lock}/bin/i3lock -i /home/alexandre/images/coffee_time.png";
|
||||||
#notifier = "${pkgs.libnotify}/bin/notify-send 'Locking in 10 seconds'";
|
#notifier = "${pkgs.libnotify}/bin/notify-send 'Locking in 10 seconds'";
|
||||||
};
|
};
|
||||||
|
@ -64,14 +88,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
|
|
||||||
#packageOverrides = pkgs: {
|
|
||||||
# polybar = pkgs.polybar.override {
|
|
||||||
# i3Support = true;
|
|
||||||
# pulseSupport = true;
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ bar {
|
||||||
bindsym $mod+$ALT+l exec i3lock -ti ~/images/coffee_time.png
|
bindsym $mod+$ALT+l exec i3lock -ti ~/images/coffee_time.png
|
||||||
|
|
||||||
# blocage automatique de l'ecran en cas d'inactivité
|
# blocage automatique de l'ecran en cas d'inactivité
|
||||||
exec xautolock -detectsleep -time 120 -corners -locker 'i3lock -ti ~/images/coffee_time.png'
|
exec xautolock -detectsleep -time 1200 -corners -locker 'i3lock -ti ~/images/coffee_time.png'
|
||||||
|
|
||||||
# Capture d'ecran
|
# Capture d'ecran
|
||||||
bindsym Print exec scrot -u '%Y-%m-%d-%T_$wx$h_scrot.png' -e 'mv $f ~/Screenshots/'
|
bindsym Print exec scrot -u '%Y-%m-%d-%T_$wx$h_scrot.png' -e 'mv $f ~/Screenshots/'
|
||||||
|
@ -138,16 +138,16 @@ bindsym Print exec scrot -u '%Y-%m-%d-%T_$wx$h_scrot.png' -e 'mv $f ~/Screenshot
|
||||||
bindsym $mod+Return exec "LIBGL_ALWAYS_SOFTWARE=1 alacritty"
|
bindsym $mod+Return exec "LIBGL_ALWAYS_SOFTWARE=1 alacritty"
|
||||||
bindsym $mod+m exec "i3-sensible-terminal -e ncmpcpp"
|
bindsym $mod+m exec "i3-sensible-terminal -e ncmpcpp"
|
||||||
|
|
||||||
# Assigne les applications aux workspaces
|
|
||||||
assign [class="firefox"] $ws3
|
|
||||||
assign [class="emacs"] $ws2
|
|
||||||
|
|
||||||
# programmes au démarrage
|
# programmes au démarrage
|
||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id nm-applet
|
||||||
exec --no-startup-id nextcloud
|
exec --no-startup-id nextcloud
|
||||||
exec --no-startup-id blueman-applet
|
exec --no-startup-id blueman-applet
|
||||||
exec --no-startup-id i3-msg 'workspace $ws9; exec keepassxc;'
|
exec --no-startup-id i3-msg 'workspace $ws9; exec keepassxc;'
|
||||||
exec --no-startup-id i3-msg 'workspace $ws5; exec emacs;'
|
#exec --no-startup-id i3-msg 'workspace $ws5; exec emacs;'
|
||||||
exec --no-startup-id i3-msg 'workspace $ws1; exec alacritty;'
|
exec --no-startup-id i3-msg 'workspace $ws1; exec alacritty;'
|
||||||
|
exec --no-startup-id i3-msg 'workspace $ws1; exec ferdi;'
|
||||||
exec --no-startup-id i3-msg 'workspace $ws2; exec thunderbird;'
|
exec --no-startup-id i3-msg 'workspace $ws2; exec thunderbird;'
|
||||||
exec --no-startup-id i3-msg 'workspace $ws3; exec firefox;'
|
exec --no-startup-id i3-msg 'workspace $ws3; exec firefox;'
|
||||||
|
|
||||||
|
exec --no-startup-id xset s off
|
||||||
|
exec --no-startup-id xset -dpms
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
#
|
#
|
||||||
# If this option is set to mouse or keyboard, the monitor option
|
# If this option is set to mouse or keyboard, the monitor option
|
||||||
# will be ignored.
|
# will be ignored.
|
||||||
follow = "none";
|
follow = "mouse";
|
||||||
|
|
||||||
# Should a notification popped up from history be sticky or timeout
|
# Should a notification popped up from history be sticky or timeout
|
||||||
# as if it would normally do.
|
# as if it would normally do.
|
||||||
|
|
|
@ -9,8 +9,9 @@
|
||||||
./emacs.nix
|
./emacs.nix
|
||||||
./mails.nix
|
./mails.nix
|
||||||
./dunst.nix
|
./dunst.nix
|
||||||
./redshift.nix
|
# ./redshift.nix
|
||||||
../../../modules/neovim.nix
|
# ../../../modules/neovim.nix
|
||||||
|
../../../modules/rust.nix
|
||||||
];
|
];
|
||||||
home.keyboard = {
|
home.keyboard = {
|
||||||
layout = "fr";
|
layout = "fr";
|
||||||
|
@ -21,3 +22,4 @@
|
||||||
};
|
};
|
||||||
xsession.numlock.enable = true;
|
xsession.numlock.enable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,5 +45,8 @@
|
||||||
exa
|
exa
|
||||||
bat
|
bat
|
||||||
vimPlugins.vim-markdown-composer
|
vimPlugins.vim-markdown-composer
|
||||||
|
neovim
|
||||||
|
python3
|
||||||
|
ferdi
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
day = 5500;
|
day = 5500;
|
||||||
night = 4500;
|
night = 4500;
|
||||||
};
|
};
|
||||||
brightness = {
|
settings.redshift.brightness = {
|
||||||
day = "1.0";
|
day = "1.0";
|
||||||
night = "0.9";
|
night = "0.9";
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
[alias]
|
||||||
|
aa = add --all
|
||||||
|
b = branch -v
|
||||||
|
bd = branch -d
|
||||||
|
bD = branch -D
|
||||||
|
br = branch
|
||||||
|
ci = commit
|
||||||
|
cim = commit -m
|
||||||
|
cima = commit -am
|
||||||
|
clr = rm -r --cached
|
||||||
|
co = checkout
|
||||||
|
cp = cherry-pick -x
|
||||||
|
d = diff -w
|
||||||
|
dc = diff --cached
|
||||||
|
nb = checkout -b
|
||||||
|
oups = commit --amend --no-edit
|
||||||
|
r = remote -v
|
||||||
|
rh = reset --hard
|
||||||
|
st = status -sb
|
||||||
|
t = tag -l
|
||||||
|
unstage = reset HEAD
|
||||||
|
uncommit = reset --soft HEAD^
|
||||||
|
pushfl = push --force-with-lease
|
||||||
|
lg = lg1
|
||||||
|
lg1 = lg1-specific --all
|
||||||
|
lg2 = lg2-specific --all
|
||||||
|
lg3 = lg3-specific --all
|
||||||
|
|
||||||
|
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
|
||||||
|
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
|
||||||
|
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
|
Loading…
Reference in New Issue