overlayed nixpkgs to allow for pkgs.stable pkgs.main and pkgs.nur
also passed to home-manager and gabbielaptop config
This commit is contained in:
parent
8ad1d43730
commit
a7a31c0646
5 changed files with 91 additions and 92 deletions
40
flake.nix
40
flake.nix
|
@ -58,26 +58,28 @@
|
|||
}@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = {allowUnfree = true;};
|
||||
overlays = [
|
||||
overlay-stable
|
||||
overlay-master
|
||||
nur.overlays.default
|
||||
];
|
||||
};
|
||||
genericModules = [
|
||||
{
|
||||
nix.registry.nixos.flake = inputs.self;
|
||||
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
|
||||
nix.nixPath = [ "nixpkgs=${nixpkgs.outPath}" ];
|
||||
}
|
||||
# inputs.home-manager.nixosModules.home-manager
|
||||
# {
|
||||
# nix.registry.nixos.flake = inputs.self;
|
||||
# home-manager.useGlobalPkgs = true;
|
||||
# home-manager.useUserPackages = true;
|
||||
# }
|
||||
({ config, pkgs, ... }: {
|
||||
nixpkgs.overlays = [
|
||||
overlay-stable
|
||||
overlay-master
|
||||
nur.overlay
|
||||
];
|
||||
}
|
||||
)
|
||||
];
|
||||
genericHomeModule = [
|
||||
{
|
||||
nix.registry.nixos.flake = inputs.self;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
}
|
||||
];
|
||||
# Overlay definitions
|
||||
# nixpkgs-unstable
|
||||
|
@ -98,6 +100,7 @@
|
|||
{
|
||||
nixosConfigurations.gabbielaptop = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
inherit pkgs;
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
|
@ -111,8 +114,11 @@
|
|||
inputs.aagl.nixosModules.default
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
inputs.musnix.nixosModules.musnix
|
||||
# inputs.stylix.nixosModules.stylix
|
||||
# inputs.stylix.nixosModules.stylix
|
||||
# inputs.home-manager.nixosModules.home-manager
|
||||
# inputs.nixvim.homeManagerModules.nixvim
|
||||
{ nix.settings = inputs.aagl.nixConfig; } # Setup cachix for aagl projects
|
||||
# { home-manager.users.blue = ./home-manager/home.nix; }
|
||||
];
|
||||
};
|
||||
nixosConfigurations.biggerpi = nixpkgs.lib.nixosSystem {
|
||||
|
@ -127,15 +133,13 @@
|
|||
|
||||
# Standalone home-manager config
|
||||
homeConfigurations.blue = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
# Import home-manager modules here
|
||||
modules = [
|
||||
./home-manager/home.nix
|
||||
# ./home-manager/librewolf.nix
|
||||
inputs.flatpaks.homeManagerModules.declarative-flatpak
|
||||
inputs.nixvim.homeManagerModules.default
|
||||
inputs.stylix.homeManagerModules.stylix # Not compatible with NixOS module as they will interfere with one another, use this when building on a non-NixOS machine
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue