Better snapper + various fixes

This commit is contained in:
Filippo Berto 2021-06-29 09:24:38 +02:00
parent 98e4871193
commit 30efa48b7d
14 changed files with 237 additions and 54 deletions

View file

@ -151,12 +151,50 @@
'';
in
{
bertof_home = { subvolume = "/home/bertof"; extraConfig = bertofExtraConfig; };
bertof_images = { subvolume = "/home/bertof/Immagini"; extraConfig = bertofExtraConfig; };
bertof_music = { subvolume = "/home/bertof/Musica"; extraConfig = bertofExtraConfig; };
bertof_videos = { subvolume = "/home/bertof/Video"; extraConfig = bertofExtraConfig; };
bertof_hdd_games = { subvolume = "/home/bertof/Giochi/HDD"; extraConfig = bertofExtraConfig; };
bertof_ssd_games = { subvolume = "/home/bertof/Giochi/SSD"; extraConfig = bertofExtraConfig; };
bertof_home = {
subvolume = "/home/bertof";
extraConfig = bertofExtraConfig;
};
bertof_music = {
subvolume = "/home/bertof/Musica";
extraConfig = bertofExtraConfig;
};
bertof_downloads = {
subvolume = "/home/bertof/Scaricati";
extraConfig = bertofExtraConfig;
};
bertof_images = {
subvolume = "/home/bertof/Immagini";
extraConfig = bertofExtraConfig;
};
bertof_videos = {
subvolume = "/home/bertof/Video";
extraConfig = bertofExtraConfig;
};
bertof_documents = {
subvolume = "/home/bertof/Documenti";
extraConfig = bertofExtraConfig;
};
bertof_games_ssd = {
subvolume = "/home/bertof/Giochi/SSD";
extraConfig = bertofExtraConfig;
};
bertof_games_hdd = {
subvolume = "/home/bertof/Giochi/HDD";
extraConfig = bertofExtraConfig;
};
bertof_git = {
subvolume = "/home/bertof/Documenti/Git";
extraConfig = bertofExtraConfig;
};
bertof_virt_ssd = {
subvolume = "/home/bertof/Documenti/VirtManager/SSD";
extraConfig = bertofExtraConfig;
};
bertof_virt_hdd = {
subvolume = "/home/bertof/Documenti/VirtManager/HDD";
extraConfig = bertofExtraConfig;
};
};
};

View file

@ -6,10 +6,20 @@
{
imports = [
<nixos-hardware/common/cpu/intel>
./base.nix
];
boot.initrd.kernelModules = ["i915"];
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
];
# This runs only Intel and nvidia does not drain power.
##### disable nvidia for a very nice battery life.
hardware.nvidiaOptimus.disable = true;

View file

@ -7,10 +7,21 @@
{
imports =
[
<nixos-hardware/common/cpu/intel>
./base.nix
];
boot.initrd.kernelModules = ["i915"];
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
];
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.prime = {
offload.enable = false;