[host/polymita-picta] Add host

This commit is contained in:
Malte Tammena 2022-12-01 15:33:12 +01:00
parent 005a7f1191
commit dec6ac3d41
4 changed files with 83 additions and 0 deletions

View file

@ -393,6 +393,22 @@
"type": "github"
}
},
"jovian-nixos": {
"flake": false,
"locked": {
"lastModified": 1668438481,
"narHash": "sha256-veNykk0yVAXYMf/XLVDp4pVXyVEeM6hhk5HXBmWDFgM=",
"owner": "Jovian-Experiments",
"repo": "Jovian-NixOS",
"rev": "cc896be6a3ebbccf04e7e07e89b666fa091a846a",
"type": "github"
},
"original": {
"owner": "Jovian-Experiments",
"repo": "Jovian-NixOS",
"type": "github"
}
},
"lib-aggregate": {
"inputs": {
"flake-utils": "flake-utils_3",
@ -899,6 +915,7 @@
"glados": "glados",
"home-manager": "home-manager",
"hydra": "hydra",
"jovian-nixos": "jovian-nixos",
"mensa": "mensa",
"nickel": "nickel",
"nix-colors": "nix-colors",

View file

@ -80,6 +80,10 @@
url = "github:qmk/qmk_firmware";
flake = false;
};
jovian-nixos = {
url = "github:Jovian-Experiments/Jovian-NixOS";
flake = false;
};
};
nixConfig = {
@ -102,6 +106,7 @@
"trochulus-hispidus"
"radix-balthica"
"faunus-ater"
"polymita-picta"
];
defaultModules = [
@ -239,6 +244,12 @@
./hardware/asrock-z370-i3-black-box.nix
];
};
polymita-picta = {...}: {
imports = [
./hardware/steam-deck.nix
(inputs.jovian-nixos + "/modules")
];
};
};
colmena =

44
hardware/steam-deck.nix Normal file
View file

@ -0,0 +1,44 @@
# 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 = ["nvme" "xhci_pci" "usb_storage" "uas" "usbhid" "sd_mod" "sdhci_pci"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/2372ce37-aa64-4f61-af67-b8aea852393f";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/7A16-E1BF";
fsType = "vfat";
};
swapDevices = [
{device = "/dev/disk/by-uuid/dfd44add-9b0a-4019-99dc-aa596b414962";}
];
# 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.enp4s0f3u1u2u1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

11
hosts/polymita-picta.nix Normal file
View file

@ -0,0 +1,11 @@
{
config,
pkgs,
lib,
options,
...
}: {
jovian.devices.steamdeck.enable = true;
jovian.steam.enable = true;
jovian.devices.steamdeck.enableVendorRadv = false;
}