Skip to content

Instantly share code, notes, and snippets.

@emilazy
Created April 26, 2020 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilazy/d2fdc9b19b7498ee7878bbbdb73d7c67 to your computer and use it in GitHub Desktop.
Save emilazy/d2fdc9b19b7498ee7878bbbdb73d7c67 to your computer and use it in GitHub Desktop.
{
description = "Emily's NixOS configurations";
# TODO: remove (see https://github.com/NixOS/nix/commit/e5ea01c1a8bbd328dcc576928bf3e4271cb55399)
edition = 201909;
inputs = {
nixpkgs = {
type = "github";
owner = "emilazy";
repo = "nixpkgs";
ref = "emily";
};
nixpkgs-mozilla = {
type = "github";
owner = "mozilla";
repo = "nixpkgs-mozilla";
flake = false;
};
nixpkgs-wayland = {
type = "github";
owner = "colemickens";
repo = "nixpkgs-wayland";
flake = false;
};
nixos-hardware = {
type = "github";
owner = "NixOS";
repo = "nixos-hardware";
flake = false;
};
lorri = {
type = "github";
owner = "target";
repo = "lorri";
flake = false;
};
dwarffs = {
type = "github";
owner = "edolstra";
repo = "dwarffs";
ref = "83c13981993fa54c4cac230f2eec7241ab8fd0a9";
inputs.nixpkgs.follows = "nixpkgs";
};
extra-container = {
type = "github";
owner = "erikarvstedt";
repo = "extra-container";
flake = false;
};
dnscrypt-resolvers = {
type = "github";
owner = "DNSCrypt";
repo = "dnscrypt-resolvers";
flake = false;
};
mew = {
type = "github";
owner = "mew-build";
repo = "mew";
flake = false;
};
mpv-notify-send = {
type = "github";
owner = "emilazy";
repo = "mpv-notify-send";
flake = false;
};
switcher = {
type = "github";
owner = "daniellandau";
repo = "switcher";
flake = false;
};
unite-shell = {
type = "github";
owner = "hardpixel";
repo = "unite-shell";
flake = false;
};
};
outputs = inputs: {
nixosConfigurations = import ./nixos/hosts inputs;
};
}
inputs@{ nixpkgs, ... }:
with nixpkgs.lib;
let
importHostConfig = name: import (./. + "/${name}");
mkHost = name: nixosSystem {
# TODO
system = "x86_64-linux";
modules = [ (importHostConfig name) ];
specialArgs = { inherit inputs; };
};
hosts = [
"patchouli"
"renko"
];
in genAttrs hosts mkHost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment