From fcc65505d0fe8003d7b09ccf8f13435dc1cd0654 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 8 Aug 2025 02:07:21 +0100 Subject: [PATCH] Add `fixapost` --- flake.lock | 17 +++++++++++++++++ flake.nix | 5 +++++ modules2/hosts/t480/fixapost.nix | 17 +++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 modules2/hosts/t480/fixapost.nix diff --git a/flake.lock b/flake.lock index 5586768f..b51f4750 100644 --- a/flake.lock +++ b/flake.lock @@ -508,11 +508,28 @@ "nixpkgs-stable": "nixpkgs-stable", "nixvim": "nixvim", "nur": "nur", + "rwxrob-dot": "rwxrob-dot", "standard-vim": "standard-vim", "vim-heritage": "vim-heritage", "vim-textobj-xmlattr": "vim-textobj-xmlattr" } }, + "rwxrob-dot": { + "flake": false, + "locked": { + "lastModified": 1751898094, + "narHash": "sha256-kGpHL2l9p/yOtmG+AZvOb0Y5mH1d+Zoh2dd5N3Xjizc=", + "owner": "rwxrob", + "repo": "dot", + "rev": "90794c77061f270078e847af45c376610768c6e2", + "type": "github" + }, + "original": { + "owner": "rwxrob", + "repo": "dot", + "type": "github" + } + }, "standard-vim": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index 5964ef73..e98f64fa 100644 --- a/flake.nix +++ b/flake.nix @@ -60,6 +60,11 @@ url = "github:nix-community/NUR"; }; + rwxrob-dot = { + flake = false; + url = "github:rwxrob/dot"; + }; + standard-vim = { flake = false; url = "github:tjdevries/standard.vim"; diff --git a/modules2/hosts/t480/fixapost.nix b/modules2/hosts/t480/fixapost.nix new file mode 100644 index 00000000..23cb55fb --- /dev/null +++ b/modules2/hosts/t480/fixapost.nix @@ -0,0 +1,17 @@ +{ inputs, ... }: + +{ + flake.modules.homeManager.base = + { pkgs, ... }: + { + home.packages = [ + (pkgs.writeShellApplication rec { + name = "fixapost"; + + runtimeInputs = [ pkgs.coreutils ]; + + text = builtins.readFile "${inputs.rwxrob-dot}/scripts/${name}"; + }) + ]; + }; +}