task | add book (i7 Pixelbook 2017)
This commit is contained in:
parent
80f8742047
commit
dff859860f
6 changed files with 440 additions and 0 deletions
7
hosts/book/colmena.nix
Normal file
7
hosts/book/colmena.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [ ./default.nix ];
|
||||
deployment = {
|
||||
tags = [ "workstation" "intel" ];
|
||||
targetHost = "192.168.1.156";
|
||||
};
|
||||
}
|
||||
26
hosts/book/default.nix
Normal file
26
hosts/book/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.google-pixelbook
|
||||
./hardware-configuration.nix
|
||||
# ../disko/mmcblk.nix
|
||||
../workstation
|
||||
../workstation/kvm.nix
|
||||
../workstation/games
|
||||
../wm
|
||||
../../home/work
|
||||
];
|
||||
networking.hostName = "book";
|
||||
|
||||
roles = {
|
||||
citrix.enable = false;
|
||||
zoom.enable = true;
|
||||
gui.enable = true;
|
||||
kvm.enable = false;
|
||||
games.enable = false;
|
||||
};
|
||||
wm = {
|
||||
sway.enable = true;
|
||||
kde.enable = false;
|
||||
# cosmic.enable = false;
|
||||
};
|
||||
}
|
||||
38
hosts/book/hardware-configuration.nix
Normal file
38
hosts/book/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# 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" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/mmcblk0p2";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/mmcblk0p1";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
# swapDevices =
|
||||
# [ { device = "/dev/disk/by-uuid/a7ae7629-f44f-4298-bf31-59c51cd95658"; }
|
||||
# ];
|
||||
|
||||
# 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.wlp1s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
11
hosts/book/kernel.nix
Normal file
11
hosts/book/kernel.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
boot.kernelPatches = lib.singleton {
|
||||
name = "book-config";
|
||||
patch = null;
|
||||
extraStructuredConfig = with lib.kernel; {
|
||||
CROS_EC_I2C = module;
|
||||
CROS_KBD_LED_BACKLIGHT = module;
|
||||
I2C_HID_ACPI = yes;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue