mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 17:34:05 -05:00
hardware for Nyx
This commit is contained in:
parent
855206cb0b
commit
b3435e560c
3 changed files with 81 additions and 1 deletions
|
|
@ -18,7 +18,7 @@
|
|||
- `nixos` - machine specific configurations for NixOS-based hosts
|
||||
- `Parzival` - Primary Box - Ryzen 5 7600 - RX 7800 XT - 32GB DDR5
|
||||
- `Incarceron` - Work issued framework 13 - AMD Ryzen 7 7840U - 32GB DDR5
|
||||
- `Nyx` - My X1 Carbon, personal laptop
|
||||
- `Nyx` - My X1 Carbon, personal laptop - i7-8650U - 16GB DDR4
|
||||
- `HandlerOne` - Lenovo m710q - i5-7500T - 16GB DDR4
|
||||
- `Mote` - Some dinky little datto appliance that does my bidding now
|
||||
- `Michishirube` - Nebula lighthouse node hosted on Digital Ocean
|
||||
|
|
|
|||
61
hosts/nixos/Nyx/default.nix
Normal file
61
hosts/nixos/Nyx/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
######################
|
||||
# #
|
||||
# Nyx - Laptop #
|
||||
# NixOS on X1 carbon #
|
||||
# #
|
||||
######################
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = lib.flatten [
|
||||
# Hardware
|
||||
inputs.hardware.nixosModules.lenovo-thinkpad-x1-6th-gen
|
||||
./hardware-configuration.nix
|
||||
|
||||
# Disks
|
||||
inputs.disko.nixosModules.disko
|
||||
(lib.custom.relativeToRoot "hosts/common/disks/btrfs-disk.nix")
|
||||
{
|
||||
_module.args = {
|
||||
disk = "/dev/sda";
|
||||
withSwap = true;
|
||||
swapSize = "8";
|
||||
};
|
||||
}
|
||||
|
||||
# Misc
|
||||
|
||||
(map lib.custom.relativeToRoot [
|
||||
# Required configs
|
||||
"hosts/common/core"
|
||||
|
||||
# Optional configs
|
||||
"hosts/common/optional/audio.nix"
|
||||
"hosts/common/optional/bluetooth.nix"
|
||||
"hosts/common/optional/keyd.nix"
|
||||
"hosts/common/optional/pentesting.nix"
|
||||
])
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
hostSpec = {
|
||||
hostName = "Nyx";
|
||||
persistFolder = "/persist";
|
||||
};
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
enableIPv6 = false;
|
||||
};
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
19
hosts/nixos/Nyx/hardware-configuration.nix
Normal file
19
hosts/nixos/Nyx/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# 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" "ahci" "usb_storage" "sd_mod"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = ["kvm-intel"];
|
||||
boot.extraModulePackages = [];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue