nix/hosts/default.nix
2023-04-26 04:36:08 -05:00

47 lines
979 B
Nix

{ lib, nixpkgs, username, home-manager, nixos-hardware, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in
{
t14 = lib.nixosSystem {
inherit system;
specialArgs = {
inherit username;
host = {
hostName = "t14";
};
};
modules = [
./configuration.nix
./t14/configuration.nix
nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit username;
host = {
hostName = "t14";
};
};
home-manager.users.${username} = {
programs.home-manager.enable = true;
imports = [
./home.nix
./t14/home.nix
];
};
}
];
};
}