mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-05 23:18:11 +09:00
init files
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
_: {
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
devShells.android = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
android-tools # adb, fastboot
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
alias adb-shutter-off='adb shell settings put system csc_pref_camera_forced_shuttersound_key 0'
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
./dotnix.nix
|
||||
./android.nix
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
_: {
|
||||
perSystem =
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
devShells.dotnix = pkgs.mkShell {
|
||||
packages = [
|
||||
config.treefmt.build.wrapper
|
||||
|
||||
pkgs.git
|
||||
pkgs.gitleaks
|
||||
pkgs.pre-commit
|
||||
|
||||
# sops-nix / age
|
||||
pkgs.sops
|
||||
pkgs.age
|
||||
pkgs.ssh-to-age
|
||||
|
||||
# YubiKey for sops editing
|
||||
pkgs.age-plugin-yubikey
|
||||
pkgs.yubikey-manager
|
||||
pkgs.pcsc-tools
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
${config.pre-commit.settings.shellHook}
|
||||
|
||||
export SOPS_AGE_KEY_FILE="$HOME/.config/sops/age/yubikey-identity.txt"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user