1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00
Commit Graph

51 Commits

Author SHA1 Message Date
David Arnold
a253fda655 ref: reorganise exported confenience modules & overlays 2022-02-23 15:23:14 -08:00
David Arnold
b90ad83d83 satisfy pre-commit hook (editorconfig / format) 2022-02-23 15:23:14 -08:00
David Arnold
5eb849f0f6 nixConfig: setup the nix configuration
Users may not have setup their nix correctly. This ensures they have the
proper features and caches setup when they use this repo.

We currently have not entire clarity wether all `nixConig` flake options
work. At some point in time `nix` support was limited.

Therefore, we implement an NIX_CONFIG fallback (at least) in the devshell

supersedes #69
2022-02-23 15:23:14 -08:00
David Arnold
4a4a6ee1c1 imp: add proper nix patching
It is very likely that some digga functionality requires patches to nix

Create a place for patches that mimicks the way how they could be
applied once `inputs.<name>.patches` of the
UFR (Unofficial Flakes Roadmap) is implemented.

Also showcase how `nixConfig` can add extra feature flags (without
overriding the patched-in ones).
2022-02-23 15:23:14 -08:00
David Arnold
d64f95fb28 test: add hm only config 2022-02-23 15:23:14 -08:00
David Arnold
667be56cf4 fix: work arround path:../../ & input.parent error
This error is introduced via https://github.com/NixOS/nix/pull/4641

Proper analysis / evlt. fix is pending.
2022-02-23 15:23:14 -08:00
David Arnold
4bb01ba900 fix: add the entirety of nix#4641 patch
Previously, a specific commit was references, while the patch has +-
evolved into its final shape, which we want to capture here.
2022-02-23 15:23:14 -08:00
David Arnold
a58be6f842 fix: have devshell respect it's loaded nix version 2022-02-23 15:23:14 -08:00
David Arnold
466ea26553 imp: checks pass --show-trace flags 2022-02-23 15:23:14 -08:00
David Arnold
4fe2f9b6ca fix: check-all 2022-02-23 15:23:14 -08:00
David Arnold
67df251929 ref: add proper downstream testing 2022-02-23 15:23:14 -08:00
David Arnold
defb97a834 fmt 2022-02-23 15:23:14 -08:00
David Arnold
25bf8eefe2 ref: auxiliaries (checks, jobs, devshell)
Includes nix patch: https://github.com/NixOS/nix/pull/4641
2022-02-23 15:23:14 -08:00
Parthiv Seetharaman
46fe74647e tree: move everything into examples/devos 2022-02-23 15:21:28 -08:00
Timothy DeHerrera
127cb25bd1
lib: move compat to lib 2021-04-18 20:51:47 -06:00
Timothy DeHerrera
1b80806516
compat: fixes
* fix nixos-option
* use flake-compat for all backward compat concerns
* rebuild devshell after any nix file changes
* reexport system pkgs as legacyPackages
* provide lib flake output
* provide flake lib to nixos configs via `lib.flk`
* clean up flake.nix
2021-01-23 16:45:10 -07:00
Timothy DeHerrera
5558959869
Merge pull request #81 from nrdxp/flk-up
shell: add `flk up` command
2021-01-11 18:01:24 -07:00
David Arnold
176bdcf34b
Fix realod
better fix for #75
2021-01-11 19:36:48 -05:00
Timothy DeHerrera
620849bcf0
shell: namespace flk up
Namespace and stage generated files so that the user can build it right
away.
2021-01-11 16:21:40 -07:00
David Arnold
89a48870b1
Shell: pass flags to iso build
like --show-trace
2021-01-11 17:34:46 -05:00
Timothy DeHerrera
e33f53ff2e
shell: add flk up command
Automatically generate a configuration for your current system using
nixos-generate-config, placed in the `up` directory. A file is added in
hosts/up-$(hostname).nix importing said configuration.
2021-01-11 13:15:55 -07:00
Timothy DeHerrera
6d96a5888f
don't be fancy 2020-12-31 12:41:01 -07:00
Timothy DeHerrera
a0b9f9ffe6
hooks: declare nixpkgs-fmt pre-commit hook 2020-12-30 01:47:42 -07:00
Timothy DeHerrera
37d40e0cfe
shell: add command descriptions 2020-12-29 01:17:36 -07:00
Timothy DeHerrera
ad4bbdd398
shell: fix flk command 2020-12-29 00:36:44 -07:00
Timothy DeHerrera
893e09278b
shell: switch to using mkDevShell 2020-12-28 23:12:27 -07:00
Timothy DeHerrera
e7c0700959
factor out a generic fetch from nixpkgs-compat
Create fetch function which takes a valid flake input, and calls
fetchTarball with the revision and hash information from the flake.lock.

