mirror of
https://github.com/alyssadev/nixos.git
synced 2025-10-14 04:59:39 +10:00
61 lines
1.9 KiB
Nix
61 lines
1.9 KiB
Nix
# 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 = [ ];
|
||
|
||
boot.initrd.availableKernelModules = [ "sd_mod" "sr_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-uuid/1ede5a16-78e9-4874-b39f-b1d31a021774";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/EF0E-1E4B";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
fileSystems."/mnt/storage" =
|
||
{ device = "/dev/disk/by-uuid/e959b50a-31fe-4828-9b46-9f2c80c5a42f";
|
||
fsType = "btrfs";
|
||
};
|
||
|
||
fileSystems."/mnt/storage/media/moviesoverlay" = {
|
||
device = "overlay";
|
||
fsType = "overlay";
|
||
options = [
|
||
"lowerdir=/mnt/storage/media/movies2:/mnt/storage/media/movies"
|
||
"x-systemd.after=mnt-storage.mount"
|
||
"x-systemd.requires=mnt-storage.mount"
|
||
];
|
||
};
|
||
|
||
fileSystems."/mnt/storage/media/tvoverlay" = {
|
||
device = "overlay";
|
||
fsType = "overlay";
|
||
options = [
|
||
"lowerdir=/mnt/storage/media/tv2:/mnt/storage/media/tv"
|
||
"x-systemd.after=mnt-storage.mount"
|
||
"x-systemd.requires=mnt-storage.mount"
|
||
];
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
|
||
# 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.eth0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
virtualisation.hypervGuest.enable = true;
|
||
}
|