Add some packages, format with nixpkgs-fmt
parent
52f410cb3e
commit
a695374977
|
@ -4,9 +4,13 @@
|
||||||
|
|
||||||
nix.binaryCaches = [
|
nix.binaryCaches = [
|
||||||
"https://cache.nixos.org/"
|
"https://cache.nixos.org/"
|
||||||
|
"https://hydra.iohk.io"
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
];
|
];
|
||||||
nix.binaryCachePublicKeys = [
|
nix.binaryCachePublicKeys = [
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"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 = [
|
nix.trustedUsers = [
|
||||||
"@admin"
|
"@admin"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
@ -37,6 +37,7 @@ in
|
||||||
"homebrew/core"
|
"homebrew/core"
|
||||||
"homebrew/services"
|
"homebrew/services"
|
||||||
"nrlquaker/createzap"
|
"nrlquaker/createzap"
|
||||||
|
"unisonweb/unison"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Prefer installing application from the Mac App Store
|
# 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
|
# 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.
|
# limitiations, e.g., Transmit, install the Homebrew Cask.
|
||||||
homebrew.casks = [
|
homebrew.casks = [
|
||||||
|
"aerial"
|
||||||
"alfred"
|
"alfred"
|
||||||
"discord"
|
"discord"
|
||||||
"element"
|
"element"
|
||||||
|
@ -59,6 +61,7 @@ in
|
||||||
"rectangle"
|
"rectangle"
|
||||||
"signal"
|
"signal"
|
||||||
"steam"
|
"steam"
|
||||||
|
"unison-language"
|
||||||
"vscodium"
|
"vscodium"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -68,5 +71,5 @@ in
|
||||||
|
|
||||||
# For cli packages that aren't currently available for macOS in `nixpkgs`.Packages should be
|
# For cli packages that aren't currently available for macOS in `nixpkgs`.Packages should be
|
||||||
# installed in `../home/default.nix` whenever possible.
|
# installed in `../home/default.nix` whenever possible.
|
||||||
homebrew.brews = [];
|
homebrew.brews = [ ];
|
||||||
}
|
}
|
14
default.nix
14
default.nix
|
@ -1,10 +1,14 @@
|
||||||
# See https://nixos.wiki/wiki/Flakes#Using_flakes_project_from_a_legacy_Nix
|
# See https://nixos.wiki/wiki/Flakes#Using_flakes_project_from_a_legacy_Nix
|
||||||
(import (
|
(import
|
||||||
|
(
|
||||||
let
|
let
|
||||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
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";
|
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 = ./.;
|
src = ./.;
|
||||||
}).defaultNix
|
}).defaultNix
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.atuin.enable
|
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.atuin.enable
|
||||||
atuin = {
|
atuin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {};
|
settings = { };
|
||||||
};
|
};
|
||||||
# a nicer cat
|
# a nicer cat
|
||||||
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.bat.enable
|
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.bat.enable
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
cachix # adding/managing alternative binary caches hosted by Cachix
|
cachix # adding/managing alternative binary caches hosted by Cachix
|
||||||
comma # run software from without installing it
|
comma # run software from without installing it
|
||||||
niv # easy dependency management for nix projects
|
niv # easy dependency management for nix projects
|
||||||
nixfmt
|
nixpkgs-fmt
|
||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
# nodePackages.node2nix
|
# nodePackages.node2nix
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ let
|
||||||
inactive_tab_background = "#${strong}";
|
inactive_tab_background = "#${strong}";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
# }}}
|
# }}}
|
||||||
{
|
{
|
||||||
# Kitty terminal
|
# Kitty terminal
|
||||||
# https://sw.kovidgoyal.net/kitty/conf.html
|
# https://sw.kovidgoyal.net/kitty/conf.html
|
||||||
|
|
|
@ -130,7 +130,8 @@
|
||||||
programs.fish.shellAliases =
|
programs.fish.shellAliases =
|
||||||
let
|
let
|
||||||
nixConfigDir = "${config.home.homeDirectory}/dotfiles.nix";
|
nixConfigDir = "${config.home.homeDirectory}/dotfiles.nix";
|
||||||
in with pkgs; {
|
in
|
||||||
|
with pkgs; {
|
||||||
# My additions
|
# My additions
|
||||||
code = "codium";
|
code = "codium";
|
||||||
# OG
|
# OG
|
||||||
|
|
|
@ -20,7 +20,8 @@ let
|
||||||
let
|
let
|
||||||
file = "/etc/pam.d/sudo";
|
file = "/etc/pam.d/sudo";
|
||||||
option = "security.pam.enableSudoTouchIdAuth";
|
option = "security.pam.enableSudoTouchIdAuth";
|
||||||
in ''
|
in
|
||||||
|
''
|
||||||
${if isEnabled then ''
|
${if isEnabled then ''
|
||||||
# Enable sudo Touch ID authentication, if not already enabled
|
# Enable sudo Touch ID authentication, if not already enabled
|
||||||
if ! grep 'pam_tid.so' ${file} > /dev/null; then
|
if ! grep 'pam_tid.so' ${file} > /dev/null; then
|
||||||
|
|
|
@ -7,7 +7,7 @@ let
|
||||||
cfg = config.programs.kitty.extras;
|
cfg = config.programs.kitty.extras;
|
||||||
|
|
||||||
# Create a Kitty config string from a Nix set
|
# Create a Kitty config string from a Nix set
|
||||||
setToKittyConfig = with generators; toKeyValue { mkKeyValue = mkKeyValueDefault {} " "; };
|
setToKittyConfig = with generators; toKeyValue { mkKeyValue = mkKeyValueDefault { } " "; };
|
||||||
|
|
||||||
# Write a Nix set representing a kitty config into the Nix store
|
# Write a Nix set representing a kitty config into the Nix store
|
||||||
writeKittyConfig = fileName: config: pkgs.writeTextDir "${fileName}" (setToKittyConfig config);
|
writeKittyConfig = fileName: config: pkgs.writeTextDir "${fileName}" (setToKittyConfig config);
|
||||||
|
@ -36,7 +36,8 @@ let
|
||||||
${term-background}/bin/term-background dark
|
${term-background}/bin/term-background dark
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
|
|
||||||
options.programs.kitty.extras = {
|
options.programs.kitty.extras = {
|
||||||
colors = {
|
colors = {
|
||||||
|
@ -55,7 +56,7 @@ in {
|
||||||
|
|
||||||
dark = mkOption {
|
dark = mkOption {
|
||||||
type = with types; attrsOf str;
|
type = with types; attrsOf str;
|
||||||
default = {};
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
Kitty color settings for dark background colorscheme.
|
Kitty color settings for dark background colorscheme.
|
||||||
'';
|
'';
|
||||||
|
@ -63,7 +64,7 @@ in {
|
||||||
|
|
||||||
light = mkOption {
|
light = mkOption {
|
||||||
type = with types; attrsOf str;
|
type = with types; attrsOf str;
|
||||||
default = {};
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
Kitty color settings for light background colorscheme.
|
Kitty color settings for light background colorscheme.
|
||||||
'';
|
'';
|
||||||
|
@ -71,7 +72,7 @@ in {
|
||||||
|
|
||||||
common = mkOption {
|
common = mkOption {
|
||||||
type = with types; attrsOf str;
|
type = with types; attrsOf str;
|
||||||
default = {};
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
Kitty color settings that the light and dark background colorschemes share.
|
Kitty color settings that the light and dark background colorschemes share.
|
||||||
'';
|
'';
|
||||||
|
@ -109,7 +110,8 @@ in {
|
||||||
term-background
|
term-background
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.kitty.settings = optionalAttrs cfg.colors.enable (
|
programs.kitty.settings = optionalAttrs cfg.colors.enable
|
||||||
|
(
|
||||||
|
|
||||||
cfg.colors.common // cfg.colors.${cfg.colors.default} // {
|
cfg.colors.common // cfg.colors.${cfg.colors.default} // {
|
||||||
allow_remote_control = "yes";
|
allow_remote_control = "yes";
|
||||||
|
|
|
@ -109,7 +109,7 @@ in
|
||||||
|
|
||||||
luaPackages = mkOption {
|
luaPackages = mkOption {
|
||||||
type = with types; listOf package;
|
type = with types; listOf package;
|
||||||
default = [];
|
default = [ ];
|
||||||
example = [ pkgs.luajitPackages.busted pkgs.luajitPackages.luafilesystem ];
|
example = [ pkgs.luajitPackages.busted pkgs.luajitPackages.luafilesystem ];
|
||||||
description = ''
|
description = ''
|
||||||
Lua packages to make available in Neovim Lua environment.
|
Lua packages to make available in Neovim Lua environment.
|
||||||
|
@ -151,7 +151,8 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.fish.interactiveShellInit = mkIf
|
programs.fish.interactiveShellInit = mkIf
|
||||||
(cfg.termBufferAutoChangeDir || cfg.nvrAliases.enable) shellConfig;
|
(cfg.termBufferAutoChangeDir || cfg.nvrAliases.enable)
|
||||||
|
shellConfig;
|
||||||
|
|
||||||
programs.neovim.plugins = lib.singleton (
|
programs.neovim.plugins = lib.singleton (
|
||||||
pkgs.vimUtils.buildVimPluginFrom2Nix {
|
pkgs.vimUtils.buildVimPluginFrom2Nix {
|
||||||
|
|
11
nixpkgs.nix
11
nixpkgs.nix
|
@ -1,7 +1,6 @@
|
||||||
{
|
{ system ? builtins.currentSystem
|
||||||
system ? builtins.currentSystem,
|
, config ? { }
|
||||||
config ? {},
|
, overlays ? [ ]
|
||||||
overlays ? [],
|
, ...
|
||||||
...
|
|
||||||
}@args:
|
}@args:
|
||||||
import (import ./default.nix).inputs.nixpkgs-unstable args
|
import (import ./default.nix).inputs.nixpkgs-unstable args
|
||||||
|
|
Loading…
Reference in New Issue