nixos-config/flake.nix

38 lines
1 KiB
Nix
Raw Normal View History

2024-09-22 01:04:11 -04:00
# flake.nix
{
description = "My Home Manager configuration";
inputs = {
2024-09-23 23:35:58 -04:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
2024-09-22 01:04:11 -04:00
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
2024-09-23 23:35:58 -04:00
home-manager.url = "github:nix-community/home-manager/release-24.05";
2024-09-22 01:04:11 -04:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-09-23 23:35:58 -04:00
nix-flatpak.url = "github:gmodena/nix-flatpak"; # unstable branch. Use github:gmodena/nix-flatpak/?ref=<tag> to pin releases.
2024-09-22 01:04:11 -04:00
};
2024-09-23 23:35:58 -04:00
outputs = inputs@{ nixpkgs, home-manager, nix-flatpak, ... }: {
2024-09-22 01:04:11 -04:00
nixosConfigurations = {
2024-09-23 23:35:58 -04:00
eddie = nixpkgs.lib.nixosSystem {
2024-09-22 01:04:11 -04:00
system = "x86_64-linux";
2024-09-23 23:35:58 -04:00
modules = [
nix-flatpak.nixosModules.nix-flatpak
./configuration.nix
];
2024-09-22 01:04:11 -04:00
};
};
2024-09-22 01:15:13 -04:00
homeConfigurations = {
"emenel" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
2024-09-23 23:35:58 -04:00
modules = [
nix-flatpak.homeManagerModules.nix-flatpak
./home.nix
];
2024-09-22 01:15:13 -04:00
};
};
2024-09-22 01:04:11 -04:00
};
}