Modifications to allow using in system flake, at the expense of pkgs-unstable
This commit is contained in:
parent
972e0b36e1
commit
110fa225d4
|
@ -0,0 +1,7 @@
|
||||||
|
(import (
|
||||||
|
fetchTarball {
|
||||||
|
url = "https://github.com/edolstra/flake-compat/archive/12c64ca55c1014cdc1b16ed5a804aa8576601ff2.tar.gz";
|
||||||
|
sha256 = "0jm6nzb83wa6ai17ly9fzpqc40wg1viib8klq8lby54agpl213w5"; }
|
||||||
|
) {
|
||||||
|
src = ./.;
|
||||||
|
}).defaultNix
|
55
flake.nix
55
flake.nix
|
@ -9,37 +9,46 @@
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
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";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
unstable = nixpkgs-unstable.legacyPackages.${system};
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
pkgs-unstable = import nixpkgs-unstable { inherit system; };
|
||||||
lauren_lagarde_modules = [{
|
|
||||||
home.username = "lauren_lagarde";
|
|
||||||
home.homeDirectory = "/home/lauren_lagarde";
|
|
||||||
}];
|
|
||||||
in {
|
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 = {
|
homeConfigurations = {
|
||||||
"lauren_lagarde" = home-manager.lib.homeManagerConfiguration {
|
"lauren_lagarde" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
inherit pkgs;
|
||||||
modules = lauren_lagarde_modules ++ [
|
modules = self.homeManagerModules."lauren_lagarde";
|
||||||
./base.nix
|
extraSpecialArgs = { inherit inputs pkgs-unstable; };
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
"lauren_lagarde@ll-latitude-e5591" = home-manager.lib.homeManagerConfiguration {
|
"lauren_lagarde@ll-latitude-e5591" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
inherit pkgs;
|
||||||
modules = lauren_lagarde_modules ++ [
|
modules = self.homeManagerModules."lauren_lagarde@ll-latitude-e5591";
|
||||||
./base.nix
|
extraSpecialArgs = { inherit inputs pkgs-unstable; };
|
||||||
|
|
||||||
./i3.nix
|
|
||||||
|
|
||||||
./secrets/dotspace.nix
|
|
||||||
./secrets/dotspace_gui.nix
|
|
||||||
|
|
||||||
./systems/ll-latitude-e5591.nix
|
|
||||||
];
|
|
||||||
extraSpecialArgs = { unstable = unstable; };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{ unstable, ... }: {
|
#{ pkgs-unstable, ... }: {
|
||||||
|
{ ... }: {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = unstable.pkgs.firefox;
|
#package = pkgs-unstable.firefox;
|
||||||
policies = {
|
policies = {
|
||||||
DisableTelemetry = false;
|
DisableTelemetry = false;
|
||||||
DisablePocket = true;
|
DisablePocket = true;
|
||||||
|
|
Binary file not shown.
|
@ -1,4 +1,5 @@
|
||||||
{ pkgs, unstable, ... }: {
|
#{ pkgs, pkgs-unstable, ... }: {
|
||||||
|
{ pkgs, ... }: {
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
@ -31,8 +32,12 @@
|
||||||
# Other Apps
|
# Other Apps
|
||||||
chromium
|
chromium
|
||||||
qtpass
|
qtpass
|
||||||
unstable.yt-dlp
|
|
||||||
unstable.openscad-unstable
|
#pkgs-unstable.yt-dlp
|
||||||
|
#pkgs-unstable.openscad-unstable
|
||||||
|
yt-dlp
|
||||||
|
openscad-unstable
|
||||||
|
|
||||||
sublime-merge
|
sublime-merge
|
||||||
libreoffice
|
libreoffice
|
||||||
gthumb
|
gthumb
|
||||||
|
|
Loading…
Reference in New Issue