Update flake.nix

This commit is contained in:
ediblerope 2025-12-04 12:09:42 +00:00 committed by GitHub
parent 0fe529c3a6
commit 6b9d254448
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,25 +1,28 @@
# flake.nix (New File) # flake.nix
{ {
description = "Fred's NixOS Flake"; description = "Fred's NixOS Flake";
inputs = { inputs = {
# NixOS unstable
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Home Manager master
home-manager = { home-manager = {
url = "github:nix-community/home-manager/master"; url = "github:nix-community/home-manager/master";
# Ensure Home Manager uses the Nixpkgs input defined above
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = { self, nixpkgs, home-manager, ... }: { outputs = { self, nixpkgs, home-manager, ... }: {
nixosConfigurations.FredOS-Gaming = nixpkgs.lib.nixosSystem { nixosConfigurations.FredOS-Gaming = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./common.nix ./hosts/FredOS-Gaming.nix # Main host config
./hosts/FredOS-Macbook.nix # Macbook config
./common.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.fred = import ./home.nix; # You'll need to create this
}
]; ];
}; };
}; };