modules: move nix registry hack to interactive/graphical hosts
CI / x86_64-linux (push) Successful in 1m12s Details
CI / aarch64-linux (push) Successful in 2m0s Details

Turns out, not really elsewhere.
main
Ari Gerus 2024-03-31 12:31:28 +02:00
parent 3715c6d77a
commit 1b0eef2993
2 changed files with 4 additions and 3 deletions

View File

@ -2,8 +2,6 @@
let
meta = import ../meta.nix;
flakes = lib.filterAttrs (name: value: value ? outputs) inputs;
nixRegistry = builtins.mapAttrs (name: v: { flake = v; }) flakes;
in {
imports = with inputs; [
nix-index-database.nixosModules.nix-index
@ -15,7 +13,6 @@ in {
];
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
nix.registry = nixRegistry;
deployment = {
allowLocalDeployment = true;

View File

@ -1,6 +1,8 @@
{ config, lib, pkgs, inputs, ... }:
let
flakes = lib.filterAttrs (name: value: value ? outputs) inputs;
nixRegistry = builtins.mapAttrs (name: v: { flake = v; }) flakes;
# rfkill block 0; rmmod btusb btintel; systemctl restart bluetooth.service; modprobe btintel; modprobe btusb; systemctl restart bluetooth.service; rfkill unblock 0
bt-unfuck = with pkgs;
writeScriptBin "bt-unfuck" ''
@ -17,6 +19,8 @@ let
in {
imports = [ inputs.self.nixosModules.common inputs.home-manager.nixosModule ];
nix.registry = nixRegistry;
home-manager.users.ar = {
home.username = "ar";
home.homeDirectory = "/home/ar";