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,49 +35,55 @@ 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;
desktopManager = { desktopManager = {
gnome3.enable = true; gnome3.enable = true;
xterm.enable = false; xterm.enable = false;
};
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; name = "root";
boot.loader.efi.canTouchEfiVariables = true; device = "/dev/disk/by-uuid/8c76bf01-59b3-4c60-b853-e9cb77f3ca14";
preLVM = true;
boot.initrd.luks.devices = [ allowDiscards = true;
{ }
name = "root"; ];
device = "/dev/disk/by-uuid/8c76bf01-59b3-4c60-b853-e9cb77f3ca14"; loader.grub = {
preLVM = true; enable = true;
allowDiscards = true; version = 2;
} device = "nodev";
]; efiSupport = true;
};
loader.efi.canTouchEfiVariables = true;
};
system.stateVersion = "18.09"; system.stateVersion = "18.09";
} }