Compare commits

...

6 Commits

9 changed files with 36 additions and 9 deletions

View File

@ -60,6 +60,12 @@
inherit (inputs.pkg-android-tools.legacyPackages.${final.system}) inherit (inputs.pkg-android-tools.legacyPackages.${final.system})
android-tools android-udev-rules; android-tools android-udev-rules;
}) })
(final: prev: let
packages = import ./pkgs { inherit (prev) pkgs; };
in {
inherit (packages) mopidy-autoplay google-fonts;
atool-wrapped = packages.atool;
})
inputs.hyprwm-contrib.overlays.default inputs.hyprwm-contrib.overlays.default
inputs.rust-overlay.overlays.default inputs.rust-overlay.overlays.default
]; ];
@ -194,7 +200,8 @@
# (extraS|s)pecialArgs to pass variables # (extraS|s)pecialArgs to pass variables
nixosModules = (import ./modules/nixos) moduleInputs; nixosModules = (import ./modules/nixos) moduleInputs;
homeManagerModules = (import ./modules/home-manager) moduleInputs; homeManagerModules = (import ./modules/home-manager) moduleInputs;
packages = eachSystem (system: import ./pkgs { inherit nixpkgs system; }); packages = eachSystem (system: let pkgs = import nixpkgs { inherit system; };
in import ./pkgs { inherit pkgs; });
apps = eachSystem (system: import ./pkgs/apps.nix apps = eachSystem (system: import ./pkgs/apps.nix
{ inherit (self.outputs) packages; inherit system; }); { inherit (self.outputs) packages; inherit system; });

View File

@ -21,6 +21,7 @@ in
mopidy-soundcloud mopidy-soundcloud
mopidy-scrobbler mopidy-scrobbler
# outputs.packages.${pkgs.system}.mopidy-autoplay # outputs.packages.${pkgs.system}.mopidy-autoplay
mopidy-autoplay
]; ];
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [

View File

@ -3,9 +3,10 @@
config = { config = {
networking.hostName = "nixos-wsl"; networking.hostName = "nixos-wsl";
nixfiles.profile.base.enable = true; nixfiles.profile.base.enable = true;
networking.networkmanager.enable = false;
programs.gnupg.agent = { programs.gnupg.agent = {
enable = true; enable = true;
pinentryFlavor = "gnome3"; pinentryFlavor = "qt";
}; };
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [

View File

@ -4,6 +4,10 @@
nixfiles = { nixfiles = {
profile.base.enable = true; profile.base.enable = true;
packageSets.dev.enable = true; packageSets.dev.enable = true;
programs.mopidy.enable = true;
};
home.file.windows-home = {
source = config.lib.file.mkOutOfStoreSymlink "/mnt/c/Users/nullbite";
}; };
}; };
} }

View File

@ -1,11 +1,14 @@
{ nixpkgs, system, ... }: { pkgs, ... }:
let let
pkgs = import nixpkgs { inherit system; }; inherit (pkgs) callPackage callPackages;
inherit (pkgs) callPackage;
mopidyPackages = callPackages ./mopidy {
python = pkgs.python3;
};
in in
{ {
inherit (mopidyPackages) mopidy-autoplay ;
google-fonts = callPackage ./google-fonts { }; google-fonts = callPackage ./google-fonts { };
wm-helpers = callPackage ./wm-helpers { }; wm-helpers = callPackage ./wm-helpers { };
atool = callPackage ./atool-wrapped { }; atool = callPackage ./atool-wrapped { };
mopidy-autoplay = callPackage ./mopidy-autoplay { };
} }

10
pkgs/mopidy/default.nix Normal file
View File

@ -0,0 +1,10 @@
{ lib, newScope, python }:
# i have no idea what this is but there's some conflict if i don't do this
# based on https://github.com/NixOS/nixpkgs/blob/77f0d2095a8271fdb6e0d08c90a7d93631fd2748/pkgs/applications/audio/mopidy/default.nix
lib.makeScope newScope (self: with self; {
inherit python;
pythonPackages = python.pkgs;
mopidy-autoplay = callPackage ./autoplay.nix { };
})

View File

@ -48,7 +48,7 @@ in
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; }) (nerdfonts.override { fonts = [ "FiraCode" ]; })
noto-fonts-cjk noto-fonts-cjk
(outputs.packages.${pkgs.system}.google-fonts.override { fonts = [ "NovaSquare" ];}) google-fonts.override { fonts = [ "NovaSquare" ];}
]; ];
# TODO this should be defined in home-manager or not at all probably # TODO this should be defined in home-manager or not at all probably

View File

@ -39,6 +39,7 @@ in
# networking.hostName = "nixos"; # Define your hostname. # networking.hostName = "nixos"; # Define your hostname.
# Pick only one of the below networking options. # Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# FIXME find somewhere else to put this
networking.networkmanager.enable = lib.mkDefault true; # Easiest to use and most distros use this by default. networking.networkmanager.enable = lib.mkDefault true; # Easiest to use and most distros use this by default.
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
@ -58,7 +59,7 @@ in
file file
tree tree
moreutils moreutils
bsdtar libarchive
fd fd
ripgrep ripgrep
@ -93,7 +94,7 @@ in
# etc # etc
neofetch neofetch
outputs.packages."${pkgs.system}".atool atool-wrapped
]; ];
# Needed for Kvantum themes to be detected # Needed for Kvantum themes to be detected