-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
257 additions
and
72 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ nixpkgs }: # source from std | ||
let | ||
inherit (builtins) fromJSON; | ||
inherit (nixpkgs) runCommand yq-go; | ||
inherit (nixpkgs.lib) readFile; | ||
in | ||
# Read a YAML file into a Nix datatype using IFD. | ||
# Similar to: | ||
# > builtins.fromJSON (builtins.readFile ./somefile) | ||
# but takes an input file in YAML instead of JSON. | ||
# | ||
# Type: | ||
# Path -> a :: Nix | ||
path: | ||
let | ||
jsonOutputDrv = | ||
runCommand "from-yaml" { nativeBuildInputs = [ yq-go ]; } | ||
''yq -o=json "${path}" > "$out"''; | ||
in | ||
fromJSON (readFile jsonOutputDrv) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
let | ||
filterConfigs = | ||
config: | ||
lib.pipe self.hosts [ | ||
(lib.filterAttrs (_: v: v ? "${config}")) | ||
(lib.mapAttrs (_: v: v.${config})) | ||
]; | ||
in | ||
{ | ||
hosts = | ||
(inputs.omnibus.exporters.addLoadExtender { | ||
src = ../nixos/hosts; | ||
inputs = inputs // { | ||
self' = { | ||
inherit (super) inputs; | ||
}; | ||
omnibus = inputs.omnibus.lib // { | ||
lib = super.omnibus.lib.outputs.default; | ||
}; | ||
}; | ||
}).outputs.default; | ||
|
||
nixosConfigurations = filterConfigs "nixosConfiguration"; | ||
|
||
darwinConfigurations = filterConfigs "darwinConfiguration"; | ||
|
||
local = eachSystem ( | ||
system: | ||
let | ||
inputs = (super.inputs.setSystem system).outputs; | ||
loadDataAll = | ||
(omnibus.lib.addLoadExtender { | ||
inputs = { | ||
nixpkgs = inputs.nixpkgs.legacyPackages.${system}; | ||
}; | ||
}).outputs.default.loadDataAll; | ||
in | ||
{ | ||
data = (loadDataAll.addLoadExtender { src = ../local/data; }).outputs.default; | ||
} | ||
); | ||
|
||
packages = eachSystem ( | ||
system: | ||
let | ||
inputs = (super.inputs.setSystem system).outputs; | ||
in | ||
( | ||
(flops.haumea.pops.default.setInit { | ||
src = ../packages; | ||
loader = _: path: inputs.nixpkgs.callPackage path { }; | ||
}) | ||
).outputs.default | ||
); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(omnibus.loadInputs.addInputsExtender ( | ||
POP.extendPop flops.flake.pops.inputsExtender ( | ||
self: super: | ||
let | ||
selfInputs = omnibus.loadInputs.setInitInputs ./__lock; | ||
in | ||
{ | ||
inputs = { | ||
nixpkgs = inputs.nixpkgs.legacyPackages; | ||
} // selfInputs.outputs; | ||
} | ||
) | ||
)) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
loadHomeModules = | ||
(omnibus.loadHomeModules.addLoadExtender { src = ../nixos/homeModules; }); | ||
|
||
loadHomeProfiles = | ||
(omnibus.loadHomeProfiles.addLoadExtender { src = ../nixos/homeProfiles; }); | ||
|
||
loadNixOSProfiles = | ||
(omnibus.loadNixOSProfiles.addLoadExtender { src = ../nixos/nixosProfiles; }); | ||
|
||
loadNixOSModules = | ||
(omnibus.loadNixOSModules.addLoadExtender { src = ../nixos/nixosModules; }); | ||
|
||
omnibus = { | ||
lib = omnibus.lib.addLoadExtender { | ||
inputs = { | ||
home-manager = inputs.home; | ||
}; | ||
}; | ||
}; | ||
loadDarwinProfiles = | ||
(omnibus.loadNixOSProfiles.addLoadExtender { src = ../nixos/darwinProfiles; }); | ||
|
||
loadDarwinModules = | ||
(omnibus.loadNixOSModules.addLoadExtender { src = ../nixos/darwinModules; }); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
loadHomeModules = (omnibus.loadHomeModules.addLoadExtender { }); | ||
|
||
loadHomeProfiles = (omnibus.loadHomeProfiles.addLoadExtender { }); | ||
|
||
loadNixOSProfiles = (omnibus.loadNixOSProfiles.addLoadExtender { }); | ||
|
||
loadNixOSModules = (omnibus.loadNixOSModules.addLoadExtender { }); | ||
|
||
lib = omnibus.lib.addLoadExtender { | ||
inputs = { | ||
home-manager = inputs.home; | ||
}; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
let | ||
outputs = lib.mapAttrs (_: v: v.outputs) ( | ||
lib.removeAttrs super.pops [ "inputs" ] | ||
); | ||
in | ||
{ | ||
system = "x86_64-linux"; | ||
|
||
data = outputs.data.default; | ||
|
||
nixosSuites = lib.flatten [ | ||
# outputs.selfNixOSProfiles.default.bootstrap | ||
|
||
# # self.nixosProfiles.default.presets.boot | ||
# outputs.nixosModules.default.programs.git | ||
|
||
# # # --custom profiles | ||
# outputs.nixosProfiles.customProfiles.presets.nix | ||
# outputs.nixosProfiles.customProfiles.presets.boot | ||
# outputs.nixosModules.customModules.boot | ||
|
||
# outputs.srvos.default.common.nix | ||
(omnibus.lib.mkHome | ||
{ | ||
admin = { | ||
uid = 1000; | ||
description = "default manager"; | ||
isNormalUser = true; | ||
extraGroups = [ "wheel" ]; | ||
}; | ||
} | ||
"zsh" | ||
self.homeSuites | ||
) | ||
]; | ||
|
||
homeSuites = | ||
[ | ||
# outputs.homeProfiles.customProfiles.presets.hyprland | ||
# outputs.homeProfiles.default.presets.bat | ||
# # # The parent directory of "presets" is categorized as a list type of "suites" | ||
# (outputs.homeProfiles.default.shell { }).default | ||
# super.pops.homeModules.outputs.default.wayland.windowManager.hyprland | ||
]; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
nixpkgs.lib.nixosSystem rec { | ||
system = super.layouts.system; | ||
pkgs = import nixpkgs { inherit system; }; | ||
modules = lib.flatten [ super.layouts.nixosSuites ]; | ||
} |
This file contains 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
Oops, something went wrong.