nixos-config/flake.nix

63 lines
1.7 KiB
Nix
Raw Normal View History

{
description = "PapaTutuWawa's flake configuration";
inputs = {
home-manager.url = "github:nix-community/home-manager/master";
flake-utils.url = "github:numtide/flake-utils";
2022-01-17 20:38:45 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2021-11-15 22:39:42 +00:00
stable.url = "github:nixos/nixpkgs/nixos-21.05";
emacs.url = "github:nix-community/emacs-overlay";
nur.url = "github:nix-community/nur";
2022-03-27 10:30:13 +00:00
ostylk.url = "git+https://destiny.ostylk.de/gitea/NixDistro/Config.git";
ostylk-home.url = "git+https://destiny.ostylk.de/gitea/NixDistro/Home.git";
2022-01-06 12:25:26 +00:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
2022-04-23 11:34:35 +00:00
tablet-mode.url = "git+https://destiny.ostylk.de/gitea/NixDistro/tablet-mode.git";
};
outputs = {
self
, nixpkgs
, home-manager
, flake-utils
2022-03-27 10:30:13 +00:00
, ostylk-home
, ...
}@inputs: let
inherit (import ./lib/flake.nix {
inherit flake-utils;
inherit (nixpkgs) lib;
}) eachDefaultLinuxSystem;
mkSystem = import ./lib/mkSystem.nix {
inherit inputs;
2022-02-24 10:06:07 +00:00
inherit (inputs) nur emacs tablet-mode;
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;
};
};
} // eachDefaultLinuxSystem (system: {
packages = let
pkgs = import nixpkgs {
inherit system;
overlays = [
self.overlay
];
};
in {
2022-07-15 10:50:15 +00:00
inherit (pkgs) gamescope;
};
});
}