modules: move nix registry hack to interactive/graphical hosts
Turns out, not really elsewhere.main
parent
3715c6d77a
commit
1b0eef2993
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue