/flake.nix Secret
Created
April 26, 2020 22:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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; | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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