add deploy-to-pianopi script as snowfall package
This commit is contained in:
parent
d50f957b2e
commit
fb79b29fa2
@ -30,12 +30,12 @@
|
|||||||
snowfall = {
|
snowfall = {
|
||||||
# The root of the snowfall config
|
# The root of the snowfall config
|
||||||
root = ./.;
|
root = ./.;
|
||||||
# lib namespace
|
# lib, package and overlay namespace
|
||||||
namepace = "frajul";
|
namepace = "frajul";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
# name = "my home configs name";
|
name = "Julian's dotfiles";
|
||||||
# title = "my home configs title";
|
title = "Julian's dotfiles";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -48,16 +48,21 @@ config, ... }: {
|
|||||||
# Rust setup
|
# Rust setup
|
||||||
rustc
|
rustc
|
||||||
cargo
|
cargo
|
||||||
|
clippy
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
|
|
||||||
# Further tools
|
# Further tools
|
||||||
lazygit
|
|
||||||
|
# (lib.internal.my-helper-function lazygit)
|
||||||
|
|
||||||
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
||||||
|
|
||||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||||
# echo "Hello, ${config.home.username}!"
|
# echo "Hello, ${config.home.username}!"
|
||||||
# '')
|
# '')
|
||||||
|
|
||||||
|
## My scripts
|
||||||
|
pkgs.internal.deploy-to-pianopi
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
|
24
packages/deploy-to-pianopi/default.nix
Normal file
24
packages/deploy-to-pianopi/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
||||||
|
# as well as the libraries available from your flake's inputs.
|
||||||
|
lib,
|
||||||
|
# You also have access to your flake's inputs.
|
||||||
|
inputs,
|
||||||
|
|
||||||
|
# All other arguments come from NixPkgs. You can use `pkgs` to pull packages or helpers
|
||||||
|
# programmatically or you may add the named attributes as arguments here.
|
||||||
|
pkgs, stdenv, ... }:
|
||||||
|
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "deploy-to-pianopi";
|
||||||
|
|
||||||
|
runtimeInputs = with pkgs; [ rsync ];
|
||||||
|
|
||||||
|
text = ''
|
||||||
|
set -x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
nix build .#defaultPackage.aarch64-linux
|
||||||
|
rsync -a result/bin/ julian@pianopi.local:/home/julian/.local/bin
|
||||||
|
'';
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user