added zfs to hardware config
This commit is contained in:
parent
502ffabbaa
commit
5aab046d7b
2 changed files with 11 additions and 7 deletions
|
|
@ -32,6 +32,9 @@
|
||||||
# "net.bridge.bridge-nf-call-iptables" = 1;
|
# "net.bridge.bridge-nf-call-iptables" = 1;
|
||||||
# "net.bridge.bridge-nf-call-ip6tables" = 1;
|
# "net.bridge.bridge-nf-call-ip6tables" = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
boot.zfs.forceImportRoot = false;
|
||||||
|
|
||||||
# Console and locale
|
# Console and locale
|
||||||
console = {
|
console = {
|
||||||
|
|
@ -44,6 +47,7 @@
|
||||||
# Networking
|
# Networking
|
||||||
networking.hostName = "nixos-server";
|
networking.hostName = "nixos-server";
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
networking.hostId = "5506a8e7";
|
||||||
networking.interfaces.eth0.ipv4.addresses = [
|
networking.interfaces.eth0.ipv4.addresses = [
|
||||||
{
|
{
|
||||||
address = "192.168.69.69";
|
address = "192.168.69.69";
|
||||||
|
|
@ -93,6 +97,8 @@
|
||||||
nixfmt
|
nixfmt
|
||||||
systemd
|
systemd
|
||||||
inetutils
|
inetutils
|
||||||
|
smartmontools
|
||||||
|
parted
|
||||||
|
|
||||||
nil
|
nil
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -24,14 +24,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
fileSystems."/backup" = {
|
||||||
|
device = "backup";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp39s0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlp41s0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode =
|
hardware.cpu.amd.updateMicrocode =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue