From 59def1c53106a1e402185e4771b3e53316dd1fa4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 12 Jan 2020 18:14:27 -0500 Subject: [PATCH] Update copyright year --- LICENSE | 2 +- deploy | 37 ------------------------------------- 2 files changed, 1 insertion(+), 38 deletions(-) delete mode 100755 deploy diff --git a/LICENSE b/LICENSE index 02b93bee..cb8f2620 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016-2019 Henrik Lissner. +Copyright (c) 2016-2020 Henrik Lissner. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/deploy b/deploy deleted file mode 100755 index 77d6db67..00000000 --- a/deploy +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash -set -e - -DOTFILES="$(cd $(dirname "${BASH_SOURCE:-${(%):-%x}}") && pwd -P)" -PREFIX="${PREFIX:-/mnt}" -NIXOSPREFIX="${PREFIX}/etc/nixos" -NIXOSFLAGS="-I 'config=$DOTFILES/config' -I 'packages=$DOTFILES/packages'" -HOST=${1:-${HOST:-kuro}} - -if [ $EUID -nq 0 ]; then - sudo nix-channel --update - sudo nixos-rebuild $NIXOSFLAGS switch -else - if [ ! -f "$DOTFILES/configuration.$HOST.nix" ]; then - >&2 echo "No configuration exists for host '$HOST'" - exit 1 - fi - - mkdir -p "$NIXOSPREFIX" - cat << EOF > "$NIXOSPREFIX/configuration.nix" -{ config, ... }: -{ - imports = [ - ../dotfiles/configuration.$HOST.nix - ./hardware-configuration.nix - ]; -} -EOF - - nix-channel --add https://nixos.org/channels/nixos-19.09 nixos - nix-channel --add https://github.com/rycee/home-manager/archive/release-19.09.tar.gz home-manager - nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable - nix-channel --update - - nixos-generate-config --root "$PREFIX" - nixos-install --root "$PREFIX" $NIXOSFLAGS -fi