-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Edit this configuration file to define what should be installed on | ||
# your system. Help is available in the configuration.nix(5) man page, on | ||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). | ||
{ config | ||
, lib | ||
, pkgs | ||
, ... | ||
}: { | ||
mySystem.purpose = "Media Streaming"; | ||
mySystem.system.impermanence.enable = true; | ||
mySystem.system.autoUpgrade.enable=true; # bold move cotton | ||
mySystem.services = { | ||
openssh.enable = true; | ||
|
||
}; | ||
|
||
mySystem.nfs.nas.enable = true; | ||
mySystem.persistentFolder = "/persist"; | ||
mySystem.system.motd.networkInterfaces = [ "enp1s0" ]; | ||
|
||
mySystem.nasFolder = "/mnt/nas"; | ||
mySystem.system.resticBackup.local.location = "/mnt/nas/backup/nixos/nixos"; | ||
|
||
|
||
boot = { | ||
|
||
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" "rtsx_pci_sdmmc" ]; | ||
initrd.kernelModules = [ ]; | ||
kernelModules = [ "kvm-intel" ]; | ||
extraModulePackages = [ ]; | ||
|
||
# for managing/mounting ntfs | ||
supportedFilesystems = [ "ntfs" ]; | ||
|
||
loader = { | ||
systemd-boot.enable = true; | ||
efi.canTouchEfiVariables = true; | ||
# why not ensure we can memtest workstatons easily? | ||
# TODO check whether this is actually working, cant see it in grub? | ||
grub.memtest86.enable = true; | ||
|
||
}; | ||
}; | ||
|
||
networking.hostName = "playsatan"; # Define your hostname. | ||
networking.hostId = "b8cc9645"; | ||
networking.useDHCP = lib.mkDefault true; | ||
|
||
fileSystems."/" = | ||
{ device = "rpool/local/root"; | ||
fsType = "zfs"; | ||
}; | ||
|
||
fileSystems."/boot" = | ||
{ device = "/dev/disk/by-uuid/72A3-FA67"; | ||
fsType = "vfat"; | ||
}; | ||
|
||
fileSystems."/nix" = | ||
{ device = "rpool/local/nix"; | ||
fsType = "zfs"; | ||
}; | ||
|
||
fileSystems."/persist" = | ||
{ device = "rpool/safe/persist"; | ||
fsType = "zfs"; | ||
neededForBoot = true; # for impermanence | ||
}; | ||
|
||
swapDevices = [ ]; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters