adapted to thinkpad
This commit is contained in:
parent
27539eff01
commit
2e3e08eece
@ -8,29 +8,36 @@
|
|||||||
|
|
||||||
# System
|
# System
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
boot = {
|
||||||
boot.loader.grub.version = 2;
|
loader = {
|
||||||
boot.loader.grub.device = "/dev/sdd";
|
grub.enable = false;
|
||||||
|
gummiboot.enable = true;
|
||||||
hardware.opengl.driSupport32Bit = true;
|
generationsDir = {
|
||||||
|
enable = false;
|
||||||
|
copyKernels = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
kernel = {
|
||||||
|
sysctl = {
|
||||||
|
"kernel.nmi_watchdog" = 0; # Disable watchdog
|
||||||
|
"vm.swappiness" = 0; # Avoid swapping as much as possible
|
||||||
|
"vm.laptop_mode" = 5; # Use laptop mode (Knob at 5)
|
||||||
|
"vm.dirty_writeback_centisecs" = 6000; # Aggregate disk IO
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# SSD
|
# SSD
|
||||||
boot.tmpOnTmpfs = true; # save some writes
|
boot.tmpOnTmpfs = true; # save some writes
|
||||||
fileSystems."/".options = "discard,noatime";
|
fileSystems."/".options = "discard,noatime";
|
||||||
|
|
||||||
# Mount Data disk
|
|
||||||
fileSystems."/mnt/Dati" = {
|
|
||||||
device = "/dev/sdd3";
|
|
||||||
options = "nofail,relatime,defaults";
|
|
||||||
};
|
|
||||||
|
|
||||||
time.timeZone = "Europe/Rome";
|
time.timeZone = "Europe/Rome";
|
||||||
|
|
||||||
virtualisation.virtualbox.host.enable = true;
|
virtualisation.virtualbox.host.enable = true;
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
|
|
||||||
networking.hostName = "ape";
|
networking.hostName = "warren";
|
||||||
networking.hostId = "6bc261fc";
|
networking.hostId = "6bc261fc";
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
networking.wireless.enable = true;
|
networking.wireless.enable = true;
|
||||||
@ -71,14 +78,14 @@
|
|||||||
# Applications
|
# Applications
|
||||||
neovim ranger weechat bc w3m gnupg zathura go14Packages.ipfs.bin
|
neovim ranger weechat bc w3m gnupg zathura go14Packages.ipfs.bin
|
||||||
tmux htop rxvt_unicode pandoc mosh ncdu cv pv tree screenfetch
|
tmux htop rxvt_unicode pandoc mosh ncdu cv pv tree screenfetch
|
||||||
scrot iotop iftop
|
scrot iotop iftop unzip zip p7zip
|
||||||
# Desktop Applications
|
# Desktop Applications
|
||||||
chromium libreoffice gparted
|
chromium libreoffice gparted
|
||||||
# Media
|
# Media
|
||||||
beets mpd mpc_cli ncmpcpp popcorntime mpv
|
beets mpd mpc_cli ncmpcpp popcorntime mpv
|
||||||
# Drivers, file systems and other compatibility-aimed packages
|
# Drivers, file systems and other compatibility-aimed packages
|
||||||
ntfs3g exfat utillinuxCurses gptfdisk encfs
|
ntfs3g exfat utillinuxCurses gptfdisk encfs xlibs.xbacklight
|
||||||
# Other stuff
|
acpi powertop
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
@ -103,7 +110,6 @@
|
|||||||
# Desktop Environment
|
# Desktop Environment
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
videoDrivers = [ "nvidia" ];
|
|
||||||
layout = "it";
|
layout = "it";
|
||||||
windowManager.bspwm.enable = true;
|
windowManager.bspwm.enable = true;
|
||||||
desktopManager.xterm.enable = false;
|
desktopManager.xterm.enable = false;
|
||||||
@ -113,6 +119,10 @@
|
|||||||
url = "https://github.com/rnhmjoj/nix-slim/archive/0.2.0.tar.gz";
|
url = "https://github.com/rnhmjoj/nix-slim/archive/0.2.0.tar.gz";
|
||||||
sha256 = "08m6ks6crdyr02ll50gy3vpn3rzq6rp5jm2bli526r432xacdmj1";
|
sha256 = "08m6ks6crdyr02ll50gy3vpn3rzq6rp5jm2bli526r432xacdmj1";
|
||||||
};
|
};
|
||||||
|
displayManager.desktopManagerHandlesLidAndPower = false;
|
||||||
|
synaptics = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
mpd = {
|
mpd = {
|
||||||
@ -130,7 +140,7 @@
|
|||||||
}
|
}
|
||||||
audio_output {
|
audio_output {
|
||||||
type "alsa"
|
type "alsa"
|
||||||
name "Fazo-PC"
|
name "warren"
|
||||||
mixer_type "software"
|
mixer_type "software"
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
@ -159,6 +169,7 @@
|
|||||||
# Custom Services
|
# Custom Services
|
||||||
|
|
||||||
systemd.services.ipfs = {
|
systemd.services.ipfs = {
|
||||||
|
enable = false;
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ pkgs.bash pkgs.fuse ];
|
path = [ pkgs.bash pkgs.fuse ];
|
||||||
|
@ -88,7 +88,7 @@ buildBar () {
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
echo " $(getMPD) %{c}$(buildClock) %{r} $(getLOAD) $(separator) $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) "
|
echo " $(getMPD) %{c}$(buildClock) %{r} $(getLOAD) $(separator) $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) "
|
||||||
sleep 1
|
sleep 5
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user