summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 64c8544..3b9f6be 100644
--- a/flake.nix
+++ b/flake.nix
@@ -26,20 +26,24 @@
email = "tjkeller.xyz";
fullname = "Tim Keller";
};
- in {
- nixosConfigurations.T430 = nixpkgs.lib.nixosSystem {
+ mkNixosConfiguration = hostname: nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit userDetails;
};
modules = [
- ./modules/hosts/T430/configuration.nix
+ ./modules/hosts/${hostname}/configuration.nix
./modules/root
];
};
+ in {
+ nixosConfigurations = {
+ T430 = mkNixosConfiguration "T430";
+ T495 = mkNixosConfiguration "T495";
+ };
- homeConfigurations.timmy = home-manager.lib.homeManagerConfiguration {
+ homeConfigurations.${userDetails.username} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit userDetails;