nixos-config/flake.nix

73 lines
1.7 KiB
Nix
Raw Normal View History

2021-02-06 03:09:11 +01:00
{
description = "Nixos configuration with flakes";
inputs = {
2021-04-19 12:49:30 +02:00
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-20.09";
};
nixpkgs-unstable = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
};
emacs-overlay = {
type = "github";
owner = "nix-community";
repo = "emacs-overlay";
ref = "master";
};
2021-02-06 03:09:11 +01:00
};
2021-04-17 20:39:01 +02:00
outputs = { self, nixpkgs, nixpkgs-unstable, emacs-overlay }: {
2021-02-15 17:23:25 +01:00
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem rec {
2021-02-06 03:09:11 +01:00
system = "x86_64-linux";
modules =
[
2021-02-14 13:42:43 +01:00
./poseidon.nix
2021-02-15 17:23:25 +01:00
2021-02-15 16:31:08 +01:00
{
nixpkgs.overlays =
let
pkgsUnstable = nixpkgs-unstable.legacyPackages.${system};
in
[
# packages accessible through pkgs.unstable.package
(final: prev: {
unstable = pkgsUnstable;
})
(final: prev: {
bitwarden_rs = pkgsUnstable.bitwarden_rs;
bitwarden_rs-vault = pkgsUnstable.bitwarden_rs-vault;
})
];
2021-02-15 16:31:08 +01:00
}
2021-02-06 03:09:11 +01:00
];
};
2021-04-16 21:33:48 +02:00
nixosConfigurations.boreal = nixpkgs-unstable.lib.nixosSystem rec {
system = "x86_64-linux";
modules =
[
./boreal.nix
2021-04-17 20:39:01 +02:00
{
nixpkgs.overlays = [
emacs-overlay.overlay
# uncomment this to build everything from scratch, fun but takes a
# while
#
# (self: super: {
# stdenv = super.impureUseNativeOptimizations super.stdenv;
# })
];
2021-04-17 20:39:01 +02:00
}
2021-04-16 21:33:48 +02:00
];
};
2021-02-06 03:09:11 +01:00
};
}