This commit is contained in:
iofq 2023-04-30 14:15:07 -05:00
parent e1fe85f763
commit 7587d91cd1
8 changed files with 146 additions and 46 deletions

View file

@ -1,4 +1,4 @@
{ lib, nixpkgs, username, home-manager, nixos-hardware, ... }:
{ lib, nixpkgs, username, home-manager, nixos-hardware, sops-nix, ... }:
let
system = "x86_64-linux";
@ -12,36 +12,36 @@ let
in
{
t14 = lib.nixosSystem {
inherit system;
specialArgs = {
inherit username;
host = {
hostName = "t14";
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";
modules = [
sops-nix.nixosModules.sops
./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;
};
};
home-manager.users.${username} = {
programs.home-manager.enable = true;
imports = [
./home.nix
./t14/home.nix
home-manager.sharedModules = [
sops-nix.homeManagerModule
];
};
}
];
};
home-manager.users.${username} = {
programs.home-manager.enable = true;
imports = [
./t14/home.nix
];
};
}
];
};
}
}