nixos/flake.nix

65 lines
1.9 KiB
Nix
Raw Permalink Normal View History

2024-07-07 18:11:51 +01:00
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
home-manager = {
2024-07-07 18:50:21 +01:00
url = "github:nix-community/home-manager/release-24.05";
2024-07-07 18:11:51 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
self,
nixpkgs,
home-manager,
...
}:
let
user = "vylpes";
in {
nixosConfigurations.vylpes-desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs self user;};
modules = [
./system/vylpes-desktop/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.vylpes = import ./config/home.nix;
home-manager.extraSpecialArgs = {inherit inputs self user;};
}
];
};
nixosConfigurations.vylpes-framework = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs self user;};
modules = [
./system/vylpes-framework/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.vylpes = import ./config/home.nix;
home-manager.extraSpecialArgs = {inherit inputs self user;};
}
];
};
nixosConfigurations.vylpes-virt = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs self user;};
modules = [
./system/vylpes-virt/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.vylpes = import ./config/home.nix;
home-manager.extraSpecialArgs = {inherit inputs self user;};
}
];
};
};
}