Remove unused
This commit is contained in:
parent
308ec3fb32
commit
9031c734d2
5 changed files with 0 additions and 94 deletions
|
|
@ -1,14 +0,0 @@
|
||||||
{lib, ...} @ all: rec {
|
|
||||||
rootPath = ./..;
|
|
||||||
secret = name: ./../secrets/${name};
|
|
||||||
|
|
||||||
writeNushellApplication = import ./writeNushellApplication.nix {inherit lib;};
|
|
||||||
|
|
||||||
# Determines the file location of the passed in attr set (e.g. `{ sep = "#"; })
|
|
||||||
# and prepends the string with it. This allows to add references to the source
|
|
||||||
# file that wrote any setting to generated application configurations for debugging.
|
|
||||||
selfReferencedString = {sep} @ attrs: str: let
|
|
||||||
ref = builtins.unsafeGetAttrPos "sep" attrs;
|
|
||||||
in
|
|
||||||
"${sep} ${ref.file}:${builtins.toString ref.line}\n" + str;
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
{inputs, ...}: let
|
|
||||||
inherit (inputs) self;
|
|
||||||
in {
|
|
||||||
mkHome = user: host: {
|
|
||||||
imports = [
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
];
|
|
||||||
|
|
||||||
users.users.${user}.isNormalUser = true;
|
|
||||||
|
|
||||||
home-manager.users.${user} = inputs.self.homeConfigurations."${user}@${host}";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (inputs) self;
|
|
||||||
in {
|
|
||||||
mkSecret = config: {
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
default:
|
|
||||||
@just --list --justfile {{justfile()}}
|
|
||||||
|
|
||||||
# Inspect the disk configuration compiled by disko.
|
|
||||||
[no-cd]
|
|
||||||
disk-test host:
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euxo pipefail
|
|
||||||
build_path=$(disko --dry-run --flake "$(pwd)#{{host}}" | tail -n 1)
|
|
||||||
less $build_path
|
|
||||||
|
|
||||||
# Deploys the disk configuration. This will reformat and mount the disk.
|
|
||||||
[no-cd]
|
|
||||||
disk host:
|
|
||||||
sudo disko --flake "$(pwd)#{{host}}" -m destroy,format,mount
|
|
||||||
|
|
||||||
# Mounts the configured disk. Useful for when the disk is already formatted.
|
|
||||||
[no-cd]
|
|
||||||
mount host:
|
|
||||||
sudo disko --flake "$(pwd)#{{host}}" -m mount
|
|
||||||
|
|
||||||
# Installs NixOS onto the drives previously mounted by disko.
|
|
||||||
[no-cd]
|
|
||||||
install host:
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
sudo nixos-install --flake "$(pwd)#{{host}}"
|
|
||||||
|
|
||||||
# Deploys the dotfile repository to the host.
|
|
||||||
[no-cd]
|
|
||||||
config host user:
|
|
||||||
cp -R $(pwd) "/mnt/nix/elements"
|
|
||||||
|
|
||||||
# send-key:
|
|
||||||
# croc send ~/.ssh/id_key
|
|
||||||
|
|
||||||
# receive-key phrase:
|
|
||||||
# croc {{phrase}}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.mkShell {
|
|
||||||
packages = with pkgs; [
|
|
||||||
just
|
|
||||||
croc
|
|
||||||
inputs.disko.packages.${pkgs.system}.disko
|
|
||||||
helix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Define an alias to use a Justfile specifically with
|
|
||||||
# deployment tooling enabled.
|
|
||||||
shellHook = ''
|
|
||||||
alias elements="just -f ${././Justfile}"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue