Compare commits

..

No commits in common. "c705573a0ea1cd98ce9fe1c593a4d321f11d99af" and "2c6a69c74c8e728351679796b25e9ae99d699aef" have entirely different histories.

19 changed files with 19 additions and 27 deletions

View File

@ -19,6 +19,7 @@
# Use the GRUB 2 boot loader.
boot.loader.grub.devices = [ "/dev/sda" ];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.enableCryptodisk = true;
boot.loader.supportsInitrdSecrets = true;
# boot.loader.grub.efiSupport = true;
@ -34,7 +35,7 @@
boot.plymouth.enable = true;
# Clear /tmp during boot
boot.tmp.cleanOnBoot = true;
boot.cleanTmpDir = true;
boot.initrd.kernelModules = [ "i915" ];
boot.kernelParams = [ "i915.enable_fbc=1" ];
# Enable microcode updates for Intel CPU
@ -70,6 +71,8 @@
nixpkgs.config.allowUnfree = true;
networking.firewall.enable = true;
i18n.defaultLocale = "fr_FR.UTF-8";
console = {
font = "Lat2-Terminus16";
@ -178,19 +181,14 @@ fonts = {
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = "no";
services.openssh.permitRootLogin = "no";
# Open ports in the firewall.
networking.firewall = {
enable = true;
allowedTCPPorts = [ 24800 6600 ];
# For kdeconnect
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
# networking.firewall.allowedTCPPorts = [ ... ];
networking.firewall.allowedTCPPorts = [ 24800 6600 ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View File

@ -7,11 +7,10 @@
./starship.nix
#./mails.nix
./mpd.nix
# ./emacs.nix
./emacs.nix
./i3status.nix
./himalaya.nix
../../../modules/tmux.nix
../../../modules/emacs.nix
];
home.stateVersion = "21.11";
home.username = "alexandre";

View File

@ -1,4 +1,3 @@
{ config, pkgs, ... }:{
programs.i3status-rust = {
@ -9,16 +8,18 @@
{
block = "disk_space";
path = "/";
format = "$icon $percentage";
format_alt = " $icon $available / $total ";
info_type = "used";
alias = "/";
info_type = "available";
unit = "GB";
interval = 60;
warning = 20.0;
alert = 10.0;
}
{
block = "memory";
format = " $icon $mem_avail.eng(prefix:M)/$mem_total.eng(prefix:M)($mem_total_used_percents.eng(w:2)) ";
display_type = "memory";
format_mem = "{mem_used_percents}";
format_swap = "{swap_used_percents}";
}
{
block = "cpu";
@ -36,15 +37,10 @@
{
block = "battery";
}
{
block = "kdeconnect";
format = " $icon {$bat_icon $bat_charge |}{$notif_icon |}{$network_icon$network_strength $network_type |}";
bat_good = 101;
}
{
block = "time";
interval = 60;
format = " $icon $timestamp.datetime(f:'%d/%m %R', l:fr_FR) ";
format = "%a %d/%m %R";
}
];
icons = "material-nf";

View File

@ -33,6 +33,5 @@
vlc
guake
graphviz
kdeconnect
];
}