Useful for pulling the exact revision of flake inputs from not flake
expressions, such as those in shell.nix.
2020-12-28 23:08:11 -07:00
Timothy DeHerrera
11f085e78c
shell: pull in more dependencies
* Pull recent enough versions on nixos-(rebuild|install) to ensure
  compatibility with flakes.
* Add grip for viewing changes to README.md locally
2020-12-28 21:58:23 -07:00
Timothy DeHerrera
5f7af10bae
shell: add a nixpkgs-compat file
We are now able to pull in the same revision of nixpkgs as listed in
the lock file.
2020-12-27 00:40:12 -07:00
Timothy DeHerrera
94de0921e6
shell: rename rebuild to flk 2020-12-25 22:14:56 -07:00
Timothy DeHerrera
2f10157648
shell: silent nix-command check 2020-12-19 18:35:33 -07:00
Timothy DeHerrera
891fd23ec2
shell: for zsh users provide useful competion
Default nix completions fail with the new nix-command interface, at
least for users of zsh and direnv, this can be avoided on first startup.
2020-12-19 18:13:04 -07:00
Timothy DeHerrera
3a626b6cf2
shell: don't overwrite nix by default
For users who already have nix-command setup, we don't want to override
the `nix` in their path.
2020-12-19 18:11:21 -07:00
Timothy DeHerrera
fd1dd69566
shell: alias rebuild to nixos rebuild
Fixes #27
2020-12-11 11:21:53 -07:00
Timothy DeHerrera
090cc0aa32
README: simply and update 2020-08-02 16:10:53 -06:00
Timothy DeHerrera
1870fa29bd
Revert "shell.nix: remove rebuild command"
This reverts commit b954963e36.
2020-08-02 16:10:02 -06:00
Timothy DeHerrera
893bf5b6a1
shell: proper shell escape 2020-08-01 22:23:35 -06:00
Timothy DeHerrera
2369f43398
format: apply nixpkgs-fmt 2020-07-30 22:17:28 -06:00
Timothy DeHerrera
6d64118e26
shell: use starship for bash and zsh 2020-07-26 22:24:28 -06:00
Timothy DeHerrera
e37634fb80
shell.nix: don't override NIX_CONF_DIR 2020-07-23 17:03:08 -06:00
Timothy DeHerrera
27fe99a85d
shell.nix: pass command line options to build-iso 2020-07-16 15:17:12 -06:00
Timothy DeHerrera
b954963e36
shell.nix: remove rebuild command
`nixos-rebuild` now works perfectly with flakes so this is no longer
required. A new command `build-iso` is still available so that
building a NixOS image is still possible.
2020-07-13 19:56:39 -06:00
Demyan Rogozhin
a08c7e5184
Fix: nix run -> nix shell 2020-05-21 14:55:06 +02:00
Timothy DeHerrera
e078e7a229
DOC.md: split off from README.md
Keep the README.md lean and use DOC.md for more detailed explanations. While
revising user documentation, a default `nixos` user profile was created, which
serves as a goood base example.
2020-01-10 23:49:18 -07:00
Timothy DeHerrera
6d537c35c4
shell.nix: run nix build as root
Variables mist be preserved so use `sudo -E`. Fixes #4.
2020-01-07 13:02:35 -07:00
Timothy DeHerrera
16b8136f50
change formatter to nixfmt 2020-01-03 22:06:31 -07:00
Timothy DeHerrera
5b5d072851
users: create on entering nix-shell 2020-01-03 18:06:01 -07:00
Timothy DeHerrera
89c2e04bb3
secrets: create on entering a nix-shell 2020-01-03 17:54:27 -07:00
Timothy DeHerrera
dd9856d519
shell.nix: add git-crypt dependency 2020-01-03 17:06:32 -07:00
Timothy DeHerrera
ed94fa013d
shell.nix: basic command to build nixos
`nixos-rebuild` has unstable flake support. By adding a simple rebuild
command to the shell, we don't need to reply on it to switch
configurations anymore. At least until it stablizes.
2020-01-01 21:55:19 -07:00