Refactor nix config - introduce better sections

This commit is contained in:
Cyryl Płotnicki 2019-03-31 13:42:59 +01:00
parent d1d206c788
commit e50633fcf6

View file

@ -35,18 +35,19 @@ in
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
services.gnome3.chrome-gnome-shell.enable = true; services = {
gnome3.chrome-gnome-shell.enable = true;
services.fwupd.enable = true; fwupd.enable = true;
services.syncthing = { syncthing = {
enable = true; enable = true;
user = "cyryl"; user = "cyryl";
dataDir = "/home/cyryl/.syncthing"; dataDir = "/home/cyryl/.syncthing";
openDefaultPorts = true; openDefaultPorts = true;
}; };
services.xserver = { xserver = {
enable = true; enable = true;
layout = "pl"; layout = "pl";
libinput.enable = true; libinput.enable = true;
@ -57,20 +58,17 @@ in
}; };
displayManager.gdm.enable = true; displayManager.gdm.enable = true;
}; };
};
time.timeZone = "Europe/London";
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
time.timeZone = "Europe/London";
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ]; fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
boot.loader.grub.enable = true; boot = {
boot.loader.grub.version = 2; initrd.luks.devices = [
boot.loader.grub.device = "nodev";
boot.loader.grub.efiSupport = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.luks.devices = [
{ {
name = "root"; name = "root";
device = "/dev/disk/by-uuid/8c76bf01-59b3-4c60-b853-e9cb77f3ca14"; device = "/dev/disk/by-uuid/8c76bf01-59b3-4c60-b853-e9cb77f3ca14";
@ -78,6 +76,14 @@ in
allowDiscards = true; allowDiscards = true;
} }
]; ];
loader.grub = {
enable = true;
version = 2;
device = "nodev";
efiSupport = true;
};
loader.efi.canTouchEfiVariables = true;
};
system.stateVersion = "18.09"; system.stateVersion = "18.09";
} }