Pallas: fixes
This commit is contained in:
parent
cb87e84978
commit
e95ac132b7
5 changed files with 12 additions and 6 deletions
|
@ -1,8 +1,11 @@
|
||||||
{ pkgs, lib, config, ... }:
|
args@{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
secret = import ../../secret/hosts/Pallas.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
#../config/fonts
|
../config/fonts
|
||||||
|
|
||||||
../programs/fish.nix
|
../programs/fish.nix
|
||||||
../programs/nushell.nix
|
../programs/nushell.nix
|
||||||
|
@ -29,7 +32,7 @@
|
||||||
|
|
||||||
../programs/jq.nix
|
../programs/jq.nix
|
||||||
|
|
||||||
#(import ../programs/firefox.nix (args // { inherit secret; }))
|
(import ../programs/firefox.nix (args // { inherit secret; }))
|
||||||
|
|
||||||
../programs/scripts.nix
|
../programs/scripts.nix
|
||||||
|
|
||||||
|
|
|
@ -84,8 +84,10 @@ in
|
||||||
|
|
||||||
switch $os
|
switch $os
|
||||||
case Darwin
|
case Darwin
|
||||||
|
set -f nix_hostname (scutil --get LocalHostName)
|
||||||
set -f config_dir "$HOME/.config/nixpkgs"
|
set -f config_dir "$HOME/.config/nixpkgs"
|
||||||
case Linux
|
case Linux
|
||||||
|
set -f nix_hostname (hostname -s)
|
||||||
set -f config_dir /etc/nixos
|
set -f config_dir /etc/nixos
|
||||||
case '*'
|
case '*'
|
||||||
echo "Unsupported OS"
|
echo "Unsupported OS"
|
||||||
|
@ -100,7 +102,7 @@ in
|
||||||
end
|
end
|
||||||
|
|
||||||
if test "$other_hostname" = ""
|
if test "$other_hostname" = ""
|
||||||
just deploy-local-machine (hostname -s)
|
just deploy-local-machine "$nix_hostname"
|
||||||
else
|
else
|
||||||
just deploy-remote-machine "$other_hostname"
|
just deploy-remote-machine "$other_hostname"
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
set -f nix_os (uname)
|
set -f nix_os (uname)
|
||||||
set -f nix_hostname (hostname -s)
|
|
||||||
set -f other_hostname $argv[1]
|
set -f other_hostname $argv[1]
|
||||||
|
|
||||||
switch $nix_os
|
switch $nix_os
|
||||||
case Darwin
|
case Darwin
|
||||||
|
set -f nix_hostname (scutil --get LocalHostName)
|
||||||
set -f config_dir "$HOME/.config/nixpkgs"
|
set -f config_dir "$HOME/.config/nixpkgs"
|
||||||
case Linux
|
case Linux
|
||||||
|
set -f nix_hostname (hostname -s)
|
||||||
set -f config_dir /etc/nixos
|
set -f config_dir /etc/nixos
|
||||||
case '*'
|
case '*'
|
||||||
echo "Unsupported OS"
|
echo "Unsupported OS"
|
||||||
|
|
Binary file not shown.
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
current_user="$USER"
|
current_user="$USER"
|
||||||
sudo -H mkdir -p /opt/homebrew/bin
|
sudo -H mkdir -p /opt/homebrew/bin
|
||||||
sudo -H chown $current_user:staff /opt/homebrew/bin
|
sudo -H chown "$current_user:staff" /opt/homebrew/bin
|
||||||
|
|
||||||
sudo -H -u "$current_user" ln -sfn ${lib.getExe pkgs.python3} /opt/homebrew/bin/python3
|
sudo -H -u "$current_user" ln -sfn ${lib.getExe pkgs.python3} /opt/homebrew/bin/python3
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue