mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:49:41 +00:00
Compare commits
2 commits
21cf34330e
...
3c22f0372a
Author | SHA1 | Date | |
---|---|---|---|
ItsDrike | 3c22f0372a | ||
ItsDrike | 1fc8542b60 |
57
flake.lock
57
flake.lock
|
@ -88,6 +88,24 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils_2": {
|
||||
"inputs": {
|
||||
"systems": "systems_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685518550,
|
||||
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gitignore": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -240,7 +258,8 @@
|
|||
"home-manager": "home-manager",
|
||||
"impermanence": "impermanence",
|
||||
"lanzaboote": "lanzaboote",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"spicetify": "spicetify"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
|
@ -268,6 +287,27 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"spicetify": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_2",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1704167711,
|
||||
"narHash": "sha256-kFDq+kf/Di/P8bq5sUP8pVwRkrSVrABksBjMPmLic3s=",
|
||||
"owner": "the-argus",
|
||||
"repo": "spicetify-nix",
|
||||
"rev": "1325416f951d6a82cfddb1289864ad782e2b87c4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "the-argus",
|
||||
"repo": "spicetify-nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
|
@ -282,6 +322,21 @@
|
|||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_2": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
|
@ -17,6 +17,11 @@
|
|||
url = "github:nix-community/lanzaboote/v0.3.0";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
spicetify = {
|
||||
url = "github:the-argus/spicetify-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {self, nixpkgs, ...} @ inputs: let
|
||||
|
|
5
home/programs/graphical/apps/default.nix
Normal file
5
home/programs/graphical/apps/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./spotify
|
||||
];
|
||||
}
|
45
home/programs/graphical/apps/spotify/default.nix
Normal file
45
home/programs/graphical/apps/spotify/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
lib,
|
||||
osConfig,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
cfg = osConfig.myOptions.home-manager.programs.spotify;
|
||||
spicePkgs = inputs.spicetify.packages.${pkgs.system}.default;
|
||||
in {
|
||||
imports = [inputs.spicetify.homeManagerModule];
|
||||
config = mkIf cfg.enable {
|
||||
programs.spicetify = {
|
||||
enable = true;
|
||||
injectCss = true;
|
||||
replaceColors = true;
|
||||
|
||||
overwriteAssets = true;
|
||||
sidebarConfig = true;
|
||||
enabledCustomApps = with spicePkgs.apps; [
|
||||
lyrics-plus
|
||||
new-releases
|
||||
];
|
||||
|
||||
theme = spicePkgs.themes.catppuccin;
|
||||
colorScheme = "mocha";
|
||||
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
fullAppDisplay
|
||||
shuffle # shuffle+ (special characters are sanitized out of ext names)
|
||||
hidePodcasts
|
||||
playlistIcons
|
||||
lastfm
|
||||
historyShortcut
|
||||
bookmark
|
||||
fullAlbumDate
|
||||
groupSession
|
||||
popupLyrics
|
||||
# TODO: genre, see: https://github.com/the-argus/spicetify-nix/issues/50
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -2,5 +2,6 @@ _: {
|
|||
imports = [
|
||||
./wms
|
||||
./launchers
|
||||
./apps
|
||||
];
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"SUPER, W, killactive,"
|
||||
"SUPER, F, togglefloating,"
|
||||
"SUPER, Space, fullscreen, 0"
|
||||
"SUPER, Space, fullscreen, 1" # maximize
|
||||
"SUPER, Space_SHIFT, fullscreen, 1" # maximize
|
||||
"SUPER_SHIFT, S, layoutmsg, togglesplit"
|
||||
|
||||
#
|
||||
|
|
|
@ -12,6 +12,7 @@ in
|
|||
{
|
||||
vboxnix = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit lib inputs self; };
|
||||
modules = [
|
||||
./vbox_nix
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
@ -22,6 +23,7 @@ in
|
|||
|
||||
herugrim = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit lib inputs self; };
|
||||
modules = [
|
||||
./herugrim
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
|
|
@ -93,6 +93,10 @@
|
|||
"eDP-1, 1920x1080@60, 0x0, 1"
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
spotify.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,5 +11,7 @@ in
|
|||
description = "Enable Walker launcher.";
|
||||
};
|
||||
};
|
||||
|
||||
spotify.enable = mkEnableOption "Spotify";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue