Convert to flake instead of raw

This commit is contained in:
Greg Hellings
2022-04-17 22:29:13 -05:00
parent f01898923e
commit 1326dc61a8
7 changed files with 127 additions and 18 deletions
+1
View File
@@ -2,6 +2,7 @@
{
imports = [
./hardware-configuration.nix
./dnsmasq.nix
./home-assistant.nix
./networking.nix
+31
View File
@@ -0,0 +1,31 @@
# 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" "usbhid" "usb_storage" "uas" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/35f9a49a-b557-4eb3-a013-2afca7a990e4";
fsType = "btrfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/A982-C8A3";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/4b6f2dc4-d845-4ec4-81f2-4f61bb3f282d"; }
];
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}