mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 23:05:38 +00:00
fix: add readme and fix installer apps
This commit is contained in:
parent
79f8e621e6
commit
99f1777827
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
type = "app";
|
type = "app";
|
||||||
|
|
||||||
program = pkgs.writeShellScriptBin "installer" ''
|
program = builtins.toString (pkgs.writeShellScript "installer" ''
|
||||||
#!${pkgs.stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
@ -39,6 +39,6 @@
|
|||||||
mount /dev/disk/by-label/boot /mnt/boot
|
mount /dev/disk/by-label/boot /mnt/boot
|
||||||
|
|
||||||
nixos-install --flake github:nmasur/dotfiles#''${FLAKE}
|
nixos-install --flake github:nmasur/dotfiles#''${FLAKE}
|
||||||
'';
|
'');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
11
apps/readme.nix
Normal file
11
apps/readme.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
|
||||||
|
type = "app";
|
||||||
|
|
||||||
|
program = builtins.toString (pkgs.writeShellScript "readme" ''
|
||||||
|
#!${pkgs.stdenv.shell}
|
||||||
|
|
||||||
|
${pkgs.glow}/bin/glow ${builtins.toString ../README.md}
|
||||||
|
'');
|
||||||
|
|
||||||
|
}
|
12
flake.nix
12
flake.nix
@ -69,10 +69,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Format and install from nothing
|
|
||||||
apps = forAllSystems (system:
|
apps = forAllSystems (system:
|
||||||
let pkgs = import nixpkgs { inherit system; };
|
let pkgs = import nixpkgs { inherit system; };
|
||||||
in { installer = import ./apps/installer.nix { inherit pkgs; }; });
|
in rec {
|
||||||
|
default = readme;
|
||||||
|
|
||||||
|
# Format and install from nothing
|
||||||
|
installer = import ./apps/installer.nix { inherit pkgs; };
|
||||||
|
|
||||||
|
# Display the readme for this repository
|
||||||
|
readme = import ./apps/readme.nix { inherit pkgs; };
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
# Used to run commands and edit files in this repo
|
# Used to run commands and edit files in this repo
|
||||||
devShells = forAllSystems (system:
|
devShells = forAllSystems (system:
|
||||||
|
Loading…
Reference in New Issue
Block a user