Compare commits
No commits in common. "c705573a0ea1cd98ce9fe1c593a4d321f11d99af" and "2c6a69c74c8e728351679796b25e9ae99d699aef" have entirely different histories.
c705573a0e
...
2c6a69c74c
|
@ -19,6 +19,7 @@
|
||||||
# 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;
|
||||||
|
@ -34,7 +35,7 @@
|
||||||
boot.plymouth.enable = true;
|
boot.plymouth.enable = true;
|
||||||
|
|
||||||
# Clear /tmp during boot
|
# Clear /tmp during boot
|
||||||
boot.tmp.cleanOnBoot = true;
|
boot.cleanTmpDir = 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
|
||||||
|
@ -70,6 +71,8 @@
|
||||||
|
|
||||||
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";
|
||||||
|
@ -178,19 +181,14 @@ fonts = {
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.openssh.settings.PermitRootLogin = "no";
|
services.openssh.permitRootLogin = "no";
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall = {
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
enable = true;
|
networking.firewall.allowedTCPPorts = [ 24800 6600 ];
|
||||||
allowedTCPPorts = [ 24800 6600 ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
# For kdeconnect
|
# Or disable the firewall altogether.
|
||||||
allowedTCPPortRanges = [
|
# networking.firewall.enable = false;
|
||||||
{ 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. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
|
@ -7,11 +7,10 @@
|
||||||
./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";
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
{ config, pkgs, ... }:{
|
{ config, pkgs, ... }:{
|
||||||
|
|
||||||
programs.i3status-rust = {
|
programs.i3status-rust = {
|
||||||
|
@ -9,16 +8,18 @@
|
||||||
{
|
{
|
||||||
block = "disk_space";
|
block = "disk_space";
|
||||||
path = "/";
|
path = "/";
|
||||||
format = "$icon $percentage";
|
alias = "/";
|
||||||
format_alt = " $icon $available / $total ";
|
info_type = "available";
|
||||||
info_type = "used";
|
unit = "GB";
|
||||||
interval = 60;
|
interval = 60;
|
||||||
warning = 20.0;
|
warning = 20.0;
|
||||||
alert = 10.0;
|
alert = 10.0;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
block = "memory";
|
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";
|
block = "cpu";
|
||||||
|
@ -36,15 +37,10 @@
|
||||||
{
|
{
|
||||||
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 = " $icon $timestamp.datetime(f:'%d/%m %R', l:fr_FR) ";
|
format = "%a %d/%m %R";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
icons = "material-nf";
|
icons = "material-nf";
|
|
@ -33,6 +33,5 @@
|
||||||
vlc
|
vlc
|
||||||
guake
|
guake
|
||||||
graphviz
|
graphviz
|
||||||
kdeconnect
|
|
||||||
];
|
];
|
||||||
}
|
}
|
Loading…
Reference in New Issue