mirror of
https://github.com/gburd/nix-config.git
synced 2024-06-29 23:07:20 +00:00
home-manager modules
This commit is contained in:
parent
069735729d
commit
cfeed4b553
|
@ -94,6 +94,8 @@
|
|||
# Custom packages and modifications, exported as overlays
|
||||
overlays = import ./overlays { inherit inputs outputs; };
|
||||
|
||||
homeManagerModules = import ./modules/home-manager;
|
||||
|
||||
# Custom packages; acessible via 'nix build', 'nix shell', etc
|
||||
packages = libx.forAllSystems (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
./ranger.nix
|
||||
./screen.nix
|
||||
./ssh.nix
|
||||
./xpo.nix
|
||||
# ./xpo.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, username, ... }: {
|
||||
{ inputs, config, pkgs, username, ... }: {
|
||||
imports = [
|
||||
inputs.impermanence.nixosModules.home-manager.impermanence
|
||||
../../services/keybase.nix
|
||||
|
|
|
@ -7,7 +7,7 @@ in
|
|||
# Only import user specific configuration if they have bespoke settings
|
||||
imports = [
|
||||
# If you want to use modules your own flake exports (from modules/home-manager):
|
||||
# outputs.homeManagerModules.example
|
||||
outputs.homeManagerModules.pass-secret-service
|
||||
|
||||
# Or modules exported from other flakes (such as nix-colors):
|
||||
# inputs.nix-colors.homeManagerModules.default
|
||||
|
|
3
home-manager/modules/default.nix
Normal file
3
home-manager/modules/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
pass-secret-service = import ./pass-secret-service.nix;
|
||||
}
|
3
modules/home-manager/default.nix
Normal file
3
modules/home-manager/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
pass-secret-service = import ./pass-secret-service.nix;
|
||||
}
|
|
@ -1,5 +1,10 @@
|
|||
# This file defines overlays
|
||||
{ inputs, ... }:
|
||||
let
|
||||
addPatches = pkg: patches: pkg.overrideAttrs (oldAttrs: {
|
||||
patches = (oldAttrs.patches or [ ]) ++ patches;
|
||||
});
|
||||
in
|
||||
{
|
||||
# This one brings our custom packages from the 'pkgs' directory
|
||||
additions = final: _prev: import ../pkgs { pkgs = final; };
|
||||
|
@ -7,10 +12,18 @@
|
|||
# This one contains whatever you want to overlay
|
||||
# You can change versions, add patches, set compilation flags, anything really.
|
||||
# https://nixos.wiki/wiki/Overlays
|
||||
modifications = _final: _prev: {
|
||||
modifications = final: prev: {
|
||||
# example = prev.example.overrideAttrs (oldAttrs: rec {
|
||||
# ...
|
||||
# });
|
||||
|
||||
passExtensions = prev.passExtensions // {
|
||||
# https://github.com/tadfisher/pass-otp/pull/173
|
||||
pass-otp = addPatches prev.passExtensions.pass-otp [ ./pass-otp-fix-completion.patch ];
|
||||
};
|
||||
|
||||
# https://github.com/mdellweg/pass_secret_service/pull/37
|
||||
pass-secret-service = addPatches prev.pass-secret-service [ ./pass-secret-service-native.diff ];
|
||||
};
|
||||
|
||||
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
|
||||
|
|
Loading…
Reference in a new issue