Split Nix config in modules

This commit is contained in:
Paul-Henri Froidmont 2021-07-15 17:09:32 +02:00
parent 380361eeeb
commit dd5b87f66e
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
7 changed files with 80 additions and 77 deletions

10
hardware/hcloud.nix Normal file
View file

@ -0,0 +1,10 @@
{ modulesPath, config, pkgs, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
boot.cleanTmpDir = true;
networking.firewall.allowPing = true;
}