tvl-depot/users/tazjin/nixos/arbat/default.nix
Vincent Ambo 609b68031b chore(3p/sources): bump channels & overlays (2024-09-01)
Included changes:

* users/aspen: explicitly use open-source nvidia driver

  This now has to be specified explicitly, otherwise evaluation fails with an
  error.
* users/aspen: nixfmt -> nixfmt-classic
* users/aspen: fixes for renamed packages & options
* users/tazjin: fixes for renamed packages & options
* 3p/overlays: remove cbtemulator patch (merged upstream)
* tvix/shell: remove unnecessary patches (merged upstream)
* 3p/rust-crates: mark libgit2_sys as broken
* users/Profpatsch: mark git-db as broken
* 3p/overlays: pick `mypaint` from stable channel
* tvix: fix comments that clippy doesn't like anymore
* tvix/glue: disable a misfiring clippy lint (applying its suggestion breaks
  code below)

Change-Id: I6d3fc027694bbe7425a2d25dc53d65467a44f3b0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12403
Tested-by: BuildkiteCI
Reviewed-by: aspen <root@gws.fyi>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Autosubmit: tazjin <tazjin@tvl.su>
2024-09-05 20:56:31 +00:00

72 lines
1.8 KiB
Nix

# arbat is my Unchartevice 6640MA, with a Zhaoxin CPU.
{ depot, lib, pkgs, ... }:
config:
let
mod = name: depot.path.origSrc + ("/ops/modules/" + name);
usermod = name: depot.path.origSrc + ("/users/tazjin/nixos/modules/" + name);
zdevice = device: {
inherit device;
fsType = "zfs";
};
in
{
imports = [
(usermod "chromium.nix")
(usermod "desktop.nix")
(usermod "fonts.nix")
(usermod "home-config.nix")
(usermod "laptop.nix")
(usermod "persistence.nix")
(usermod "physical.nix")
(pkgs.home-manager.src + "/nixos")
];
tvl.cache.enable = true;
boot = {
loader.systemd-boot.enable = true;
supportedFilesystems = [ "zfs" ];
zfs.devNodes = "/dev/";
# TODO: double-check this list
initrd.availableKernelModules = [ "ahci" "uhci_hcd" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
kernelModules = [ "kvm-intel" ]; # interesting
};
networking = {
hostName = "arbat";
hostId = "864f050b";
networkmanager.enable = true;
};
fileSystems = {
"/" = zdevice "zpool/ephemeral/root";
"/home" = zdevice "zpool/ephemeral/home";
"/persist" = zdevice "zpool/persistent/data" // { neededForBoot = true; };
"/nix" = zdevice "zpool/persistent/nix";
"/depot" = zdevice "zpool/persistent/depot";
"/boot" = {
device = "/dev/disk/by-uuid/B3B5-92F7";
fsType = "vfat";
};
};
hardware = {
enableRedistributableFirmware = true;
graphics.enable = true;
bluetooth.enable = true;
};
# TODO(tazjin): decide on this
services.libinput = {
enable = true;
# libinput thinks the touchpad is a mouse
mouse.naturalScrolling = false;
mouse.disableWhileTyping = true;
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
system.stateVersion = "24.11";
}