Commit Graph

37 Commits

Author SHA1 Message Date
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
Timothy DeHerrera 92f78f3d93
shell.nix: init minimal 2020-01-01 21:01:58 -07:00