home, darwin: sorting

This commit is contained in:
Guanran Wang 2023-11-29 22:10:09 +08:00
parent 2c33dc6b8e
commit cd0e5a48bf
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
6 changed files with 44 additions and 34 deletions

View file

@ -1,13 +1,6 @@
{...}: { {...}: {
### home-manager ### home-manager
home-manager.users.guanranwang.imports = map (n: ../../../../home-manager/${n}) [ home-manager.users.guanranwang.imports = map (n: ../../../../home-manager/${n}) [
"applications/alacritty"
"applications/fish"
"applications/bash"
"applications/helix"
"applications/neovim"
"applications/vscode"
"profiles/graphical-stuff/darwin" "profiles/graphical-stuff/darwin"
]; ];
} }

View file

@ -1,19 +1,3 @@
{ {pkgs, ...}: {
pkgs, home.packages = [pkgs.spotify];
inputs,
...
}: let
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
in {
# import the flake's module for your system
imports = [inputs.spicetify-nix.homeManagerModule];
# configure spicetify :)
programs.spicetify = {
enable = true;
enabledExtensions = with spicePkgs.extensions; [
adblock
keyboardShortcut
];
};
} }

View file

@ -0,0 +1,19 @@
{
pkgs,
inputs,
...
}: let
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
in {
# import the flake's module for your system
imports = [inputs.spicetify-nix.homeManagerModule];
# configure spicetify :)
programs.spicetify = {
enable = true;
enabledExtensions = with spicePkgs.extensions; [
adblock
keyboardShortcut
];
};
}

View file

@ -4,6 +4,28 @@
lib, lib,
... ...
}: { }: {
imports = map (n: ../../../../home-manager/applications/${n}) [
# Terminal
"alacritty"
# Shell
"fish"
"bash"
# Editor
"helix"
"neovim"
"vscode"
# Language
"nix"
"go"
# Media
"mpv"
"spotify"
];
home = { home = {
activation = { activation = {
# Workaround for spotlight indexing # Workaround for spotlight indexing

View file

@ -33,7 +33,7 @@
# Media # Media
"loupe" "loupe"
"mpv" "mpv"
"spotify" "spotify/spicetify"
"amberol" "amberol"
"mousai" "mousai"

View file

@ -1,8 +0,0 @@
{pkgs, ...}: {
programs.mpv.enable = true;
home.packages = with pkgs; [
### Streaming
spotify
yesplaymusic
];
}