Fix syntax error in flake

This commit is contained in:
Daniel Flanagan 2023-07-27 12:51:48 -05:00
parent bf7e4e9e03
commit 1a477e2137
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 21 additions and 2 deletions

View file

@ -23,6 +23,25 @@ if test -f $HOME/.nix-profile/etc/profile.d/nix.fish
. $HOME/.nix-profile/etc/profile.d/nix.fish . $HOME/.nix-profile/etc/profile.d/nix.fish
end end
if test -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
# for determinate systems install
set nix_profiles /nix/var/nix/profiles/default $HOME/.nix-profile
set --export --universal NIX_PROFILES "$nix_profiles"
if set -q NIX_SSL_CERT_FILE
:
else if test -e /etc/ssl/certs/ca-certificates.crt
set --export --universal NIX_SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt
else
for p in (string split $NIX_PROFILES)
test -e $p/etc/ssl/certs/ca-bundle.crt && \
set --export --universal NIX_SSL_CERT_FILE $p/etc/ssl/certs/ca-bundle.crt
end
end
set --prepend --export --global fish_user_paths $HOME/.nix-profile/bin /nix/var/nix/profiles/default/bin
end
if has_command nnn if has_command nnn
source $DOTFILES_PATH/common/nnn/config.fish source $DOTFILES_PATH/common/nnn/config.fish
end end

View file

@ -21,7 +21,7 @@
sops-nix = { sops-nix = {
url = "github:Mic92/sops-nix"; url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
} };
}; };
outputs = inputs: { outputs = inputs: {
@ -31,7 +31,7 @@
modules = [ modules = [
./machines/beefcake.nix ./machines/beefcake.nix
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
} }