2018-05-12 13:51:24 +00:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./config.nix
|
|
|
|
<stockholm/lass/2configs/hw/x220.nix>
|
|
|
|
<stockholm/lass/2configs/boot/stock-x220.nix>
|
|
|
|
];
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/bku" = {
|
|
|
|
device = "/dev/mapper/pool-bku";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = ["defaults" "noatime" "ssd" "compress=lzo"];
|
|
|
|
};
|
|
|
|
"/home/virtual" = {
|
|
|
|
device = "/dev/mapper/pool-virtual";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2019-04-07 16:57:26 +00:00
|
|
|
"/backups" = {
|
|
|
|
device = "/dev/pool/backup";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2018-05-12 13:51:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services.udev.extraRules = ''
|
2019-05-29 13:19:37 +00:00
|
|
|
SUBSYSTEM=="net", DEVPATH=="/devices/pci*/*1c.1/*/net/*", NAME="wl0"
|
2018-05-16 15:30:17 +00:00
|
|
|
SUBSYSTEM=="net", ATTR{address}=="f0:de:f1:c4:7a:f1", NAME="et0"
|
2018-05-12 13:51:24 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
#TODO activationScripts seem broken, fix them!
|
|
|
|
#activationScripts
|
|
|
|
#split up and move into base
|
|
|
|
system.activationScripts.powertopTunables = ''
|
|
|
|
#Runtime PMs
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1d.0/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.3/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1b.0/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1a.0/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:19.0/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.1/power/control'
|
|
|
|
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.4/power/control'
|
|
|
|
'';
|
|
|
|
}
|