Update flake.nix
This commit is contained in:
parent
0fe529c3a6
commit
6b9d254448
1 changed files with 11 additions and 8 deletions
13
flake.nix
13
flake.nix
|
|
@ -1,15 +1,11 @@
|
|||
# flake.nix (New File)
|
||||
# flake.nix
|
||||
{
|
||||
description = "Fred's NixOS Flake";
|
||||
|
||||
inputs = {
|
||||
# NixOS unstable
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
# Home Manager master
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/master";
|
||||
# Ensure Home Manager uses the Nixpkgs input defined above
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
|
@ -18,8 +14,15 @@
|
|||
nixosConfigurations.FredOS-Gaming = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/FredOS-Gaming.nix # Main host config
|
||||
./hosts/FredOS-Macbook.nix # Macbook config
|
||||
./common.nix
|
||||
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
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue