Compare commits

..

2 Commits

Author SHA1 Message Date
mir
0f5b4d155e remove displaylink 2024-02-26 17:30:05 -09:00
mir
1ead5ea613 add knockout machine; does this work? 2024-02-26 17:28:29 -09:00
3 changed files with 55 additions and 1 deletions

View File

@ -52,7 +52,10 @@
enable = true;
xkbVariant = "";
xkbOptions = "caps_lock:esc";
videoDrivers = [ "displaylink" "modesetting" ];
videoDrivers = [
# "displaylink" # broken
"modesetting"
];
# Enable the GNOME Desktop Environment.
desktopManager = {
xterm.enable = false;

View File

@ -23,6 +23,20 @@
}
];
};
knockout = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
./hardware/knockout-hw.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.mir = import ./home.nix;
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
}
];
};
};
};
}

37
hardware/knockout-hw.nix Normal file
View File

@ -0,0 +1,37 @@
# 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" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/44f83d76-68bd-4b07-bf5c-f72e7981e640";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/EE44-46F8";
fsType = "vfat";
};
swapDevices = [ ];
# 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.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}