Commit graph

245 commits

Author SHA1 Message Date
codygman dc81753790 update to 20.09
Also fixes  by using recommended home-manager
2020-12-01 21:18:24 -06:00
Timothy DeHerrera 219975f9cc
packages: export overlays as packages 2020-08-02 21:26:00 -06:00
Timothy DeHerrera 39c1a48674
flake: add template output 2020-08-01 23:10:22 -06:00
Timothy DeHerrera 5e0ca31d02
flake: rename flake inputs and add overrides
Now you can add packages to the list in pkgs/override.nix and they will
be pulled in from nixpkgs master instead of the default NixOS flake
when installed.
2020-08-01 22:08:41 -06:00
Timothy DeHerrera 068be3f5bf
lint: remove //, replace with recursiveUpdate 2020-07-30 23:32:53 -06:00
Timothy DeHerrera 2369f43398
format: apply nixpkgs-fmt 2020-07-30 22:17:28 -06:00
Timothy DeHerrera 7e93ef7ccf
flake: move pathsToImportedAttrs to utils 2020-07-30 15:29:58 -06:00
Timothy DeHerrera 1373380a91
flake#nixosModules: add binary cache as module 2020-07-26 16:03:51 -06:00
Timothy DeHerrera c9495ea881
direnv: use nix print-dev-env
In order to increase determinism in the build environment, we are
having direnv load the shell environment from the flake's `devShell`
output, instead of the traditional `nix-shell` approach. Of course,
one can still enter a `nix-shell` manually on a system without flake
support installed.
2020-07-13 20:00:47 -06:00
Timothy DeHerrera e9be8e5f5e
flake: base unstable on master 2020-07-09 00:04:42 -06:00
Timothy DeHerrera d1c0b0f6ec
pkgs: add metadata and standardize 2020-06-19 14:55:30 -06:00
Timothy DeHerrera 05a798a56e
flake: add option to install packages from nixos-unstable 2020-06-12 19:18:27 -06:00
Timothy DeHerrera df88ef7bb0
Merge pull request from jtojnar/check-fixes
flake: Fix `nix flake check`
2020-06-09 13:11:42 -06:00
Timothy DeHerrera ad9f0d70e8
flake: update lockfile 2020-06-09 10:37:23 -06:00
Jan Tojnar a7749005bc
flake: Fix overlays for nix flake check
It complains that:

	value is a list while a set was expected, at /nix/store/0qdcc831rj27wz07lrri6bnfmhvm4wrm-source/flake.nix:26:7

But nixpkgs still expects a list, so we need to pass it just the values.
2020-06-02 01:18:40 +02:00
Jan Tojnar 0b14dbbc2d
flake: Refactor nixosModules collection
We will want to reuse the prep method for overlays so let's move it higher and simplify it a bit.
2020-06-02 01:14:33 +02:00
Jan Tojnar f3e52ede3c
flake: remove epoch
It was renamed to edition:

cc5d0a2497

leading to the following error:

error: flake 'git+file:///home/jtojnar/Projects/nixflk?ref=template&rev=31c2b767ca7cb901040e388794b34942807719e0' has an unsupported attribute 'epoch', at /nix/store/yndrc91vlh5vm0k4nngx303q1cjm77z9-source/flake.nix:4:3

but that itself has been deprecated:

