nixos/flake.nix

30 lines
820 B
Nix
Raw Normal View History

2025-12-04 12:09:42 +00:00
# flake.nix
2025-12-04 11:46:05 +00:00
{
description = "Fred's NixOS Flake";
2025-12-04 12:09:42 +00:00
2025-12-04 11:46:05 +00:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2025-12-04 12:09:42 +00:00
2025-12-04 11:46:05 +00:00
outputs = { self, nixpkgs, home-manager, ... }: {
nixosConfigurations.FredOS-Gaming = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2025-12-04 12:09:42 +00:00
./hosts/FredOS-Gaming.nix # Main host config
./hosts/FredOS-Macbook.nix # Macbook config
./common.nix
2025-12-04 11:46:05 +00:00
home-manager.nixosModules.home-manager
2025-12-04 12:09:42 +00:00
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.fred = import ./home.nix; # You'll need to create this
}
2025-12-04 11:46:05 +00:00
];
};
};
}