mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-09 12:20:04 +00:00
✨ (home/jo) Add youtube-music configuration
This commit is contained in:
parent
757189c8cb
commit
b109eda2d0
9 changed files with 110 additions and 3 deletions
45
flake.lock
generated
45
flake.lock
generated
|
@ -89,6 +89,27 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"youtube-music",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1747439237,
|
||||
"narHash": "sha256-5rCGrnkglKKj4cav1U3HC+SIUNJh08pqOK4spQv9RjA=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "ae755329092c87369b9e9a1510a8cf1ce2b1c708",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixcord": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
|
@ -166,7 +187,8 @@
|
|||
"home-manager": "home-manager",
|
||||
"nixcord": "nixcord",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"sops-nix": "sops-nix"
|
||||
"sops-nix": "sops-nix",
|
||||
"youtube-music": "youtube-music"
|
||||
}
|
||||
},
|
||||
"sops-nix": {
|
||||
|
@ -221,6 +243,27 @@
|
|||
"repo": "treefmt-nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"youtube-music": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager_2",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1747498370,
|
||||
"narHash": "sha256-mJ7fLdL/A4cWHMm0n3/dcQ72Ijm+uTu/snl8iqgtbtc=",
|
||||
"owner": "h-banii",
|
||||
"repo": "youtube-music-nix",
|
||||
"rev": "410071c47bb39a5abb672cd5c1a59bc5f853d908",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "h-banii",
|
||||
"repo": "youtube-music-nix",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
|
@ -39,6 +39,11 @@
|
|||
nixcord = {
|
||||
url = "github:kaylorben/nixcord";
|
||||
};
|
||||
|
||||
youtube-music = {
|
||||
url = "github:h-banii/youtube-music-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {flake-parts, ...} @ inputs:
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
/* frappe */
|
||||
@import url("https://youtubemusic.catppuccin.com/src/frappe.css");
|
||||
|
||||
html:not(.style-scope) {
|
||||
--ctp-accent: var(--ctp-blue) !important;
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
/* latte */
|
||||
@import url("https://youtubemusic.catppuccin.com/src/latte.css");
|
||||
|
||||
html:not(.style-scope) {
|
||||
--ctp-accent: var(--ctp-blue) !important;
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
/* macchiato */
|
||||
@import url("https://youtubemusic.catppuccin.com/src/macchiato.css");
|
||||
|
||||
html:not(.style-scope) {
|
||||
--ctp-accent: var(--ctp-blue) !important;
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
/* mocha */
|
||||
@import url("https://youtubemusic.catppuccin.com/src/mocha.css");
|
||||
|
||||
html:not(.style-scope) {
|
||||
--ctp-accent: var(--ctp-blue) !important;
|
||||
}
|
29
homes/x86_64-linux/jo/apps/youtube-music/default.nix
Normal file
29
homes/x86_64-linux/jo/apps/youtube-music/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
in {
|
||||
programs.youtube-music = {
|
||||
enable = true;
|
||||
options = {
|
||||
tray = true;
|
||||
trayClickPlayPause = true;
|
||||
resumeOnStart = false;
|
||||
|
||||
themes = [
|
||||
(mkIf config.catppuccin.enable ./catppuccin-${config.catppuccin.flavor}.css)
|
||||
];
|
||||
|
||||
language = osConfig.${namespace}.system.locale.keymap;
|
||||
autoUpdates = false;
|
||||
};
|
||||
|
||||
plugins = {
|
||||
discord.enabled = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
}: {
|
||||
imports = [
|
||||
./apps/discord
|
||||
./apps/youtube-music
|
||||
];
|
||||
|
||||
puzzlevision = {
|
||||
|
@ -20,7 +21,6 @@
|
|||
|
||||
home.packages = with pkgs; [
|
||||
## GENERAL
|
||||
youtube-music
|
||||
ghostty
|
||||
teams-for-linux
|
||||
enpass
|
||||
|
|
|
@ -69,7 +69,13 @@ in {
|
|||
mkIf (userConfig.enable && homeConfigExists username) (
|
||||
{osConfig, ...}: {
|
||||
# Import user home configuration and general home modules
|
||||
imports = [(getHomeConfigPath username) inputs.sops-nix.homeManagerModules.sops inputs.catppuccin.homeModules.default inputs.nixcord.homeModules.nixcord] ++ homeModules;
|
||||
imports = [
|
||||
(getHomeConfigPath username)
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
inputs.catppuccin.homeModules.default
|
||||
inputs.nixcord.homeModules.nixcord
|
||||
inputs.youtube-music.homeManagerModules.default
|
||||
] ++ homeModules;
|
||||
|
||||
home.stateVersion = lib.mkDefault osConfig.system.stateVersion;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue