···11# This is a NixOS module, you cannot use this as a standalone file.
22# Other files may be though, but things that starts with {...}: most definitely aren't.
33-{inputs, ...}: {
33+{ inputs, ... }:
44+{
45 imports = [
56 ./core.nix
67 ./gensokyo
···11-{pkgs, ...}: {
11+{ pkgs, ... }:
22+{
23 # Miscellaneous packages that do not have an option.
34 # It is recommended to use packages.<package>.enable when possible.
45
···33 config,
44 lib,
55 ...
66-}: let
66+}:
77+let
78 types = lib.types;
89 cfg = config.gensokyo.system-manager;
99-in {
1010+in
1111+{
1012 options.gensokyo.system-manager = {
1113 enable = lib.mkEnableOption "a shortcut to manage the system no matter where you are (in the system)";
1214 flakeLocation = lib.mkOption {
···17191820 config = lib.mkIf cfg.enable {
1921 environment.systemPackages = [
2020- (pkgs.callPackage ./package.nix {inherit (cfg) flakeLocation;})
2222+ (pkgs.callPackage ./package.nix { inherit (cfg) flakeLocation; })
2123 ];
2224 };
2325}
+1-1
global/programs/system-manager/package.nix
···88 meta = {
99 description = "A shortcut to run `just` in the local system flake directory.";
1010 license = lib.licenses.cc0;
1111- maintainers = with lib.maintainers; [soopyc];
1111+ maintainers = with lib.maintainers; [ soopyc ];
1212 };
13131414 # we could make this more robust by not using `just` and (hardcode?) commands in, but this is by far the easiest
···11-{lib, ...}: {
11+{ lib, ... }:
22+{
23 # This file was populated at runtime with the networking
34 # details gathered from the active system.
45 networking = {
···11-{lib, ...}: {
11+{ lib, ... }:
22+{
23 # This file was populated at runtime with the networking
34 # details gathered from the active system.
45 networking = {
···11# ryo because empty-headed. also btr naming scheme.
22# DO NOT copy anything done on this host, it's insecure by design.
33-{...}: {
33+{ ... }:
44+{
45 imports = [
56 ./services
67 ];