Skip to content

Commit

Permalink
add agenix
Browse files Browse the repository at this point in the history
following the overlay approach from [this discourse post][1]

We'd like it to be available in the live ISO and the deployed system.

[1]: https://discourse.nixos.org/t/install-agenix-in-environment-systempackages-on-nixos-with-flakes/17169/3
  • Loading branch information
bluesquall committed Jan 20, 2022
1 parent 0746e8e commit ed8550c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
21 changes: 21 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions flake.nix
Expand Up @@ -5,25 +5,30 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";

home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { nixpkgs, home-manager, ... }:
outputs = { nixpkgs, agenix, home-manager, ... }:
let

lib = nixpkgs.lib;
system = "x86_64-linux";
overlays = [ agenix.overlay ];

pkgs = import nixpkgs {
inherit system;
inherit system overlays;
# config.allowUnfree = true;
# # ^enable this if you need all firmware
};

baseModules = [
agenix.nixosModules.age
({ lib, pkgs, ... }: {
nix = {
package = pkgs.nixUnstable;
Expand All @@ -37,7 +42,8 @@
};

environment.systemPackages = with pkgs; [
bash curl git neovim qrencode tmux zsh
agenix.defaultPackage.x86_64-linux
bash curl git neovim qrencode tmux zsh
];
})
];
Expand Down

0 comments on commit ed8550c

Please sign in to comment.