change formatter to nixfmt

This commit is contained in:
Timothy DeHerrera 2020-01-03 22:06:31 -07:00
parent 916add2921
commit 16b8136f50
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
31 changed files with 226 additions and 420 deletions

View File

@ -151,7 +151,7 @@ the `template` branch to provide a host of useful NixOS configurations available
"out of the box". If you wish to contribute such an expression please follow
these guidelines:
* format your code with [`nixpkgs-fmt`][nixpkgs-fmt]
* format your code with [`nixfmt`][nixfmt]
* The commit message follows the same semantics as [nixpkgs][nixpkgs].
* You can use a `#` symbol to specify abiguities. For example,
`develop#zsh: <rest of commit message>` would tell me that your updating the
@ -173,7 +173,7 @@ licenses of the respective packages.
[direnv]: https://direnv.net
[home-manager]: https://github.com/rycee/home-manager
[NixOS]: https://nixos.org
[nixpkgs-fmt]: https://github.com/nix-community/nixpkgs-fmt
[nixfmt]: https://github.com/serokell/nixfmt
[nixpkgs]: https://github.com/NixOS/nixpkgs
[old]: https://github.com/nrdxp/nixos
[pr]: https://github.com/NixOS/nixpkgs/pull/68897

View File

@ -5,23 +5,22 @@
let
hostname = lib.fileContents /etc/hostname;
host = "/etc/nixos/hosts/${hostname}.nix";
config =
if (builtins.pathExists host)
then [ host ]
else [ /etc/nixos/hosts/NixOS.nix ];
in
{
config = if (builtins.pathExists host) then
[ host ]
else
[ /etc/nixos/hosts/NixOS.nix ];
in {
imports = builtins.attrValues (import ./modules) ++ [
"${builtins.fetchTarball https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos"
"${
builtins.fetchTarball
"https://github.com/rycee/home-manager/archive/master.tar.gz"
}/nixos"
/etc/nixos/profiles/core.nix
] ++ config;
networking.hostName = hostname;
nix.nixPath = [
"nixpkgs=${<nixpkgs>}"
"nixos-config=/etc/nixos/configuration.nix"
];
nix.nixPath =
[ "nixpkgs=${<nixpkgs>}" "nixos-config=/etc/nixos/configuration.nix" ];
nixpkgs.overlays = lib.singleton (import ./pkgs);
}

View File

@ -6,18 +6,16 @@
inputs.nixpkgs.url = "github:nrdxp/nixpkgs/fork";
inputs.home.url = "github:nrdxp/home-manager/flakes";
outputs = args@{ self, home, nixpkgs }: let
outputs = args@{ self, home, nixpkgs }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = self.overlays;
};
in
{
nixosConfigurations = let
configs = import ./hosts args;
in {
nixosConfigurations = let configs = import ./hosts args;
in
configs;
in configs;
overlay = import ./pkgs;
@ -27,8 +25,6 @@
inherit (pkgs) sddm-chili dejavu_nerdfont purs;
};
nixosModules = (import ./modules) // {
profiles = import ./profiles;
};
nixosModules = (import ./modules) // { profiles = import ./profiles; };
};
}

View File

@ -1,6 +1 @@
{
imports = [
../profiles/develop
../profiles/misc
];
}
{ imports = [ ../profiles/develop ../profiles/misc ]; }

View File

@ -2,15 +2,9 @@ args@{ home, nixpkgs, self, ... }:
let
utils = import ../lib/utils.nix { lib = nixpkgs.lib; };
inherit (utils)
recImport
;
inherit (builtins)
attrValues
removeAttrs
;
inherit (utils) recImport;
inherit (builtins) attrValues removeAttrs;
config = this:
nixpkgs.lib.nixosSystem rec {
@ -32,20 +26,15 @@ let
local = import "${toString ./.}/${this}.nix";
flakeModules = removeAttrs self.nixosModules
[ "profiles" ];
flakeModules = removeAttrs self.nixosModules [ "profiles" ];
in
attrValues flakeModules ++ [
core
global
local
home.nixosModules.home-manager
];
in attrValues flakeModules
++ [ core global local home.nixosModules.home-manager ];
};
hosts =
recImport { dir = ./.; _import = config; };
in
hosts
hosts = recImport {
dir = ./.;
_import = config;
};
in hosts

View File

@ -1,9 +1,5 @@
{ modulesPath, ... }:
{
imports = [
./NixOS.nix
"${modulesPath}/installer/cd-dvd/iso-image.nix"
];
{ modulesPath, ... }: {
imports = [ ./NixOS.nix "${modulesPath}/installer/cd-dvd/iso-image.nix" ];
isoImage.makeEfiBootable = true;
isoImage.makeUsbBootable = true;

View File

@ -1,49 +1,23 @@
{ lib, ... }:
let
inherit (builtins)
attrNames
isAttrs
readDir
;
inherit (builtins) attrNames isAttrs readDir;
inherit (lib) filterAttrs hasSuffix mapAttrs' nameValuePair removeSuffix;
inherit (lib)
filterAttrs
hasSuffix
mapAttrs'
nameValuePair
removeSuffix
;
in
rec {
in rec {
# mapFilterAttrs ::
# (name -> value -> bool )
# (name -> value -> { name = any; value = any; })
# attrs
mapFilterAttrs = seive: f: attrs:
filterAttrs seive (mapAttrs' f attrs);
mapFilterAttrs = seive: f: attrs: filterAttrs seive (mapAttrs' f attrs);
recImport =
{ dir
, _import ? base: import "${dir}/${base}.nix"
}:
mapFilterAttrs
(_: v: v != null)
(
n: v:
if
n != "default.nix"
&& hasSuffix ".nix" n
&& v == "regular"
recImport = { dir, _import ? base: import "${dir}/${base}.nix" }:
mapFilterAttrs (_: v: v != null) (n: v:
if n != "default.nix" && hasSuffix ".nix" n && v == "regular"
then let
name = removeSuffix ".nix" n;
in
nameValuePair (name) (_import name)
then
let name = removeSuffix ".nix" n; in nameValuePair (name) (_import name)
else
nameValuePair ("") (null)
)
(readDir dir);
nameValuePair ("") (null)) (readDir dir);
}

View File

@ -1,5 +1,4 @@
{ ... }:
{
{ ... }: {
i18n.defaultLocale = "en_US.UTF-8";
time.timeZone = "America/Denver";
}

View File

@ -1,3 +1 @@
{
qbittorrent-nox = import ./services/torrent/qbittorrent.nix;
}
{ qbittorrent-nox = import ./services/torrent/qbittorrent.nix; }

View File

@ -4,8 +4,7 @@ let
cfg = config.services.qbittorrent;
configDir = "${cfg.dataDir}/.config";
openFilesLimit = 4096;
in
{
in {
options.services.qbittorrent = {
enable = mkOption {
type = types.bool;
@ -68,11 +67,9 @@ in
environment.systemPackages = [ pkgs.qbittorrent ];
nixpkgs.overlays = [
(
self: super: {
(self: super: {
qbittorrent = super.qbittorrent.override { guiSupport = false; };
}
)
})
];
networking.firewall = mkIf cfg.openFirewall {
@ -110,10 +107,7 @@ in
};
};
users.groups = mkIf (cfg.group == "qbittorrent") {
qbittorrent = {
gid = null;
};
};
users.groups =
mkIf (cfg.group == "qbittorrent") { qbittorrent = { gid = null; }; };
};
}

View File

@ -5,7 +5,8 @@ stdenv.mkDerivation rec {
version = "2.0.0";
src = fetchzip {
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/DejaVuSansMono.zip";
url =
"https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/DejaVuSansMono.zip";
hash = "sha256-yMvKzt5CKpK1bThT25lqSyRvZRCFvo6HHbTj+ripdCo=";
stripRoot = false;
};
@ -15,7 +16,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "Nerdfont version of DejaVu";
homepage = https://github.com/ryanoasis/nerd-fonts;
homepage = "https://github.com/ryanoasis/nerd-fonts";
license = licenses.mit;
maintainers = [ maintainers.nrdxp ];
inherit version;

View File

@ -1,5 +1,6 @@
final: prev: {
sddm-chili = prev.callPackage ./applications/display-managers/sddm/themes/chili {};
sddm-chili =
prev.callPackage ./applications/display-managers/sddm/themes/chili { };
dejavu_nerdfont = prev.callPackage ./data/fonts/dejavu-nerdfont { };
purs = prev.callPackage ./shells/zsh/purs { };
}

View File

@ -2,15 +2,10 @@
with rustPlatform;
let
inherit (builtins)
readFile
toFile
;
inherit (builtins) readFile toFile;
init = toFile "init.sh" "${readFile ./init.sh}";
in
buildRustPackage rec {
in buildRustPackage rec {
pname = "purs";
version = "0.1.0";
@ -21,10 +16,7 @@ buildRustPackage rec {
hash = "sha256-QwkbqNROksRo+QmRrgkWuoPzPb2XBwavEtlR9oqAXDQ=";
};
buildInputs = [
openssl
pkgconfig
];
buildInputs = [ openssl pkgconfig ];
cargoSha256 = "sha256-vyO2JRRA7FCNVmIeN1xybQXkdgoHbhMGT2AhUJEnp0s=";
@ -37,7 +29,7 @@ buildRustPackage rec {
meta = with stdenv.lib; {
description = "A Pure-inspired prompt in Rust";
homepage = https://github.com/xcambar/purs;
homepage = "https://github.com/xcambar/purs";
maintainers = [ maintainers.nrdxp ];
license = licenses.mit;
inherit version;

View File

@ -1,24 +1,12 @@
{ config, lib, pkgs, ... }:
let
inherit (lib)
fileContents
;
let inherit (lib) fileContents;
in
{
in {
nix.package = pkgs.nixFlakes;
nix.systemFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
imports = [
../local/locale.nix
];
nix.systemFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
imports = [ ../local/locale.nix ];
boot = {
@ -30,7 +18,6 @@ in
};
environment = {
systemPackages = with pkgs; [
@ -51,10 +38,9 @@ in
utillinux
];
shellAliases = let
ifSudo = string: lib.mkIf config.security.sudo.enable string;
in
{
shellAliases =
let ifSudo = string: lib.mkIf config.security.sudo.enable string;
in {
# quick cd
".." = "cd ..";
"..." = "cd ../..";
@ -101,13 +87,8 @@ in
};
fonts = {
fonts = with pkgs; [
powerline-fonts
dejavu_fonts
];
fonts = with pkgs; [ powerline-fonts dejavu_fonts ];
fontconfig.defaultFonts = {
@ -118,7 +99,6 @@ in
};
};
nix = {
autoOptimiseStore = true;
@ -139,10 +119,8 @@ in
};
nixpkgs.config.allowUnfree = true;
security = {
hideProcessInformation = true;
@ -151,10 +129,8 @@ in
};
services.earlyoom.enable = true;
users = {
mutableUsers = false;

View File

@ -1,14 +1,7 @@
{ pkgs, ... }:
{
imports = [
./zsh
./kakoune
./tmux
];
{ pkgs, ... }: {
imports = [ ./zsh ./kakoune ./tmux ];
environment.shellAliases = {
v = "$EDITOR";
};
environment.shellAliases = { v = "$EDITOR"; };
environment.sessionVariables = {
PAGER = "less";
@ -32,9 +25,8 @@
fonts = {
fonts = [ pkgs.dejavu_nerdfont ];
fontconfig.defaultFonts.monospace = [
"DejaVu Sans Mono Nerd Font Complete Mono"
];
fontconfig.defaultFonts.monospace =
[ "DejaVu Sans Mono Nerd Font Complete Mono" ];
};
documentation.dev.enable = true;

View File

@ -1,11 +1,10 @@
{ pkgs, ... }:
{
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
cquery
kak-lsp
kakoune-config
kakoune-unwrapped
nixpkgs-fmt
nixfmt
python3Packages.python-language-server
rustup
];
@ -15,7 +14,8 @@
"xdg/kak/autoload/plugins".source = ./plugins;
"xdg/kak/autoload/lint".source = ./lint;
"xdg/kak/autoload/lsp".source = ./lsp;
"xdg/kak/autoload/default".source = "${pkgs.kakoune-unwrapped}/share/kak/rc";
"xdg/kak/autoload/default".source =
"${pkgs.kakoune-unwrapped}/share/kak/rc";
};
nixpkgs.overlays = let
@ -33,8 +33,7 @@
XDG_CONFIG_HOME=/etc/xdg exec ${self.kakoune}/bin/kak "$@"
'';
kakoune-unwrapped = super.kakoune-unwrapped.overrideAttrs (
o: rec {
kakoune-unwrapped = super.kakoune-unwrapped.overrideAttrs (o: rec {
version = "2019.12.10";
src = super.fetchFromGitHub {
repo = "kakoune";
@ -42,9 +41,7 @@
rev = "v${version}";
hash = "sha256-TnRQ73bIQGavXNp+wrKtYHgGem+R6JDWt333z2izYzE=";
};
}
);
});
};
in
[ kak ];
in [ kak ];
}

View File

@ -12,7 +12,7 @@ hook -group lint global WinSetOption filetype=nix %{
} && run \
'
lint-enable
set buffer formatcmd "nixpkgs-fmt"
set buffer formatcmd "nixfmt"
hook buffer BufWritePre .* %{
format
lint

View File

@ -1,25 +1,14 @@
{ lib, pkgs, ... }:
let
inherit (builtins)
readFile
concatStringsSep
;
inherit (lib)
removePrefix
;
inherit (builtins) readFile concatStringsSep;
inherit (lib) removePrefix;
pluginConf = plugins:
concatStringsSep "\n\n"
(
map (
plugin: let
name = removePrefix "tmuxplugin-" plugin.name;
in
"run-shell ${plugin}/share/tmux-plugins/${name}/${name}.tmux"
) plugins
);
concatStringsSep "\n\n" (map (plugin:
let name = removePrefix "tmuxplugin-" plugin.name;
in "run-shell ${plugin}/share/tmux-plugins/${name}/${name}.tmux")
plugins);
plugins = with pkgs.tmuxPlugins; [
copycat
@ -28,11 +17,8 @@ let
yank
vim-tmux-navigator
];
in
{
environment.shellAliases = {
tx = "tmux new-session -A -s $USER";
};
in {
environment.shellAliases = { tx = "tmux new-session -A -s $USER"; };
programs.tmux = {
enable = true;

View File

@ -1,28 +1,22 @@
{ lib, pkgs, ... }:
let
inherit (builtins)
concatStringsSep
;
inherit (builtins) concatStringsSep;
inherit (lib) fileContents;
inherit (lib)
fileContents
;
in
{
in {
users.defaultUserShell = pkgs.zsh;
environment = {
sessionVariables = let
fd = "${pkgs.fd}/bin/fd -H";
in
{
sessionVariables = let fd = "${pkgs.fd}/bin/fd -H";
in {
BAT_PAGER = "less";
SKIM_ALT_C_COMMAND =
"while read line; do "
+ "line=\"'\${(Q)line}'\"; [[ -d \"'$line'\" ]] && echo \"'$line'\"; "
+ "done < $HOME/.cache/zsh-cdr/recent-dirs";
SKIM_ALT_C_COMMAND = let
alt_c_cmd = pkgs.writeScriptBin "cdr-skim.zsh" ''
#!${pkgs.zsh}/bin/zsh
${fileContents ./cdr-skim.zsh}
'';
in "${alt_c_cmd}/bin/cdr-skim.zsh";
SKIM_DEFAULT_COMMAND = fd;
SKIM_CTRL_T_COMMAND = fd;
};
@ -62,7 +56,6 @@ in
];
};
programs.zsh = {
enable = true;
@ -104,9 +97,7 @@ in
"${zsh-history-substring-search}/share/zsh-history-substring-search/zsh-history-substring-search.zsh"
];
source = map
(source: "source ${source}")
sources;
source = map (source: "source ${source}") sources;
functions = pkgs.stdenv.mkDerivation {
name = "zsh-functions";
@ -116,10 +107,8 @@ in
man = "${pkgs.man}";
exa = "${pkgs.exa}";
installPhase = let
basename = "\${file##*/}";
in
''
installPhase = let basename = "\${file##*/}";
in ''
mkdir $out
for file in $src/*; do
@ -129,17 +118,11 @@ in
'';
};
plugins = concatStringsSep "\n"
(
[
plugins = concatStringsSep "\n" ([
"${pkgs.any-nix-shell}/bin/any-nix-shell zsh --info-right | source /dev/stdin"
] ++ source
);
] ++ source);
in
''
in ''
${plugins}
fpath+=( ${functions} )

View File

@ -1,8 +1,6 @@
{ pkgs, ... }:
{
{ pkgs, ... }: {
imports = [ ../graphical ./udev.nix ];
environment.systemPackages = with pkgs;
[ retroarchBare steam steam-run ];
environment.systemPackages = with pkgs; [ retroarchBare steam steam-run ];
# fps games on laptop need this
services.xserver.libinput.disableWhileTyping = false;
@ -15,7 +13,5 @@
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
# improve wine performance
environment.sessionVariables = {
WINEDEBUG = "-all";
};
environment.sessionVariables = { WINEDEBUG = "-all"; };
}

View File

@ -1,14 +1,7 @@
{ config, pkgs, ... }:
let
inherit (builtins)
readFile
;
in
{
imports = [
./sway
../develop
];
let inherit (builtins) readFile;
in {
imports = [ ./sway ../develop ];
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
@ -35,9 +28,8 @@ in
gtk-icon-theme-name="Papirus-Adapta"
gtk-cursor-theme-name="Adwaita"
'';
in
[
(''${ pkgs.writeText "iconrc" "${gtk}" }'')
in [
("${pkgs.writeText "iconrc" "${gtk}"}")
"${pkgs.adapta-gtk-theme}/share/themes/Adapta/gtk-2.0/gtkrc"
"${pkgs.gnome3.gnome-themes-extra}/share/themes/Adwaita/gtk-2.0/gtkrc"
];
@ -88,6 +80,5 @@ in
libopus = prev.libopus;
};
};
in
[ overlay ];
in [ overlay ];
}

View File

@ -1,15 +1,11 @@
{ pkgs, ... }:
let
inherit (builtins) readFile;
in
{
let inherit (builtins) readFile;
in {
sound.enable = true;
environment = {
etc."xdg/qutebrowser/config.py".text = let
mpv = "${pkgs.mpv}/bin/mpv";
in
''
etc."xdg/qutebrowser/config.py".text = let mpv = "${pkgs.mpv}/bin/mpv";
in ''
${readFile ./config.py}
config.bind(',m', 'hint links spawn -d ${mpv} {hint-url}')
@ -18,12 +14,7 @@ in
sessionVariables.BROWSER = "qute";
systemPackages = with pkgs; [
qute
qutebrowser
mpv
youtubeDL
];
systemPackages = with pkgs; [ qute qutebrowser mpv youtubeDL ];
};
nixpkgs.overlays = let
@ -32,6 +23,5 @@ in
exec ${prev.qutebrowser}/bin/qutebrowser -C /etc/xdg/qutebrowser/config.py "$@"
'';
};
in
[ overlay ];
in [ overlay ];
}

View File

@ -1,17 +1,10 @@
{ lib, config, options, pkgs, ... }:
let
inherit (builtins)
readFile
;
inherit (builtins) readFile;
inherit (config.hardware)
pulseaudio
;
in
{
imports = [
../qutebrowser
];
inherit (config.hardware) pulseaudio;
in {
imports = [ ../qutebrowser ];
sound.enable = true;
@ -28,8 +21,8 @@ in
export _JAVA_AWT_WM_NONREPARENTING=1
'';
extraPackages = with pkgs; options.programs.sway.extraPackages.default
++ [
extraPackages = with pkgs;
options.programs.sway.extraPackages.default ++ [
dmenu
networkmanager_dmenu
qt5.qtwayland
@ -37,15 +30,14 @@ in
volnoti
wl-clipboard
(waybar.override { pulseSupport = pulseaudio.enable; })
]
;
];
};
environment.etc = {
"sway/config".text = let
volnoti = pkgs.writeScript "volnoti.sh" (import ./volnoti.nix { inherit pkgs; });
in
''
volnoti =
pkgs.writeScript "volnoti.sh" (import ./volnoti.nix { inherit pkgs; });
in ''
set $volume ${volnoti}
# set background
@ -88,7 +80,7 @@ in
documentation = [ "volnoti --help" ];
wantedBy = [ "sway-session.target" ];
script = ''${pkgs.volnoti}/bin/volnoti -n'';
script = "${pkgs.volnoti}/bin/volnoti -n";
serviceConfig = {
Restart = "always";
@ -98,27 +90,22 @@ in
nixpkgs.overlays = let
overlay = self: super: {
redshift = super.redshift.overrideAttrs (
o: {
redshift = super.redshift.overrideAttrs (o: {
src = super.fetchFromGitHub {
owner = "CameronNemo";
repo = "redshift";
rev = "39c162ca487a59857c2eac231318f4b28855798b";
sha256 = "1in27draskwwi097wiam26bx2szcf58297am3gkyng1ms3rz6i58";
};
}
);
wl-clipboard = super.wl-clipboard.overrideAttrs (
o: {
});
wl-clipboard = super.wl-clipboard.overrideAttrs (o: {
src = super.fetchFromGitHub {
owner = "bugaevc";
repo = "wl-clipboard";
rev = "c010972e6b0d2eb3002c49a6a1b5620ff5f7c910";
sha256 = "020l3jy9gsj6gablwdfzp1wfa8yblay3axdjc56i9q8pbhz7g12j";
};
}
);
});
};
in
[ overlay ];
in [ overlay ];
}

View File

@ -1,8 +1,6 @@
{ pkgs, ... }:
let
inherit (pkgs) alsaUtils bash gnugrep volnoti;
in
''
let inherit (pkgs) alsaUtils bash gnugrep volnoti;
in ''
#!${bash}/bin/bash
declare -i current=$(${alsaUtils}/bin/amixer get Master | ${gnugrep}/bin/grep -m1 -Po "[0-9]+(?=%)")

View File

@ -29,17 +29,14 @@ let
'';
};
whitelist = concatStringsSep "|" [
".*pirate(bay|proxy).*"
];
whitelist = concatStringsSep "|" [ ".*pirate(bay|proxy).*" ];
blacklist = concatStringsSep "\n0.0.0.0 " [
blacklist = concatStringsSep ''
0.0.0.0 '' [
"# auto-generated: must be first"
# starts here
];
in
{
networking.extraHosts = readFile "${hosts}/etc/hosts";
}
in { networking.extraHosts = readFile "${hosts}/etc/hosts"; }

View File

@ -1,8 +1,3 @@
{ ... }:
{
imports = [
./stubby.nix
./adblocking.nix
./make-linux-fast-again.nix
];
{ ... }: {
imports = [ ./stubby.nix ./adblocking.nix ./make-linux-fast-again.nix ];
}

View File

@ -2,13 +2,8 @@
{ pkgs, config, ... }:
let
inherit (builtins) readFile fetchurl;
cmdline = readFile (
fetchurl {
cmdline = readFile (fetchurl {
url = "https://make-linux-fast-again.com";
sha256 = "sha256:10diw5xn5jjx79nvyjqcpdpcqihnr3y0756fsgiv1nq7w28ph9w6";
}
);
in
{
boot.kernelParams = pkgs.lib.splitString " " cmdline;
}
});
in { boot.kernelParams = pkgs.lib.splitString " " cmdline; }

View File

@ -1,5 +1,4 @@
{ ... }:
{
{ ... }: {
services.plex = {
enable = true;
dataDir = "/srv/plex";

View File

@ -1,5 +1,4 @@
{ ... }:
{
{ ... }: {
services.stubby = {
enable = true;
upstreamServers = ''
@ -22,7 +21,6 @@
};
};
networking = {
networkmanager.dns = "none";
resolvconf.dnsExtensionMechanism = false;

View File

@ -2,8 +2,7 @@
let
inherit (config.services.qbittorrent) port;
inherit (lib) mkAfter;
in
{
in {
services.qbittorrent = {
enable = true;
group = "media";

View File

@ -15,14 +15,8 @@ let
nix run -vv ${configs}.$1.${build}.toplevel -c switch-to-configuration $2
fi
'';
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
git
git-crypt
nixFlakes
rebuild
];
in pkgs.mkShell {
nativeBuildInputs = with pkgs; [ git git-crypt nixFlakes rebuild ];
shellHook = ''
mkdir -p secrets
@ -37,6 +31,5 @@ pkgs.mkShell {
${current}
experimental-features = nix-command flakes ca-references
'';
in
"${nixConf}/opt";
in "${nixConf}/opt";
}