go back to using nixpkgs#attic

This commit is contained in:
Daylin Morgan 2025-01-20 16:38:49 -06:00
parent f3451a8660
commit 155661be6c
Signed by: daylin
GPG key ID: 950D13E9719334AD
9 changed files with 14 additions and 130 deletions

View file

@ -54,21 +54,6 @@
"type": "github" "type": "github"
} }
}, },
"crane": {
"locked": {
"lastModified": 1736898272,
"narHash": "sha256-D10wlrU/HCpSRcb3a7yk+bU3ggpMD1kGbseKtO+7teo=",
"owner": "ipetkov",
"repo": "crane",
"rev": "6a589f034202a7c6e10bce6c5d1d392d7bc0f340",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"f1multiviewer": { "f1multiviewer": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -89,43 +74,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1733328505,
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"lix-attic",
"nixpkgs"
]
},
"locked": {
"lastModified": 1736143030,
"narHash": "sha256-+hu54pAoLDEZT9pjHlqL9DNzWz0NbUn8NEAHP7PQPzU=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "b905f6fc23a9051a6e1b741e1438dbfc0634c6de",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
@ -486,38 +434,6 @@
"url": "https://git.lix.systems/lix-project/lix/archive/main.tar.gz" "url": "https://git.lix.systems/lix-project/lix/archive/main.tar.gz"
} }
}, },
"lix-attic": {
"inputs": {
"crane": "crane",
"flake-compat": "flake-compat",
"flake-parts": "flake-parts",
"lix": [
"lix-module",
"lix"
],
"lix-module": [
"lix-module"
],
"nix-github-actions": [],
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1736969694,
"narHash": "sha256-4OKeL5HbDNDKl1JgRH97HCe/QQjhLGB4pjxxYr5PTFc=",
"ref": "refs/heads/main",
"rev": "d413a74fa132cf5f421732dc7dd5cadda96fb874",
"revCount": 361,
"type": "git",
"url": "https://git.lix.systems/nrabulinski/attic.git"
},
"original": {
"type": "git",
"url": "https://git.lix.systems/nrabulinski/attic.git"
}
},
"lix-module": { "lix-module": {
"inputs": { "inputs": {
"flake-utils": [ "flake-utils": [
@ -666,22 +582,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-stable": {
"locked": {
"lastModified": 1735563628,
"narHash": "sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b134951a4c9f3c995fd7be05f3243f8ecd65d798",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-wayland": { "nixpkgs-wayland": {
"inputs": { "inputs": {
"flake-compat": [], "flake-compat": [],
@ -738,7 +638,6 @@
"jj": "jj", "jj": "jj",
"lib-aggregate": "lib-aggregate", "lib-aggregate": "lib-aggregate",
"lix": "lix", "lix": "lix",
"lix-attic": "lix-attic",
"lix-module": "lix-module", "lix-module": "lix-module",
"my-nixpkgs": "my-nixpkgs", "my-nixpkgs": "my-nixpkgs",
"nim2nix": "nim2nix", "nim2nix": "nim2nix",

View file

@ -61,13 +61,14 @@
tsm.inputs.nim2nix.follows = "nim2nix"; tsm.inputs.nim2nix.follows = "nim2nix";
utils.inputs.nim2nix.follows = "nim2nix"; utils.inputs.nim2nix.follows = "nim2nix";
lix-attic = { # lix-attic = {
url = "git+https://git.lix.systems/nrabulinski/attic.git"; # url = "git+https://git.lix.systems/nrabulinski/attic.git";
inputs.nixpkgs.follows = "nixpkgs"; # inputs.nixpkgs.follows = "nixpkgs";
inputs.lix-module.follows = "lix-module"; # inputs.lix-module.follows = "lix-module";
# make lix-module source of truth # # make lix-module source of truth
inputs.lix.follows = "lix-module/lix"; # inputs.lix.follows = "lix-module/lix";
}; # inputs.nix-github-actions.follows = "";
# };
# roc = { # roc = {
# url = "github:roc-lang/roc"; # url = "github:roc-lang/roc";
@ -95,7 +96,7 @@
nixos-wsl.inputs.flake-compat.follows = ""; nixos-wsl.inputs.flake-compat.follows = "";
nixpkgs-wayland.inputs.flake-compat.follows = ""; nixpkgs-wayland.inputs.flake-compat.follows = "";
nixpkgs-wayland.inputs.nix-eval-jobs.follows = ""; nixpkgs-wayland.inputs.nix-eval-jobs.follows = "";
lix-attic.inputs.nix-github-actions.follows = "";
}; };
nixConfig = { nixConfig = {

View file

@ -1,7 +1,6 @@
{ {
pkgs, pkgs,
enabled, enabled,
flake,
... ...
}: }:
let let
@ -25,13 +24,12 @@ in
}; };
security.polkit = enabled; # attic was looking for this... security.polkit = enabled; # attic was looking for this...
environment.systemPackages = [ (flake.pkgs "self").attic-client ]; environment.systemPackages = with pkgs; [ attic-client ];
# allow docker to forward the request to the host running attic # allow docker to forward the request to the host running attic
# https://discourse.nixos.org/t/docker-container-not-resolving-to-host/30259/6 # https://discourse.nixos.org/t/docker-container-not-resolving-to-host/30259/6
# networking.firewall.extraCommands = "iptables -A INPUT -p tcp --destination-port ${atticPort} -s 172.16.0.0/12 -j ACCEPT"; # networking.firewall.extraCommands = "iptables -A INPUT -p tcp --destination-port ${atticPort} -s 172.16.0.0/12 -j ACCEPT";
services.atticd = enabled // { services.atticd = enabled // {
package = (flake.pkgs "self").attic-server;
# Replace with absolute path to your credentials file # Replace with absolute path to your credentials file
# TODO: replace with sops-secret! # TODO: replace with sops-secret!

View file

@ -1,7 +1,6 @@
{ {
config, config,
enabled, enabled,
flake,
... ...
}: }:
{ {
@ -28,8 +27,4 @@
}; };
}; };
environment.systemPackages = [
(flake.pkgs "self").attic-client
];
} }

View file

@ -8,3 +8,4 @@ graphviz
charm-freeze charm-freeze
quarto quarto
calibre calibre
attic-client

View file

@ -5,10 +5,8 @@
(final: prev: { (final: prev: {
# make sure attic is using this lix
nix = inputs.self.packages.${final.system}.lix; nix = inputs.self.packages.${final.system}.lix;
stable = import inputs.stable { stable = import inputs.stable {
system = final.system; system = final.system;
config.allowUnfree = true; config.allowUnfree = true;

View file

@ -6,14 +6,6 @@
let let
inherit (lib) flakeFromSystem; inherit (lib) flakeFromSystem;
flake = flakeFromSystem pkgs.system; flake = flakeFromSystem pkgs.system;
lix = pkgs.callPackage ./lix { inherit flake; };
# make attic also use the "no check lix"
atticPackages = pkg: {
"${pkg}" = (flake.pkgs "lix-attic").${pkg}.overrideAttrs (oldAttrs: {
buildInputs = [ pkgs.boost lix ];
});
};
in in
{ {
@ -25,10 +17,8 @@ in
llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins { }; llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins { };
lix = lix; lix = pkgs.callPackage ./lix { inherit flake; };
} }
// (atticPackages "attic-client")
// (atticPackages "attic-server")
// (flake.toPackageAttrs [ // (flake.toPackageAttrs [
"pixi" "pixi"
"f1multiviewer" "f1multiviewer"

View file

@ -1,5 +1,6 @@
{ flake, ... }: { flake, ... }:
((flake.pkgs "lix-module").default.override { ((flake.pkgs "lix-module").default.override {
# is this doing anything?
aws-sdk-cpp = null; aws-sdk-cpp = null;
}).overrideAttrs }).overrideAttrs
(attrs: { (attrs: {

View file

@ -2,6 +2,7 @@
## oizys ## oizys
## software ## software
- [ ] switch systemd desktop file to libvirt VM - [ ] switch systemd desktop file to libvirt VM