Modifications to allow using in system flake, at the expense of pkgs-unstable

This commit is contained in:
Lauren Lagarde 2025-03-09 18:23:21 -05:00
parent 972e0b36e1
commit 110fa225d4
5 changed files with 50 additions and 28 deletions

7
default.nix Normal file
View File

@ -0,0 +1,7 @@
(import (
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/12c64ca55c1014cdc1b16ed5a804aa8576601ff2.tar.gz";
sha256 = "0jm6nzb83wa6ai17ly9fzpqc40wg1viib8klq8lby54agpl213w5"; }
) {
src = ./.;
}).defaultNix

View File

@ -9,37 +9,46 @@
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {nixpkgs, nixpkgs-unstable, home-manager, ... }: let
outputs = { self, home-manager, nixpkgs, nixpkgs-unstable, ... }@inputs: let
system = "x86_64-linux";
unstable = nixpkgs-unstable.legacyPackages.${system};
lauren_lagarde_modules = [{
home.username = "lauren_lagarde";
home.homeDirectory = "/home/lauren_lagarde";
}];
pkgs = import nixpkgs { inherit system; };
pkgs-unstable = import nixpkgs-unstable { inherit system; };
in {
# Enables all of these be used in a system flake
# https://discourse.nixos.org/t/nixos-home-manager-config-where-both-use-flakes/41410/2
homeManagerModules = {
#inherit pkgs-unstable; #TODO: ????
"lauren_lagarde" = [
{
home.username = "lauren_lagarde";
home.homeDirectory = "/home/lauren_lagarde";
}
./base.nix
];
"lauren_lagarde@ll-latitude-e5591" = self.homeManagerModules."lauren_lagarde" ++ [
./i3.nix
./secrets/dotspace.nix
./secrets/dotspace_gui.nix
./systems/ll-latitude-e5591.nix
];
};
homeConfigurations = {
"lauren_lagarde" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = "x86_64-linux"; };
modules = lauren_lagarde_modules ++ [
./base.nix
];
inherit pkgs;
modules = self.homeManagerModules."lauren_lagarde";
extraSpecialArgs = { inherit inputs pkgs-unstable; };
};
"lauren_lagarde@ll-latitude-e5591" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = "x86_64-linux"; };
modules = lauren_lagarde_modules ++ [
./base.nix
./i3.nix
./secrets/dotspace.nix
./secrets/dotspace_gui.nix
./systems/ll-latitude-e5591.nix
];
extraSpecialArgs = { unstable = unstable; };
inherit pkgs;
modules = self.homeManagerModules."lauren_lagarde@ll-latitude-e5591";
extraSpecialArgs = { inherit inputs pkgs-unstable; };
};
};
};

View File

@ -1,7 +1,8 @@
{ unstable, ... }: {
#{ pkgs-unstable, ... }: {
{ ... }: {
programs.firefox = {
enable = true;
package = unstable.pkgs.firefox;
#package = pkgs-unstable.firefox;
policies = {
DisableTelemetry = false;
DisablePocket = true;

Binary file not shown.

View File

@ -1,4 +1,5 @@
{ pkgs, unstable, ... }: {
#{ pkgs, pkgs-unstable, ... }: {
{ pkgs, ... }: {
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
@ -31,8 +32,12 @@
# Other Apps
chromium
qtpass
unstable.yt-dlp
unstable.openscad-unstable
#pkgs-unstable.yt-dlp
#pkgs-unstable.openscad-unstable
yt-dlp
openscad-unstable
sublime-merge
libreoffice
gthumb