Compare commits
No commits in common. "cccf2831aef9321f090db39bbf307cd04a34d17a" and "72dd5a2eb3746980b50560b8663d620f82e9f94a" have entirely different histories.
cccf2831ae
...
72dd5a2eb3
5 changed files with 3 additions and 72 deletions
|
@ -1,13 +0,0 @@
|
||||||
{ nixpkgs ? <nixpkgs> }:
|
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
pkgs = import nixpkgs { };
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
|
||||||
|
|
||||||
myapp = pkgs.writeShellScript "hello" "${pkgs.hello}/bin/hello";
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,26 +0,0 @@
|
||||||
{
|
|
||||||
"hello": {
|
|
||||||
"enabled": 1,
|
|
||||||
"hidden": false,
|
|
||||||
"description": "test",
|
|
||||||
"nixexprinput": "src",
|
|
||||||
"nixexprpath": ".hydra/jobsets.nix",
|
|
||||||
"checkinterval": 300,
|
|
||||||
"schedulingshares": 100,
|
|
||||||
"enableemail": false,
|
|
||||||
"emailoverride": "",
|
|
||||||
"keepnr": 3,
|
|
||||||
"inputs": {
|
|
||||||
"src": {
|
|
||||||
"type": "git",
|
|
||||||
"value": "https://forgejo.stefka.eu/jiriks74/zsh.nix main",
|
|
||||||
"emailresponsible": false
|
|
||||||
},
|
|
||||||
"nixpkgs": { "type": "git",
|
|
||||||
"type": "git",
|
|
||||||
"value": "https://github.com/NixOS/nixpkgs.git nixos-unstable",
|
|
||||||
"emailresponsible": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
6
flake.lock
generated
6
flake.lock
generated
|
@ -20,11 +20,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736344531,
|
"lastModified": 1735834308,
|
||||||
"narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=",
|
"narHash": "sha256-dklw3AXr3OGO4/XT1Tu3Xz9n/we8GctZZ75ZWVqAVhk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912",
|
"rev": "6df24922a1400241dae323af55f30e4318a6ca65",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -3,14 +3,9 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
# home-manager = {
|
|
||||||
# url = "github:nix-community/home-manager/master";
|
|
||||||
# inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
# };
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
@ -52,6 +47,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
hydraJobs = import ./hydra.nix {inherit inputs outputs;};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
24
hydra.nix
24
hydra.nix
|
@ -1,24 +0,0 @@
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
outputs,
|
|
||||||
}: let
|
|
||||||
inherit (inputs.nixpkgs) lib;
|
|
||||||
|
|
||||||
notBroken = pkg: !(pkg.meta.broken or false);
|
|
||||||
isDistributable = pkg: (pkg.meta.license or {redistributable = true;}).redistributable;
|
|
||||||
hasPlatform = sys: pkg: lib.elem sys (pkg.meta.platforms or [sys]);
|
|
||||||
filterValidPkgs = sys: pkgs:
|
|
||||||
lib.filterAttrs (_: pkg:
|
|
||||||
lib.isDerivation pkg
|
|
||||||
&& hasPlatform sys pkg
|
|
||||||
&& notBroken pkg
|
|
||||||
&& isDistributable pkg)
|
|
||||||
pkgs;
|
|
||||||
|
|
||||||
getConfigTopLevel = _: cfg: cfg.config.system.build.toplevel;
|
|
||||||
in {
|
|
||||||
# pkgs = lib.mapAttrs filterValidPkgs outputs.packages;
|
|
||||||
# hosts = lib.mapAttrs getConfigTopLevel outputs.nixosConfigurations;
|
|
||||||
default = lib.mapAttrs getConfigTopLevel outputs.homeManagerModules.default;
|
|
||||||
withPackages = lib.mapAttrs getConfigTopLevel outputs.homeManagerModules.withPackages;
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue