2021-11-01 20:33:21 +00:00
|
|
|
{
|
|
|
|
description = "PapaTutuWawa's flake configuration";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
#stable.url = "github:nixos/nixpkgs/nixos-21.05";
|
|
|
|
emacs.url = "github:nix-community/emacs-overlay";
|
|
|
|
nur.url = "github:nix-community/nur";
|
|
|
|
ostylk.url = "git+https://dev.ostylk.de/NixDistro/Config";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self
|
|
|
|
, nixpkgs
|
|
|
|
, home-manager
|
|
|
|
, flake-utils
|
|
|
|
, ...
|
|
|
|
}@inputs: let
|
|
|
|
inherit (import ./lib/flake.nix {
|
|
|
|
inherit flake-utils;
|
|
|
|
inherit (nixpkgs) lib;
|
|
|
|
}) eachDefaultLinuxSystem;
|
|
|
|
mkSystem = import ./lib/mkSystem.nix {
|
|
|
|
inherit inputs;
|
|
|
|
inherit (inputs) nur emacs;
|
|
|
|
inherit (nixpkgs) lib config;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
# Defines outputs that is not dependent on a specific system, i.e. overlays
|
|
|
|
overlay = import ./packages;
|
|
|
|
|
|
|
|
nixosConfigurations = {
|
|
|
|
miku = mkSystem {
|
|
|
|
hostConfigFile = ./hosts/miku.nix;
|
|
|
|
};
|
2021-11-04 14:11:46 +00:00
|
|
|
mashu = mkSystem {
|
|
|
|
hostConfigFile = ./hosts/mashu.nix;
|
|
|
|
};
|
2021-11-06 14:18:27 +00:00
|
|
|
nishimiya = mkSystem {
|
|
|
|
hostConfigFile = ./hosts/nishimiya.nix;
|
|
|
|
};
|
2021-11-01 20:33:21 +00:00
|
|
|
};
|
|
|
|
} // eachDefaultLinuxSystem (system: {
|
|
|
|
packages = let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
|
|
|
|
overlays = [
|
|
|
|
self.overlay
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
# key-mapper only runs on linux
|
|
|
|
inherit (pkgs) key-mapper;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|