Compare commits

...

4 Commits

19 changed files with 27 additions and 19 deletions

View File

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

View File

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

View File

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

View File

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