Refactor nix config - introduce better sections
This commit is contained in:
parent
d1d206c788
commit
e50633fcf6
1 changed files with 39 additions and 33 deletions
|
@ -35,18 +35,19 @@ in
|
|||
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;
|
||||
user = "cyryl";
|
||||
dataDir = "/home/cyryl/.syncthing";
|
||||
openDefaultPorts = true;
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
layout = "pl";
|
||||
libinput.enable = true;
|
||||
|
@ -57,20 +58,17 @@ in
|
|||
};
|
||||
displayManager.gdm.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/London";
|
||||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
time.timeZone = "Europe/London";
|
||||
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.version = 2;
|
||||
boot.loader.grub.device = "nodev";
|
||||
boot.loader.grub.efiSupport = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
boot.initrd.luks.devices = [
|
||||
boot = {
|
||||
initrd.luks.devices = [
|
||||
{
|
||||
name = "root";
|
||||
device = "/dev/disk/by-uuid/8c76bf01-59b3-4c60-b853-e9cb77f3ca14";
|
||||
|
@ -78,6 +76,14 @@ in
|
|||
allowDiscards = true;
|
||||
}
|
||||
];
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
version = 2;
|
||||
device = "nodev";
|
||||
efiSupport = true;
|
||||
};
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "18.09";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue