summary refs log tree commit diff stats
path: root/.github
Commit message (Expand)AuthorAgeFilesLines
* ISSUE_TEMPLATE: remove redundant linehut2017-12-301-2/+0
* ISSUE_TEMPLATE.md: consistent quote usagehut2017-12-301-1/+1
* Simplified github issue templatehut2017-12-301-38/+23
* core.main: `--version`: Report Python version and localenfnty2017-02-192-0/+4
* GitHub issue templates: Minor reorder and rewordingnfnty2017-01-172-6/+6
* GitHub issue templates: Add terminal emulatornfnty2017-01-162-6/+8
* GitHub issue templates: Reorder and improve editabilitynfnty2017-01-162-49/+62
* GitHub issue templates: Add extra spacesnfnty2017-01-162-11/+18
* Added GitHub issue templatesnfnty2017-01-162-0/+76
* Revert "Add github issue/PR templates"hut2016-08-272-14/+0
* Add github issue/PR templateshut2016-08-272-0/+14
t .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/sh

[ -f ~/.config/sops/age/keys.txt ] || ( echo "Age key not present, aborting." ; exit 1 )

[ -e ~/dotfiles ] || git clone git@codeberg.org:djm/dotfiles.git

if [ -x "$(command -v nixos-version)" ]; then
  # On NixOS use the hm version corresponding to the NixOS version, and add nixos-unstable as unstable
  nix-channel --add https://github.com/nix-community/home-manager/archive/release-$(nixos-version | cut -d. -f1-2).tar.gz home-manager
  nix-channel --add https://nixos.org/channels/nixos-unstable unstable
else
  # On other systems use master, and add nixpkgs-unstable as unstable for compatibility between NixOS and non-NixOS installations
  nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
  nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable
fi

nix-channel --add https://github.com/Mic92/sops-nix/archive/master.tar.gz sops-nix

nix-channel --update

export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
nix-shell '<home-manager>' -A install

HOME_CONF="$HOME/dotfiles/nix-conf/home/${CONF:-${HOST}}.nix"
[ -f $HOME_CONF ] && ln -sf $HOME_CONF ~/.config/home-manager/home.nix
ln -sf ~/dotfiles/.p10k.zsh ~/
ln -sf ~/dotfiles/.emacs.d ~/

home-manager switch

if [ "$(uname 2> /dev/null)" = "Darwin"  ]; then
  ln -sf ~/.nix-profile/Applications/Emacs.app /Applications/
  ln -sf ~/.nix-profile/lib/pam /usr/local/lib/pam
fi