mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-24 05:07:00 -04:00
really big refactor
This commit is contained in:
parent
1d4904a4c9
commit
375a1b2e89
20 changed files with 188 additions and 151 deletions
7
common/users/homeModules/arrpc.nix
Normal file
7
common/users/homeModules/arrpc.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
services = {
|
||||
arrpc = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
17
common/users/homeModules/desktopEntries.nix
Normal file
17
common/users/homeModules/desktopEntries.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ ... }:
|
||||
{
|
||||
xdg = {
|
||||
desktopEntries = {
|
||||
spotifyOpen = {
|
||||
type = "Application";
|
||||
name = "Open in Spotify";
|
||||
genericName = "Music Player";
|
||||
icon = "spotify-client";
|
||||
terminal = false;
|
||||
categories = [ "Audio" "Music" "Player" "AudioVideo" ];
|
||||
exec = "qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri %U";
|
||||
mimeType = [ "x-scheme-handler/spotify" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
15
common/users/homeModules/flameshot.nix
Normal file
15
common/users/homeModules/flameshot.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, ... }: {
|
||||
services = {
|
||||
flameshot = {
|
||||
enable = true;
|
||||
settings = {
|
||||
General = {
|
||||
savePath = "/home/${config.home.username}/ss/";
|
||||
saveAsFileExtension = ".png";
|
||||
showDesktopNotification = false;
|
||||
startupLaunch = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
37
common/users/homeModules/zsh.nix
Normal file
37
common/users/homeModules/zsh.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib, pkgs, ... }:
|
||||
let
|
||||
|
||||
_ = [
|
||||
"source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme"
|
||||
"source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
"[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh"
|
||||
"setopt globstarshort"
|
||||
];
|
||||
zshInitArgs = lib.concatMapStrings (x: x + "\n") _;
|
||||
in
|
||||
{
|
||||
programs = {
|
||||
zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
zsh = {
|
||||
enable = true;
|
||||
oh-my-zsh.enable = true;
|
||||
initExtra = zshInitArgs;
|
||||
enableCompletion = true;
|
||||
plugins = [
|
||||
{
|
||||
name = "zsh-nix-shell";
|
||||
file = "nix-shell.plugin.zsh";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "chisui";
|
||||
repo = "zsh-nix-shell";
|
||||
rev = "v0.8.0";
|
||||
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue