add build recipe in justfile
This commit is contained in:
parent
de118840bd
commit
17ba6c7e05
5 changed files with 13 additions and 4 deletions
6
Justfile
Normal file → Executable file
6
Justfile
Normal file → Executable file
|
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env -S just --justfile
|
||||
|
||||
FLAKE_HOME := justfile_directory()
|
||||
DEFAULT_SPECIALISATION := "default"
|
||||
|
||||
|
|
@ -10,6 +12,9 @@ switch specialisation=DEFAULT_SPECIALISATION:
|
|||
update:
|
||||
nix flake update --log-format internal-json 2>&1 | nom --json
|
||||
|
||||
build specialisation=DEFAULT_SPECIALISATION:
|
||||
nh os build {{ FLAKE_HOME }} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }}
|
||||
|
||||
deploy host:
|
||||
deploy {{ FLAKE_HOME }}#{{ host }}
|
||||
|
||||
|
|
@ -24,3 +29,4 @@ alias u := update
|
|||
alias d := deploy
|
||||
alias c := clean
|
||||
alias h := health
|
||||
alias b := build
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@
|
|||
gitoxide
|
||||
viu
|
||||
fd
|
||||
just
|
||||
];
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -69,6 +69,5 @@
|
|||
kdePackages.kdenlive
|
||||
fd
|
||||
viu
|
||||
just
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
home.packages = with pkgs; [
|
||||
spacer
|
||||
devenv
|
||||
just
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf mkMerge;
|
||||
fish-cfg = config.youthlic.programs.fish;
|
||||
|
|
@ -19,7 +23,7 @@ in
|
|||
options = {
|
||||
youthlic.programs = {
|
||||
fish = {
|
||||
enable =mkEnableOption "fish";
|
||||
enable = mkEnableOption "fish";
|
||||
};
|
||||
bash = {
|
||||
enable = mkEnableOption "bash";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue