From 9031c734d2702792fb0e6528694033e8976af713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Tue, 6 Jan 2026 01:54:26 +0100 Subject: [PATCH] Remove unused --- lib/default.nix | 14 ------------- modules/flake/lib/homes.nix | 13 ------------ modules/flake/lib/secrets.nix | 10 ---------- shells/deploy/Justfile | 37 ----------------------------------- shells/deploy/default.nix | 20 ------------------- 5 files changed, 94 deletions(-) delete mode 100644 lib/default.nix delete mode 100644 modules/flake/lib/homes.nix delete mode 100644 modules/flake/lib/secrets.nix delete mode 100644 shells/deploy/Justfile delete mode 100644 shells/deploy/default.nix diff --git a/lib/default.nix b/lib/default.nix deleted file mode 100644 index 0254b7a..0000000 --- a/lib/default.nix +++ /dev/null @@ -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; -} diff --git a/modules/flake/lib/homes.nix b/modules/flake/lib/homes.nix deleted file mode 100644 index 3dc5875..0000000 --- a/modules/flake/lib/homes.nix +++ /dev/null @@ -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}"; - }; -} diff --git a/modules/flake/lib/secrets.nix b/modules/flake/lib/secrets.nix deleted file mode 100644 index e94a613..0000000 --- a/modules/flake/lib/secrets.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ - inputs, - lib, - ... -}: let - inherit (inputs) self; -in { - mkSecret = config: { - }; -} diff --git a/shells/deploy/Justfile b/shells/deploy/Justfile deleted file mode 100644 index 63b816d..0000000 --- a/shells/deploy/Justfile +++ /dev/null @@ -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}} diff --git a/shells/deploy/default.nix b/shells/deploy/default.nix deleted file mode 100644 index 41757a0..0000000 --- a/shells/deploy/default.nix +++ /dev/null @@ -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}" - ''; -}