2021-11-01 20:33:21 +00:00
|
|
|
{ inputs, config, lib, nur, emacs, ... }:
|
|
|
|
|
2021-11-04 16:19:50 +00:00
|
|
|
/*
|
|
|
|
TODO: Make these arguments unneccessary
|
|
|
|
|
|
|
|
Idea: Make miku.nix, mashu.nix, ... have the following structure
|
|
|
|
|
|
|
|
{
|
|
|
|
architecture: "x86_64-linux";
|
|
|
|
config = { ... }: {
|
|
|
|
# ...
|
|
|
|
};
|
|
|
|
}
|
|
|
|
*/
|
2021-11-01 20:33:21 +00:00
|
|
|
{
|
|
|
|
hostConfigFile
|
|
|
|
, architecture ? "x86_64-linux"
|
2022-03-31 14:53:42 +00:00
|
|
|
, bluray ? false
|
2021-11-01 20:33:21 +00:00
|
|
|
}: let
|
|
|
|
pkgs = inputs.nixpkgs;
|
|
|
|
config = pkgs.lib;
|
|
|
|
network = import ./network.nix;
|
|
|
|
|
|
|
|
util = import ./default.nix {
|
|
|
|
inherit inputs config lib;
|
|
|
|
};
|
|
|
|
|
|
|
|
in inputs.nixpkgs.lib.nixosSystem {
|
|
|
|
system = architecture;
|
|
|
|
|
|
|
|
modules = [
|
2021-11-06 19:46:30 +00:00
|
|
|
# User configuration management
|
2021-11-01 20:33:21 +00:00
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
}
|
|
|
|
|
2021-11-06 19:46:30 +00:00
|
|
|
# Overlays
|
2021-11-01 20:33:21 +00:00
|
|
|
(util.mkOverlayFromInput "stable" inputs.stable)
|
|
|
|
(util.mkOverlayFromInput "unstable" inputs.nixpkgs)
|
2023-09-17 11:35:43 +00:00
|
|
|
|
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
nur.overlay
|
|
|
|
emacs.overlay
|
|
|
|
(import ../packages)
|
2021-11-05 11:49:14 +00:00
|
|
|
(import ../overlays/simple.nix)
|
2022-06-15 17:43:12 +00:00
|
|
|
(import ../overlays/phosh.nix)
|
2022-03-31 14:53:42 +00:00
|
|
|
]
|
|
|
|
++ lib.optional bluray (import ../overlays/bluray.nix)
|
|
|
|
++ [
|
2022-02-17 18:57:49 +00:00
|
|
|
# Always keep sandbox.nix as the last overlay
|
2022-01-14 17:08:47 +00:00
|
|
|
(import ../overlays/sandbox.nix)
|
2021-11-01 20:33:21 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2021-11-06 19:46:30 +00:00
|
|
|
# My module system
|
2021-11-01 20:33:21 +00:00
|
|
|
(import ../modules)
|
|
|
|
inputs.ostylk.nixosModules.nftables
|
2022-02-24 10:25:43 +00:00
|
|
|
inputs.tablet-mode.nixosModule
|
2021-11-01 20:33:21 +00:00
|
|
|
|
2021-11-06 19:46:30 +00:00
|
|
|
# Actual config
|
2021-11-01 20:33:21 +00:00
|
|
|
(import ./baseSystem.nix)
|
|
|
|
(import hostConfigFile)
|
|
|
|
];
|
|
|
|
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
}
|