remove nix-index-database from rpi (#95)

* remove nix-index-database from rpi

* Udev fix

* flake update

* add git alias

* Remove unused flake input

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

---------

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
Co-authored-by: Fabius <fabius2001@hotmail.de>
Co-authored-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
Dennis 2024-02-17 15:51:38 +01:00 committed by GitHub
parent db7a7938ee
commit 4c4801d6a8
3 changed files with 14 additions and 12 deletions

12
flake.lock generated
View File

@ -327,19 +327,19 @@
"type": "github" "type": "github"
} }
}, },
"patch-pcsclite": { "patch-systemd": {
"locked": { "locked": {
"lastModified": 1707199254, "lastModified": 1707546158,
"narHash": "sha256-8jDsoIn5v3JcDXCeGMYA/fUWvrTzTZEg7J4PwcgYX/I=", "narHash": "sha256-nYYJTpzfPMDxI8mzhQsYjIUX+grorqjKEU9Np6Xwy/0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "952bd699447d82d69f4b15d994d5dc232e7addfb", "rev": "d934204a0f8d9198e1e4515dd6fec76a139c87f0",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "952bd699447d82d69f4b15d994d5dc232e7addfb", "rev": "d934204a0f8d9198e1e4515dd6fec76a139c87f0",
"type": "github" "type": "github"
} }
}, },
@ -356,7 +356,7 @@
"nixos-modules": "nixos-modules", "nixos-modules": "nixos-modules",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-fmt": "nixpkgs-fmt", "nixpkgs-fmt": "nixpkgs-fmt",
"patch-pcsclite": "patch-pcsclite", "patch-systemd": "patch-systemd",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"systems": "systems" "systems": "systems"
} }

View File

@ -23,8 +23,8 @@
}; };
inputs = { inputs = {
#pcsc can not cross compile # pcsc, fido2, systemd can not cross compile
patch-pcsclite.url = "github:nixos/nixpkgs?rev=952bd699447d82d69f4b15d994d5dc232e7addfb"; patch-systemd.url = "github:nixos/nixpkgs?rev=d934204a0f8d9198e1e4515dd6fec76a139c87f0";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default"; systems.url = "github:nix-systems/default";
@ -105,7 +105,7 @@
}; };
}; };
outputs = { self, nixpkgs-fmt, nix, home-manager, mailserver, nix-pre-commit, nixos-modules, nixpkgs, sops-nix, patch-pcsclite, ... }@inputs: outputs = { self, nixpkgs-fmt, nix, home-manager, mailserver, nix-pre-commit, nixos-modules, nixpkgs, sops-nix, ... }@inputs:
let let
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
systems = [ systems = [
@ -220,9 +220,10 @@
}) users) else [ ]) }) users) else [ ])
++ lib.optional (system != "x86_64-linux") { ++ lib.optional (system != "x86_64-linux") {
nixpkgs.overlays = [ nixpkgs.overlays = [
(_self: super: { (_self: super: (builtins.listToAttrs (map (name: {
pcsclite = patch-pcsclite.legacyPackages.${system}.pcsclite; name = name;
}) value = inputs.patch-systemd.legacyPackages.${system}.${name};
}) (builtins.attrNames inputs.patch-systemd.legacyPackages.${system}))))
]; ];
} ++ lib.optional (system != "x86_64-linux") { } ++ lib.optional (system != "x86_64-linux") {
config.nixpkgs = { config.nixpkgs = {

View File

@ -20,6 +20,7 @@
filesystem = "zfs"; filesystem = "zfs";
useSystemdBoot = true; useSystemdBoot = true;
kernelParams = [ "i915.force_probe=56a5" "i915.enable_guc=2" ]; kernelParams = [ "i915.force_probe=56a5" "i915.enable_guc=2" ];
binfmt.emulatedSystems = [ "aarch64-linux" ];
}; };
nix = { nix = {