Up
This commit is contained in:
parent
884b366ed2
commit
a17cf20b6d
@ -4,7 +4,7 @@ This is my dotfiles repo. It's a work in progress, and I'm still learning how to
|
|||||||
|
|
||||||
# TODOLIST
|
# TODOLIST
|
||||||
|
|
||||||
- [ ] import theme globally
|
- [x] import theme globally
|
||||||
- [ ] Variable user & homeDir
|
- [ ] Variable user & homeDir
|
||||||
- [ ] Settings fzf
|
- [ ] Settings fzf
|
||||||
- [ ] Nixvim Alpha config
|
- [ ] Nixvim Alpha config
|
||||||
|
71
flake.lock
71
flake.lock
@ -151,6 +151,24 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-utils_4": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_4"
|
||||||
|
},
|
||||||
|
"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": {
|
"gitignore": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -267,6 +285,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1686020360,
|
||||||
|
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "4729ffac6fd12e26e5a8de002781ffc49b0e94b7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixvim": {
|
"nixvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
@ -338,7 +372,8 @@
|
|||||||
"apple-fonts": "apple-fonts",
|
"apple-fonts": "apple-fonts",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixvim": "nixvim"
|
"nixvim": "nixvim",
|
||||||
|
"spicetify-nix": "spicetify-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sf-arabic": {
|
"sf-arabic": {
|
||||||
@ -389,6 +424,25 @@
|
|||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"spicetify-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_4",
|
||||||
|
"nixpkgs": "nixpkgs_3"
|
||||||
|
},
|
||||||
|
"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": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
@ -433,6 +487,21 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems_4": {
|
||||||
|
"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",
|
"root": "root",
|
||||||
|
@ -12,9 +12,10 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
||||||
|
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, nixvim, ... }: {
|
outputs = inputs@{ nixpkgs, home-manager, nixvim, spicetify-nix, ... }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
nixy = nixpkgs.lib.nixosSystem {
|
nixy = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@ -27,7 +28,7 @@
|
|||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.hadi = import ./home/home.nix;
|
home-manager.users.hadi = import ./home/home.nix;
|
||||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
home-manager.extraSpecialArgs = { inherit inputs; inherit spicetify-nix; };
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
imports = [ ../variables/theme ];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ libnotify ];
|
home.packages = with pkgs; [ libnotify ];
|
||||||
|
|
||||||
services.dunst = {
|
services.dunst = {
|
||||||
@ -13,7 +11,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
rounded = "yes";
|
rounded = "yes";
|
||||||
origin = "top-right";
|
origin = "top-center";
|
||||||
monitor = "0";
|
monitor = "0";
|
||||||
alignment = "left";
|
alignment = "left";
|
||||||
vertical_alignment = "center";
|
vertical_alignment = "center";
|
||||||
@ -43,7 +41,7 @@
|
|||||||
"<b>%s</b>\\n%b"; # format = "<span foreground='#f3f4f5'><b>%s %p</b></span>\n%b"
|
"<b>%s</b>\\n%b"; # format = "<span foreground='#f3f4f5'><b>%s %p</b></span>\n%b"
|
||||||
frame_color = "#" + config.theme.colors.bg;
|
frame_color = "#" + config.theme.colors.bg;
|
||||||
frame_width = 1;
|
frame_width = 1;
|
||||||
offset = "15x15";
|
offset = "0x10";
|
||||||
horizontal_padding = 10;
|
horizontal_padding = 10;
|
||||||
icon_position = "left";
|
icon_position = "left";
|
||||||
indicate_hidden = "yes";
|
indicate_hidden = "yes";
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
|
|
||||||
home.username = "hadi";
|
home.username = "hadi";
|
||||||
home.homeDirectory = "/home/hadi";
|
home.homeDirectory = "/home/hadi";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
swappy
|
swappy
|
||||||
spotify
|
|
||||||
imv
|
imv
|
||||||
discord
|
discord
|
||||||
obsidian
|
obsidian
|
||||||
@ -50,5 +50,7 @@
|
|||||||
./nextcloud
|
./nextcloud
|
||||||
./scripts
|
./scripts
|
||||||
./neofetch
|
./neofetch
|
||||||
|
./spicetify
|
||||||
|
./variables/theme
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, config, ... }: {
|
{ pkgs, config, ... }: {
|
||||||
|
|
||||||
imports = [ ./hyprlock.nix ./hypridle.nix ../variables/theme ];
|
imports = [ ./hyprlock.nix ./hypridle.nix ];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
xdg-desktop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{ pkgs, config, ... }: {
|
{ pkgs, config, ... }: {
|
||||||
|
|
||||||
imports = [ ../variables/theme ];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ hyprlock ];
|
home.packages = with pkgs; [ hyprlock ];
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprlock.conf".text = ''
|
xdg.configFile."hypr/hyprlock.conf".text = ''
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
|
||||||
imports = [ ../variables/theme ];
|
|
||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -737,7 +737,7 @@ image_backend="ascii"
|
|||||||
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
|
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
|
||||||
# In ascii mode, distro ascii art will be used and in an image mode, your
|
# In ascii mode, distro ascii art will be used and in an image mode, your
|
||||||
# wallpaper will be used.
|
# wallpaper will be used.
|
||||||
image_source="auto"
|
image_source="$HOME/.config/neofetch/ascii.txt"
|
||||||
|
|
||||||
|
|
||||||
# Ascii Options
|
# Ascii Options
|
||||||
|
@ -55,32 +55,46 @@
|
|||||||
val = 4;
|
val = 4;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
opts = {
|
|
||||||
position = "center";
|
|
||||||
cursor = 3;
|
|
||||||
width = 50;
|
|
||||||
align_shortcut = "right";
|
|
||||||
hl_shortcut = "Keyword";
|
|
||||||
};
|
|
||||||
type = "group";
|
type = "group";
|
||||||
val = [
|
val = [
|
||||||
{
|
{
|
||||||
type = "button";
|
type = "button";
|
||||||
val = " New file";
|
val = " New file";
|
||||||
on_press.__raw = "function() vim.cmd[[ene]] end";
|
on_press.__raw = "function() vim.cmd[[ene]] end";
|
||||||
opts.shortcut = "n";
|
opts = {
|
||||||
|
shortcut = "n";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "Keyword";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
type = "button";
|
type = "button";
|
||||||
val = " NixOs Config";
|
val = " NixOs Config";
|
||||||
on_press.__raw = "function() vim.cmd[[e ~/.config/nixos]] end";
|
on_press.__raw = "function() vim.cmd[[e ~/.config/nixos]] end";
|
||||||
opts.shortcut = "n";
|
opts = {
|
||||||
|
shortcut = "c";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "Keyword";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
type = "button";
|
type = "button";
|
||||||
val = " Quit Neovim";
|
val = " Quit Neovim";
|
||||||
on_press.__raw = "function() vim.cmd[[qa]] end";
|
on_press.__raw = "function() vim.cmd[[qa]] end";
|
||||||
opts.shortcut = "q";
|
opts = {
|
||||||
|
shortcut = "q";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "Keyword";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
|
||||||
imports = [ ../variables/theme ];
|
|
||||||
|
|
||||||
xdg.configFile."duckduckgo-colorscheme.js".text = ''
|
xdg.configFile."duckduckgo-colorscheme.js".text = ''
|
||||||
// Cookies string for your theme
|
// Cookies string for your theme
|
||||||
const cookie = '7=${config.theme.colors.bg}; j=${config.theme.colors.bg}; 9=${config.theme.colors.fg}; aa=${config.theme.colors.alt-fg}; 8=${config.theme.colors.color7}; x=${config.theme.colors.primary-bg}; 21=${config.theme.colors.alt-bg};';
|
const cookie = '7=${config.theme.colors.bg}; j=${config.theme.colors.bg}; 9=${config.theme.colors.fg}; aa=${config.theme.colors.alt-fg}; 8=${config.theme.colors.color7}; x=${config.theme.colors.primary-bg}; 21=${config.theme.colors.alt-bg};';
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
historySubstringSearch.enable = true;
|
historySubstringSearch.enable = true;
|
||||||
|
|
||||||
initExtraFirst = "nerdfetch";
|
initExtraFirst = "neofetch";
|
||||||
|
|
||||||
history = {
|
history = {
|
||||||
ignoreDups = true;
|
ignoreDups = true;
|
||||||
|
40
home/spicetify/default.nix
Normal file
40
home/spicetify/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ pkgs, config, lib, spicetify-nix, ... }:
|
||||||
|
let spicePkgs = spicetify-nix.packages.${pkgs.system}.default;
|
||||||
|
in {
|
||||||
|
|
||||||
|
imports = [ spicetify-nix.homeManagerModules.default ];
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [ "spotify" ];
|
||||||
|
programs.spicetify = {
|
||||||
|
enable = true;
|
||||||
|
theme = spicePkgs.themes.text;
|
||||||
|
colorScheme = "custom";
|
||||||
|
|
||||||
|
customColorScheme = {
|
||||||
|
text = "${config.theme.colors.fg}";
|
||||||
|
subtext = "${config.theme.colors.alt-fg}";
|
||||||
|
sidebar-text = "${config.theme.colors.alt-fg}";
|
||||||
|
main = "${config.theme.colors.bg}";
|
||||||
|
sidebar = "${config.theme.colors.bg}";
|
||||||
|
background = "${config.theme.colors.bg}";
|
||||||
|
player = "${config.theme.colors.bg}";
|
||||||
|
card = "${config.theme.colors.bg}";
|
||||||
|
shadow = "000000";
|
||||||
|
selected-row = "797979";
|
||||||
|
button = "31748f";
|
||||||
|
button-active = "31748f";
|
||||||
|
button-disabled = "555169";
|
||||||
|
tab-active = "00FF00";
|
||||||
|
misc = "00FF00";
|
||||||
|
};
|
||||||
|
|
||||||
|
enabledExtensions = with spicePkgs.extensions; [
|
||||||
|
playlistIcons
|
||||||
|
lastfm
|
||||||
|
historyShortcut
|
||||||
|
hidePodcasts
|
||||||
|
fullAppDisplay
|
||||||
|
shuffle
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -1,5 +1,4 @@
|
|||||||
{ pkgs, config, lib, ... }: {
|
{ pkgs, config, lib, ... }: {
|
||||||
imports = [ ../variables/theme ];
|
|
||||||
services = {
|
services = {
|
||||||
blueman-applet.enable = true;
|
blueman-applet.enable = true;
|
||||||
network-manager-applet.enable = true;
|
network-manager-applet.enable = true;
|
||||||
@ -207,7 +206,6 @@
|
|||||||
|
|
||||||
#custom-logo {
|
#custom-logo {
|
||||||
padding-right: 7px;
|
padding-right: 7px;
|
||||||
padding-left: 7px;
|
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: #${config.theme.colors.primary-bg};
|
color: #${config.theme.colors.primary-bg};
|
||||||
}
|
}
|
||||||
@ -232,14 +230,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#battery.charging {
|
#battery.charging {
|
||||||
background-color: #1E1E2E;
|
background-color: #${config.theme.colors.alt-bg};
|
||||||
color: #FBFBFB;
|
color: #${config.theme.colors.alt-fg};
|
||||||
animation: none;
|
animation: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-power {
|
#custom-power {
|
||||||
background-color: #9978F8;
|
background-color: #${config.theme.colors.primary-bg};
|
||||||
color: #0C0C0C;
|
color: #${config.theme.colors.primary-fg};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
|
||||||
imports = [ ../variables/theme ];
|
|
||||||
|
|
||||||
programs.wlogout = {
|
programs.wlogout = {
|
||||||
enable = true;
|
enable = true;
|
||||||
layout = [
|
layout = [
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
|
||||||
imports = [ ../variables/theme ];
|
|
||||||
|
|
||||||
programs.wofi = {
|
programs.wofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user