summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2023-09-29 20:41:27 -0400
committerJon Santmyer <jon@jonsantmyer.com>2023-09-29 20:41:27 -0400
commit0d1276915ca8cdd9b1b65f8c11832d0d598c49af (patch)
tree220e5750d034dfc89f54aa0d828c27e9ea7dc300
parent1f327873451b9617e305b4b97f83a1824574881d (diff)
downloadnix-config-0d1276915ca8cdd9b1b65f8c11832d0d598c49af.tar.gz
nix-config-0d1276915ca8cdd9b1b65f8c11832d0d598c49af.tar.bz2
nix-config-0d1276915ca8cdd9b1b65f8c11832d0d598c49af.zip
really add laptop host
-rw-r--r--hosts/default.nix20
-rw-r--r--hosts/jontop/hardware.nix7
2 files changed, 24 insertions, 3 deletions
diff --git a/hosts/default.nix b/hosts/default.nix
index a5aace9..862cccf 100644
--- a/hosts/default.nix
+++ b/hosts/default.nix
@@ -1,4 +1,4 @@
-{ inputs, lib, nixpkgs, nixpkgs-unstable, nurpkgs, home-manager, stateVersion }:
+{ inputs, lib, nixpkgs, nixpkgs-unstable, nurpkgs, nixos-hardware, home-manager, stateVersion }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
@@ -29,4 +29,22 @@ in
}
];
};
+
+ jontop = lib.nixosSystem {
+ inherit system;
+ specialArgs = {
+ inherit inputs system pkgs-unstable nurpkgs nixos-hardware stateVersion;
+ user = "jon";
+ };
+ modules = [
+ { nixpkgs.overlays = [ nurpkgs.overlay ]; }
+ ./config.nix
+ ./jontop
+
+ home-manager.nixosModules.home-manager {
+ home-manager.useGlobalPkgs = true;
+ home-manager.useUserPackages = true;
+ }
+ ];
+ };
}
diff --git a/hosts/jontop/hardware.nix b/hosts/jontop/hardware.nix
index 7d3f7c9..dc5af7e 100644
--- a/hosts/jontop/hardware.nix
+++ b/hosts/jontop/hardware.nix
@@ -1,7 +1,10 @@
-{ ... }:
+{ config, lib, pkgs, nixos-hardware, modulesPath, ... }:
{
imports =
- [ (modulesPath + "/installer/scan/not-detected.nix") ];
+ [
+ (modulesPath + "/installer/scan/not-detected.nix")
+ nixos-hardware.nixosModules.lenovo-thinkpad-x220
+ ];
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ "i915" ];