warning: flake 'git+file:///home/jtojnar/Projects/nixflk' has deprecated attribute 'edition'
2020-06-02 01:03:23 +02:00
Timothy DeHerrera 9af46a3dca
flake: update to upstream 2020-04-23 12:03:55 -06:00
Timothy DeHerrera d5ba9f6173
flake.nix: define pkgs in flake
Set the global package set via `hosts/default.nix` passed in from its
definition in `flake.nix`.
2020-01-29 08:50:07 -07:00
Timothy DeHerrera 9b64b50ee8
flake.nix: consistent default.nix semantics 2020-01-10 22:39:42 -07:00
Timothy DeHerrera cef548d232
Revert "Merge branch 'nur' into template"
This reverts commit 48afb873c1, reversing
changes made to 7e58e0457e.
2020-01-10 21:55:09 -07:00
Timothy DeHerrera 506e810b9f
flake: initial NUR support 2020-01-10 00:10:59 -07:00
Timothy DeHerrera ef5d61af76
pkgs#pure: init at 0e87bd8 2020-01-07 13:05:38 -07:00
Timothy DeHerrera c914a607da
flake: changed by mistake; revert 2020-01-06 00:26:48 -07:00
Timothy DeHerrera 4cf8048807
overlays: init overlays directory
Overlays now live globally in the overlays directory. They will be
pulled into the flake and the rest of your configuration automatically
from there.
2020-01-06 00:01:00 -07:00
Timothy DeHerrera 9670fa4b0f
Revert "utils: now lives in lib.utils globally"
This reverts commit c9944b411e.
Causes infinite recursion, revert for now while exploring possible
solutions.
2020-01-05 15:39:59 -07:00
Timothy DeHerrera c9944b411e
utils: now lives in lib.utils globally 2020-01-05 03:45:59 -07:00
Timothy DeHerrera a3dcc4f6bc
profiles: convert to list same as modules 2020-01-04 16:23:15 -07:00
Timothy DeHerrera ae303b39fd
modules: convert to list to match nixpkg sematics 2020-01-04 16:08:49 -07:00
Timothy DeHerrera 16b8136f50
change formatter to nixfmt 2020-01-03 22:06:31 -07:00
Timothy DeHerrera 425f7894a4
export profiles via flake outputs
Export those listed in `profiles/default.nix` to be included in the
flake output `nixosModules` for easy use in other flakes.
2020-01-03 20:01:22 -07:00
Timothy DeHerrera e93ac2f790
flake.nix: name flake inputs
The flake inputs can now be arbitrarily referenced from
hosts/default.nix as they are all passed into it. Any input not
declared at the top of hosts/default.nix can still be referenced
as args.<input>.
2020-01-03 18:27:52 -07:00
Timothy DeHerrera 1493f43ba7
flake: add packages to outputs 2020-01-01 19:24:09 -07:00
Timothy DeHerrera 5f05e9e809
flake: provide overlay and overlays 2019-12-30 18:05:27 -07:00
Timothy DeHerrera cd25fdf37c
flake: move modules to outputs 2019-12-30 18:00:09 -07:00
Timothy DeHerrera ac5e184666
flake: move overlays to flake outputs 2019-12-30 17:45:30 -07:00
Timothy DeHerrera 1f55960518
rename configurations to hosts 2019-12-21 18:39:19 -07:00
Timothy DeHerrera 2bad76157e
flake: nix flake is broken, use pkgs.nixFlakes 2019-12-17 15:56:02 -07:00
Timothy DeHerrera c900537587
home-manager: init 2019-12-15 01:35:12 -07:00
Timothy DeHerrera 6c51d2761a
utils: import from configurations 2019-12-15 01:23:19 -07:00
Timothy DeHerrera 10522aac59
use my fork of nixpkgs until flakes stabilize 2019-12-13 21:39:25 -07:00
Timothy DeHerrera ae0746a5a4
utils: create utility functions to ease repetition
`reqImport` in particular, is useful for easily importing an entire
directory of nix files into an attribute set.
2019-12-13 21:30:43 -07:00
Timothy DeHerrera c2d1230a00
succinct description and README.md 2019-12-05 02:15:30 -07:00
Timothy DeHerrera 79181e103f
setup configurations API
NixOS file, configurations/<name>.nix, will be easily installable
via `nixos-rebuild --flake ".#<name>"`.
2019-12-05 01:58:40 -07:00
Timothy DeHerrera 17713c22d0
init 2019-12-02 22:18:30 -07:00