Update flake.nix
This commit is contained in:
parent
ae1fd84ada
commit
5c7b37b939
1 changed files with 2 additions and 11 deletions
13
flake.nix
13
flake.nix
|
|
@ -3,10 +3,10 @@
|
||||||
description = "Fred's NixOS Flake";
|
description = "Fred's NixOS Flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# 1. NixOS unstable (Replaces your 'nixos-unstable' channel)
|
# NixOS unstable
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
# 2. Home Manager master (Replaces your 'home-manager master' channel)
|
# 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
|
# Ensure Home Manager uses the Nixpkgs input defined above
|
||||||
|
|
@ -15,19 +15,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }: {
|
outputs = { self, nixpkgs, home-manager, ... }: {
|
||||||
# Define your single NixOS configuration
|
|
||||||
nixosConfigurations.FredOS-Gaming = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.FredOS-Gaming = nixpkgs.lib.nixosSystem {
|
||||||
# Use the unstable system
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
# Import your existing configurations
|
|
||||||
modules = [
|
modules = [
|
||||||
# This is where you point to your existing common.nix
|
|
||||||
./common.nix
|
./common.nix
|
||||||
|
|
||||||
# 🌟 NEW: Home Manager module inclusion 🌟
|
|
||||||
# You declare HM as a module here instead of using the imports in common.nix
|
|
||||||
# NOTE: You MUST remove the imports block for Home Manager from common.nix!
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue