Compare commits

...

4 Commits

Author SHA1 Message Date
6679483fb8 hyprland fix 2024-12-25 19:16:34 +01:00
0d45744904 if else options added to config 2024-12-25 19:16:22 +01:00
fdce9542ef unfree packages 2024-12-25 18:54:10 +01:00
678d8bf351 moved unfree packages, to its relevant places 2024-12-25 18:52:58 +01:00
15 changed files with 266 additions and 139 deletions

View File

@ -1,41 +0,0 @@
MenuBar=Disabled
[$Version]
update_info=dolphin_detailsmodesettings.upd:rename-leading-padding
[General]
ShowSelectionToggle=false
ShowStatusBar=false
Version=202
ViewPropsTimestamp=2023,4,26,16,58,48.324
[IconsMode]
MaximumTextLines=1
PreviewSize=112
[InformationPanel]
dateFormat=ShortFormat
[KFileDialog Settings]
Places Icons Auto-resize=false
Places Icons Static Size=16
[KPropertiesDialog]
1920x1080 screen: Window-Maximized=true
[MainWindow]
MenuBar=Disabled
ToolBarsMovable=Disabled
[MainWindow][Toolbar mainToolBar]
IconSize=16
ToolButtonStyle=IconOnly
[PlacesPanel]
IconSize=16
[PreviewSettings]
Plugins=appimagethumbnail,audiothumbnail,comicbookthumbnail,cursorthumbnail,djvuthumbnail,ebookthumbnail,exrthumbnail,imagethumbnail,jpegthumbnail,kraorathumbnail,windowsexethumbnail,windowsimagethumbnail,opendocumentthumbnail,svgthumbnail,ffmpegthumbs
[Toolbar mainToolBar]
ToolButtonStyle=IconOnly

View File

@ -54,13 +54,13 @@
...
} @ inputs: let
userSettings = {
username = "foglar";
username = "foglar"; # konsta or foglar (else defaulting to foglar or none)
hostname = "laptop";
shell = "bash"; # bash, zsh
terminal = "kitty";
browser = "librewolf";
editor = "neovim";
terminal = "kitty"; # kitty, alacritty
browser = "librewolf"; # firefox, librewolf, qutebrowser
editor = "neovim"; # neovim, vscode
# List all themes: $ nix build nixpkgs#base16-schemes && ls result/share/themes
theme = "catppuccin-mocha"; #tokyo-night-dark, one-dark

View File

@ -16,6 +16,7 @@
qutebrowser
ferdium
file-roller
stellarium
libreoffice
localsend

View File

@ -46,5 +46,11 @@
'')
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-unwrapped"
];
};
}

View File

@ -21,5 +21,11 @@
nodejs
pnpm
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"pycharm"
"pycharm-professional"
];
};
}

View File

@ -10,7 +10,6 @@
};
config = lib.mkIf config.app_list.terminal_tools.enable {
home.packages = with pkgs; [
btop
cmatrix
@ -27,5 +26,33 @@
ranger
unzip
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# NVTOP
"nvtopPackages.full"
"cuda-merged"
"cuda_cuobjdump"
"cuda_gdb"
"cuda_nvcc"
"cuda_nvdisasm"
"cuda_nvprune"
"cuda_cccl"
"cuda_cudart"
"cuda_cupti"
"cuda_cuxxfilt"
"cuda_nvml_dev"
"cuda_nvrtc"
"cuda_nvtx"
"cuda_profiler_api"
"cuda_sanitizer_api"
"libcublas"
"libcusolver"
"libnvjitlink"
"libcusparse"
"libnpp"
"libcufft"
"libcurand"
];
};
}

View File

@ -15,9 +15,7 @@
wl-clipboard
cliphist
#dunst
#swww
#hyprshade
(writeShellScriptBin "dontkillsteam" ''
if [[ $(hyprctl activewindow -j | ${pkgs.jq}/bin/jq -r ".class") == "Steam" ]]; then

View File

@ -25,7 +25,7 @@
xdg.portal.enable = true;
xdg.portal.config = {
common = {
default = ["gtk"];
default = ["hyprland"];
};
};
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-hyprland];
@ -136,9 +136,9 @@
"${pkgs.blueman}/bin/blueman-applet"
"${pkgs.wl-clipboard}/bin/wl-paste --type text --watch cliphist store # clipboard store text data"
"${pkgs.wl-clipboard}/bin/wl-paste --type image --watch cliphist store # clipboard store image data"
"${pkgs.swayosd}/bin/swayosd-server"
"systemctl --user start hyprpolkitagent"
"swayosd-server"
#"swww-daemon --format xrgb"
#"swww ../../aurora_borealis.png"
@ -173,12 +173,9 @@
bindr = [
"ALTSHIFT, Shift_L, exec, keyboardswitch"
"CAPS,Caps_Lock, exec, swayosd-client --caps-lock"
"CAPS,Caps_Lock, exec, ${pkgs.swayosd}/bin/swayosd-client --caps-lock"
];
#bindsr = [
#];
bindd = [
"$mod SHIFT, P, Color Picker, exec, ${pkgs.hyprpicker}/bin/hyprpicker -a"
"$mod SHIFT, R, Random Background, exec, background-switch-random"
@ -186,8 +183,8 @@
bindl = [
# Audio
",XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
",XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle"
",XF86AudioMute, exec, ${pkgs.swayosd}/bin/swayosd-client --output-volume mute-toggle"
",XF86AudioMicMute, exec, ${pkgs.swayosd}/bin/swayosd-client --input-volume mute-toggle"
# Media
"Alt, P, exec, ${pkgs.playerctl}/bin/playerctl play-pause"
@ -196,11 +193,11 @@
];
bindel = [
",XF86AudioLowerVolume, exec, swayosd-client --output-volume -5"
",XF86AudioRaiseVolume, exec, swayosd-client --output-volume 5"
",XF86AudioLowerVolume, exec, ${pkgs.swayosd}/bin/swayosd-client --output-volume -5"
",XF86AudioRaiseVolume, exec, ${pkgs.swayosd}/bin/swayosd-client --output-volume 5"
# Brightness
",XF86MonBrightnessUp, exec, swayosd-client --brightness raise"
",XF86MonBrightnessDown, exec, swayosd-client --brightness lower"
",XF86MonBrightnessUp, exec,${pkgs.swayosd}/bin/swayosd-client --brightness raise"
",XF86MonBrightnessDown, exec, ${pkgs.swayosd}/bin/swayosd-client --brightness lower"
];
binde = [

View File

@ -2,6 +2,8 @@
config,
lib,
inputs,
pkgs,
userSettings,
...
}: {
options = {
@ -13,15 +15,137 @@
enable = true;
profiles.default = {
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
#enhancer-for-youtube
ublock-origin
simple-translate
duckduckgo-privacy-essentials
return-youtube-dislikes
user-agent-string-switcher
search.engines = {
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
};
"Phind" = {
urls = [
{
template = "https://www.phind.com/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
{
name = "searchMode";
value = "always";
}
{
name = "allowMultiSearch";
value = "false";
}
];
}
];
icon = "https://www.phind.com/favicon.ico";
definedAliases = ["@phind"];
};
};
search.force = true;
settings = {
"dom.security.https_only_mode" = true;
"privacy.clearOnShutdown.history" = true;
#"identity.fxaccounts.enabled" = false;
#"signon.rememberSignons" = false;
};
bookmarks = [
{
name = "Toolbar";
toolbar = true;
bookmarks = [
{
name = "Server";
bookmarks = [
{
name = "AudioBookshelf";
tags = ["audiobookshelf"];
keyword = "audio";
url = "http://foglar.local:8080";
}
{
name = "Photos";
tags = ["photoprism"];
keyword = "photos";
url = "http://foglar.local:2342";
}
{
name = "E-books";
tags = ["Kavita"];
keyword = "kavita";
url = "http://foglar.local:5000";
}
{
name = "Films";
tags = ["jellyfin"];
keyword = "films";
url = "http://foglar.local:8097";
}
{
name = "CasaOS";
tags = ["casaos"];
keyword = "casa";
url = "http://foglar.local:7788";
}
{
name = "Torrent";
tags = ["qbittorrent"];
keyword = "torrent";
url = "http://foglar.local:8181/";
}
{
name = "Syncthing";
tags = ["syncthing"];
keyword = "sync";
url = "https://foglar.local:8384/";
}
{
name = "Git";
tags = ["gitea"];
keyword = "git";
url = "https://git.foglar.tech";
}
];
}
];
}
];
extensions = with inputs.firefox-addons.packages."x86_64-linux";
[
ublock-origin
]
++ (
if (userSettings.username == "foglar")
then [
inputs.firefox-addons.packages."x86_64-linux".simple-translate
inputs.firefox-addons.packages."x86_64-linux".duckduckgo-privacy-essentials
inputs.firefox-addons.packages."x86_64-linux".return-youtube-dislikes
inputs.firefox-addons.packages."x86_64-linux".user-agent-string-switcher
]
else []
);
};
};
};

View File

@ -26,5 +26,10 @@
#theme = spicePkgs.themes.catppuccin;
#colorScheme = "mocha";
};
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"spotify"
];
};
}

View File

@ -1,6 +1,7 @@
{
pkgs,
lib,
userSettings,
...
}: {
imports = [
@ -30,26 +31,32 @@
};
program = {
kitty.enable = lib.mkDefault true;
kitty.enable =
if userSettings.terminal == "kitty"
then lib.mkDefault true
else lib.mkDefault false;
tmux.enable = lib.mkDefault true;
zoxide.enable = lib.mkDefault true;
firefox.enable = lib.mkDefault true;
firefox.enable =
if userSettings.browser == "firefox"
then lib.mkDefault true
else lib.mkDefault false;
spotify.enable = lib.mkDefault true;
vscode = {
enable = lib.mkDefault true;
ide = {
python.enable = lib.mkDefault true;
go.enable = lib.mkDefault true;
csharp.enable = lib.mkDefault true;
python.enable = lib.mkDefault false;
go.enable = lib.mkDefault false;
csharp.enable = lib.mkDefault false;
cpp.enable = lib.mkDefault false;
web.enable = lib.mkDefault true;
web.enable = lib.mkDefault false;
};
nix.enable = lib.mkDefault true;
markdown.enable = lib.mkDefault true;
ai.enable = lib.mkDefault true;
git.enable = lib.mkDefault true;
nix.enable = lib.mkDefault false;
markdown.enable = lib.mkDefault false;
ai.enable = lib.mkDefault false;
git.enable = lib.mkDefault false;
themes.enable = lib.mkDefault false;
};
@ -83,54 +90,4 @@
nh
nixd
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"discord"
"spotify"
"pycharm"
"pycharm-professional"
"steam"
"steam-unwrapped"
"gitkraken"
# VSCODE
"vscode"
"vscode-extension-github-codespaces"
"vscode-extension-ms-vscode-remote-remote-ssh"
"vscode-extension-ms-vscode-remote-remote-ssh-edit"
"vscode-extension-github-copilot"
"vscode-extension-github-copilot-chat"
"vscode-extension-MS-python-vscode-pylance"
"vscode-extension-ms-dotnettools-csdevkit"
"vscode-extension-ms-dotnettools-vscodeintellicode-csharp"
# NVTOP
"nvtopPackages.full"
"cuda-merged"
"cuda_cuobjdump"
"cuda_gdb"
"cuda_nvcc"
"cuda_nvdisasm"
"cuda_nvprune"
"cuda_cccl"
"cuda_cudart"
"cuda_cupti"
"cuda_cuxxfilt"
"cuda_nvml_dev"
"cuda_nvrtc"
"cuda_nvtx"
"cuda_profiler_api"
"cuda_sanitizer_api"
"libcublas"
"libcusolver"
"libnvjitlink"
"libcusparse"
"libnpp"
"libcufft"
"libcurand"
];
}

View File

@ -27,6 +27,20 @@
vscode
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# VSCODE
"vscode"
"vscode-extension-github-codespaces"
"vscode-extension-ms-vscode-remote-remote-ssh"
"vscode-extension-ms-vscode-remote-remote-ssh-edit"
"vscode-extension-github-copilot"
"vscode-extension-github-copilot-chat"
"vscode-extension-MS-python-vscode-pylance"
"vscode-extension-ms-dotnettools-csdevkit"
"vscode-extension-ms-dotnettools-vscodeintellicode-csharp"
];
programs.vscode = {
enable = true;

View File

@ -21,5 +21,10 @@
github-cli
gitkraken
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"gitkraken"
];
};
}

View File

@ -6,10 +6,15 @@
...
}: {
options = {
default-applications.enable = lib.mkEnableOption "Enable default applications";
sys.default-applications.enable = lib.mkEnableOption "Enable default applications";
xdg.da.browser = lib.mkOption {
type = lib.types.str;
default = "firefox";
description = "Default browser";
};
};
config = lib.mkIf config.default-applications.enable {
config = lib.mkIf config.sys.default-applications.enable {
environment.sessionVariables = {
DEFAULT_BROWSER = "${pkgs."${userSettings.browser}"}/bin/${userSettings.browser}";
TERMINAL = "${pkgs."${userSettings.terminal}"}/bin/${userSettings.terminal}";
@ -18,14 +23,25 @@
# Default applications configuration
xdg.mime.enable = true;
xdg.da.browser =
if userSettings.browser == "qutebrowser"
then "org.qutebrowser.qutebrowser"
else
(
if userSettings.browser == "librewolf"
then "librewolf"
else "firefox"
);
xdg.mime.defaultApplications = {
"text/html" = "librewolf.desktop";
"x-scheme-handler/http" = "librewolf.desktop";
"x-scheme-handler/https" = "librewolf.desktop";
"x-scheme-handler/about" = "librewolf.desktop";
"x-scheme-handler/unknown" = "librewolf.desktop";
"text/plain" = "nvim.desktop";
"application/pdf" = "evince";
"text/html" = "${config.xdg.da.browser}.desktop";
"x-scheme-handler/http" = "${config.xdg.da.browser}.desktop";
"x-scheme-handler/https" = "${config.xdg.da.browser}.desktop";
"x-scheme-handler/about" = "${config.xdg.da.browser}.desktop";
"x-scheme-handler/unknown" = "${config.xdg.da.browser}.desktop";
"text/plain" = "${userSettings.editor}.desktop";
"application/pdf" = "org.gnome.Evince.desktop";
};
};
}

View File

@ -37,8 +37,21 @@
vscode = {
enable = true;
nix.enable = true;
ide = {
python.enable = true;
go.enable = true;
csharp.enable = true;
cpp.enable = false;
web.enable = true;
};
nix.enable = true;
markdown.enable = true;
ai.enable = true;
git.enable = true;
themes.enable = false;
};
git.enable = true;
neovim.enable = true;
@ -57,7 +70,6 @@
".config/hypr/hyprlock.conf".source = ../config/hyprlock.conf;
".config/hypr/mocha.conf".source = ../config/mocha.conf;
".config/hypr/hypridle.conf".source = ../config/hypridle.conf;
#".config/dolphinrc".source = ../config/dolphinrc;
".prettierrc".text = ''
{
"tabWidth": 4,