Reorganize for zfs

This commit is contained in:
Charlotte Van Petegem 2020-05-23 09:59:32 +02:00
parent 2933964680
commit cfb48de40c
57 changed files with 817 additions and 492 deletions

14
overlays/default.nix Normal file
View file

@ -0,0 +1,14 @@
{ ... }:
let
overlays = [
(import ./pass.nix)
(import ./ssh.nix)
];
in
{
nixpkgs.overlays = overlays;
home-manager.users.charlotte = { pkgs, ... }: {
nixpkgs.overlays = overlays;
};
}

4
overlays/pass.nix Normal file
View file

@ -0,0 +1,4 @@
self: super: {
firefox = super.firefox.override { extraNativeMessagingHosts = [ self.passff-host ]; };
pass = (super.pass-wayland.override { pass = super.pass-wayland; }).withExtensions (ext: [ ext.pass-otp ]);
}

16
overlays/ssh.nix Normal file
View file

@ -0,0 +1,16 @@
self: super: {
ssh = self.symlinkJoin {
name = "openssh";
paths = [
(
self.writeScriptBin "ssh" ''
#!${self.zsh}/bin/zsh
export TERM=xterm-256color
${super.openssh}/bin/ssh $@
''
)
super.openssh
];
};
}