finally got anyrun working, i had forgotten to import inputs to home.nix 💀

This commit is contained in:
Gabriella Bere 2024-08-24 13:22:04 +01:00
parent aa857f5373
commit 6764996241
3 changed files with 43 additions and 40 deletions

View file

@ -17,22 +17,23 @@
};
};
outputs = { self, nixpkgs, stablepkgs, home-manager, ... } @ inputs:
outputs = { self, nixpkgs, stablepkgs, ... } @ inputs:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
stable = stablepkgs.legacyPacakges.x86_64-linux;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
stable = stablepkgs.legacyPacakges.${system};
in
{
nixosConfigurations.gabbielaptop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
inherit system;
modules = [
# Import configuration modules
./hosts/gabbielaptop/configuration.nix
./modules/nh.nix
./modules/environment.nix
./modules/waydroid.nix
home-manager.nixosModules.default
inputs.home-manager.nixosModules.default
# inputs.anyrun.homeManagerModules.default
];
};

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, inputs, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
@ -6,6 +6,10 @@
home.username = "blue";
home.homeDirectory = "/home/blue";
imports = [
inputs.anyrun.homeManagerModules.default
];
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
@ -247,40 +251,40 @@
};
};
# programs.anyrun = {
# enable = true;
# config = {
# plugins = [
programs.anyrun = {
enable = true;
config = {
plugins = [
# An array of all the plugins you want, which either can be paths to the .so files, or their packages
# inputs.anyrun.packages.${pkgs.system}.applications
inputs.anyrun.packages.${pkgs.system}.applications
# ./some_plugin.so
# "${inputs.anyrun.packages.${pkgs.system}.anyrun-with-all-plugins}/lib/kidex"
# ];
# x = { fraction = 0.5; };
# y = { fraction = 0.3; };
# width = { fraction = 0.3; };
# hideIcons = false;
# ignoreExclusiveZones = false;
# layer = "overlay";
# hidePluginInfo = false;
# closeOnClick = false;
# showResultsImmediately = false;
# maxEntries = null;
# };
# extraCss = ''
# .some_class {
# background: red;
# }
# '';
];
x = { fraction = 0.5; };
y = { fraction = 0.3; };
width = { fraction = 0.3; };
hideIcons = false;
ignoreExclusiveZones = false;
layer = "overlay";
hidePluginInfo = false;
closeOnClick = false;
showResultsImmediately = false;
maxEntries = null;
};
extraCss = ''
.some_class {
background: red;
}
'';
# extraConfigFiles."some-plugin.ron".text = ''
# Config(
# // for any other plugin
# // this file will be put in ~/.config/anyrun/some-plugin.ron
# // refer to docs of xdg.configFile for available options
# )
# '';
# };
extraConfigFiles."some-plugin.ron".text = ''
Config(
// for any other plugin
// this file will be put in ~/.config/anyrun/some-plugin.ron
// refer to docs of xdg.configFile for available options
)
'';
};
services.blueman-applet.enable = true;
programs.htop.enable = true;

View file

@ -101,7 +101,7 @@
users.users.blue = {
isNormalUser = true;
description = "Gabriella Bere";
extraGroups = [ "networkmanager" "wheel" "syncthing" ];
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.zsh;
};
@ -125,9 +125,6 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Enable syncthing for obsidian syncing
services.syncthing.enable = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
@ -165,6 +162,7 @@
tree
tenacity
mediawriter
anyrun
];
hardware.keyboard.qmk.enable = true;