nixos-config/flake.nix

41 lines
1.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-24 16:11:23 -04:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
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-24 16:11:23 -04:00
outputs = inputs@{self, nixpkgs, home-manager, nix-flatpak, nixos-hardware, ... }: {
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
2024-09-24 17:20:08 -04:00
./system/eddie/configuration.nix
2024-09-23 23:35:58 -04:00
];
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
2024-09-24 16:11:23 -04:00
#nixos-hardware
2024-09-24 17:46:02 -04:00
./home.nix
2024-09-23 23:35:58 -04:00
];
2024-09-22 01:15:13 -04:00
};
};
2024-09-22 01:04:11 -04:00
};
}