Changed: flake.nix

This commit is contained in:
2025-03-24 21:44:10 +01:00
parent 17adfa4d5a
commit 4f3805c1d5
2 changed files with 68 additions and 25 deletions

View File

@@ -38,7 +38,7 @@
...
}: {
nixosConfigurations = {
nixos-test = let
m920q = let
username = "phil";
specialArgs = {inherit username;};
in
@@ -47,30 +47,7 @@
system = "x86_64-linux";
modules = [
./hosts/nixos-test
./users/${username}/nixos.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs // specialArgs;
home-manager.users.${username} = import ./users/${username}/home.nix;
}
];
};
msi-rtx4090 = let
username = "suzi"; # another username for this machine
specialArgs = {inherit username;};
in
nixpkgs.lib.nixosSystem {
inherit specialArgs;
system = "x86_64-linux";
modules = [
./hosts/msi-rtx4090
./hosts/m920q
./users/${username}/nixos.nix
home-manager.nixosModules.home-manager