Simplify evaluations a bit

This commit is contained in:
Greg Hellings
2025-12-07 17:50:55 -06:00
parent fa555f0298
commit 01e6aa22d5
10 changed files with 60 additions and 68 deletions
+4 -1
View File
@@ -6,6 +6,9 @@
...
}:
let
meta = import ./hosts/metadata.nix;
in
{
pre-commit-check = hooks.lib.${system}.run {
src = ./.;
@@ -39,6 +42,6 @@
};
}
// (builtins.mapAttrs (_n: v: v.config.system.build.toplevel) (
lib.filterAttrs (_n: v: v.pkgs.stdenv.hostPlatform.system == system) top.self.nixosConfigurations
lib.filterAttrs (n: _v: builtins.any (a: a == system) meta.${n}.arch) top.self.nixosConfigurations
))
// (top.self.packages.${system})
-2
View File
@@ -71,8 +71,6 @@
charts_overlay
local_overlay
packages_overlay
top.nurpkgs.overlays.default
top.vsext.overlays.default
top.nixvimunstable.overlays.default
];
+5 -1
View File
@@ -7,11 +7,15 @@ let
pkgs =
system:
(import top.nixunstable {
inherit system overlays;
inherit system;
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
};
overlays = overlays ++ [
top.nurpkgs.overlays.default
top.vsext.overlays.default
];
});
user =
system: host: username:
-1
View File
@@ -23,7 +23,6 @@ in
development = true;
gui = true;
nix.cache = false;
pypackage.enable = false;
vscodium = true;
};
-7
View File
@@ -76,13 +76,6 @@ in
xonsh = {
enable = true;
extraPackages = (
ps: with ps; [
xonsh-apipenv
pkgs.nur.repos.xonsh-xontribs.xonsh-direnv
pkgs.nur.repos.xonsh-xontribs.xontrib-vox
]
);
};
ssh = {
+4 -5
View File
@@ -33,7 +33,6 @@ let
# Imported ones
top.agenix.nixosModules.default
hm.nixosModules.home-manager
top.nurpkgs.modules.nixos.default
# Local ones
./baseline.nix
top.self.modules.nixosModule
@@ -62,8 +61,8 @@ in
system = "aarch64-linux";
};
# nix build '.#nixosConfigurations.wsl-aarch.config.system.build.installer'
nixos-arm = wsl {
name = "wsl";
system = "aarch64-linux";
};
#nixos-arm = wsl {
#name = "wsl";
#system = "aarch64-linux";
#};
}
+47
View File
@@ -0,0 +1,47 @@
{
exodus = {
arch = [ "x86_64-linux" ];
};
genesis = {
arch = [ "x86_64-linux" ];
};
hosea = {
arch = [ "x86_64-linux" ];
};
icdm-root = {
arch = [ "x86_64-linux" ];
};
isaiah = {
arch = [ "x86_64-linux" ];
};
iso = {
arch = [
"x86_64-linux"
"aarch64-linux"
];
};
jeremiah = {
arch = [ "x86_64-linux" ];
};
linode = {
arch = [ "x86_64-linux" ];
};
nixos = {
arch = [
"x86_64-linux"
"aarch64-linux"
];
};
proxmoxtemplate = {
arch = [
"x86_64-linux"
"aarch64-linux"
];
};
vm-gitlab = {
arch = [ "x86_64-linux" ];
};
zeke = {
arch = [ "x86_64-linux" ];
};
}
-1
View File
@@ -5,7 +5,6 @@
./development.nix
./gnome.nix
./gui.nix
./python.nix
./vscodium.nix
./xonsh.nix
./zed.nix
-27
View File
@@ -1,27 +0,0 @@
{
config,
pkgs,
lib,
...
}:
let
cfg = config.greg.pypackage;
in
{
options.greg.pypackage = {
enable = lib.mkOption {
description = "Enable installing my Python package here";
type = lib.types.bool;
default = true;
};
package = lib.mkOption {
description = "Enable Gnome support and settings";
type = lib.types.package;
default = pkgs.gregpy;
};
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
};
}
-23
View File
@@ -1,29 +1,6 @@
_final: prev:
let
myPackages =
pypackages: with pypackages; [
black
build
ipython
mypy
pylint
python-dateutil
pyyaml
responses
ruamel-yaml
setuptools
tox
typing-extensions
virtualenv
];
myPython = prev.python312.withPackages myPackages;
in
rec {
gregpy = myPython;
## Testing adding python packages in the correct manner
pythonPackagesExtensions = (prev.pythonPackagesExtensions or [ ]) ++ [
(