Add some packages, format with nixpkgs-fmt

main
mat ess 2022-01-23 18:50:34 -05:00
parent 52f410cb3e
commit a695374977
19 changed files with 268 additions and 253 deletions

View File

@ -4,9 +4,13 @@
nix.binaryCaches = [
"https://cache.nixos.org/"
"https://hydra.iohk.io"
"https://nix-community.cachix.org"
];
nix.binaryCachePublicKeys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
nix.trustedUsers = [
"@admin"

View File

@ -37,6 +37,7 @@ in
"homebrew/core"
"homebrew/services"
"nrlquaker/createzap"
"unisonweb/unison"
];
# Prefer installing application from the Mac App Store
@ -48,6 +49,7 @@ in
# If an app isn't available in the Mac App Store, or the version in the App Store has
# limitiations, e.g., Transmit, install the Homebrew Cask.
homebrew.casks = [
"aerial"
"alfred"
"discord"
"element"
@ -59,6 +61,7 @@ in
"rectangle"
"signal"
"steam"
"unison-language"
"vscodium"
];

View File

@ -1,10 +1,14 @@
# See https://nixos.wiki/wiki/Flakes#Using_flakes_project_from_a_legacy_Nix
(import (
(import
(
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash; }
) {
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{
src = ./.;
}).defaultNix

View File

@ -100,7 +100,7 @@
cachix # adding/managing alternative binary caches hosted by Cachix
comma # run software from without installing it
niv # easy dependency management for nix projects
nixfmt
nixpkgs-fmt
nix-prefetch-git
# nodePackages.node2nix

View File

@ -130,7 +130,8 @@
programs.fish.shellAliases =
let
nixConfigDir = "${config.home.homeDirectory}/dotfiles.nix";
in with pkgs; {
in
with pkgs; {
# My additions
code = "codium";
# OG

View File

@ -20,7 +20,8 @@ let
let
file = "/etc/pam.d/sudo";
option = "security.pam.enableSudoTouchIdAuth";
in ''
in
''
${if isEnabled then ''
# Enable sudo Touch ID authentication, if not already enabled
if ! grep 'pam_tid.so' ${file} > /dev/null; then

View File

@ -36,7 +36,8 @@ let
${term-background}/bin/term-background dark
'';
in {
in
{
options.programs.kitty.extras = {
colors = {
@ -109,7 +110,8 @@ in {
term-background
];
programs.kitty.settings = optionalAttrs cfg.colors.enable (
programs.kitty.settings = optionalAttrs cfg.colors.enable
(
cfg.colors.common // cfg.colors.${cfg.colors.default} // {
allow_remote_control = "yes";

View File

@ -151,7 +151,8 @@ in
'';
programs.fish.interactiveShellInit = mkIf
(cfg.termBufferAutoChangeDir || cfg.nvrAliases.enable) shellConfig;
(cfg.termBufferAutoChangeDir || cfg.nvrAliases.enable)
shellConfig;
programs.neovim.plugins = lib.singleton (
pkgs.vimUtils.buildVimPluginFrom2Nix {

View File

@ -1,7 +1,6 @@
{
system ? builtins.currentSystem,
config ? {},
overlays ? [],
...
{ system ? builtins.currentSystem
, config ? { }
, overlays ? [ ]
, ...
}@args:
import (import ./default.nix).inputs.nixpkgs-unstable args