add nas hardware-configuration.nix
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
3973648b8f
commit
3928a2a6e9
2 changed files with 37 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports =
|
||||
[
|
||||
../hardware-configuration.nix
|
||||
./hardware-configuration.nix
|
||||
../common/configuration.nix
|
||||
];
|
||||
|
||||
|
|
36
nas/hardware-configuration.nix
Normal file
36
nas/hardware-configuration.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAG923996P-part1";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nixos" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAG923996P-part3";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
fileSystems."/mnt/backup" =
|
||||
{ device = "/dev/disk/by-uuid/93a86fb5-8c9f-488b-a3e4-ca5444343246";
|
||||
fsType = "btrfs";
|
||||
options = [ "space_cache=v2" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
}
|
Loading…
Reference in a new issue