add user configuration
This commit is contained in:
@ -44,7 +44,8 @@ in {
|
||||
starship
|
||||
firefox-beta-bin
|
||||
thunderbird-bin
|
||||
element-desktop
|
||||
youtube-music
|
||||
fluffychat
|
||||
libreoffice-qt6-fresh
|
||||
gimp
|
||||
vscodium git nodejs
|
||||
|
@ -1,29 +1,25 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
portals-config = pkgs.writeTextDir "share/xdg-desktop-portal/portals/portals.conf" ''
|
||||
[preferred]
|
||||
default=hyprland
|
||||
org.freedesktop.impl.portal.Settings=darkman
|
||||
'';
|
||||
packages = [
|
||||
portals = [
|
||||
pkgs.xdg-desktop-portal
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.darkman
|
||||
pkgs.xdg-desktop-portal-wlr
|
||||
];
|
||||
|
||||
packages = portals ++ [
|
||||
pkgs.darkman
|
||||
];
|
||||
portals = pkgs.symlinkJoin {
|
||||
name = "xdg-portals";
|
||||
paths = [ portals-config ] ++ packages;
|
||||
pathsToLink = [
|
||||
"/share/xdg-desktop-portal/portals"
|
||||
"/share/applications"
|
||||
];
|
||||
};
|
||||
in {
|
||||
home.sessionVariables = {
|
||||
XDG_DESKTOP_PORTAL_DIR = "${portals}/share/xdg-desktop-portal/portals";
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = portals;
|
||||
config = {
|
||||
common.default = "hyprland";
|
||||
"org.freedesktop.impl.portal.Settings".default = "darkman";
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = packages;
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
let
|
||||
userConfig = import ../../user-config.nix;
|
||||
in {
|
||||
imports = [ ./fish ];
|
||||
|
||||
programs.pywal.enable = true;
|
||||
@ -13,11 +15,23 @@
|
||||
];
|
||||
};
|
||||
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
obs-backgroundremoval
|
||||
obs-pipewire-audio-capture
|
||||
#advanced-scene-switcher
|
||||
obs-tuna
|
||||
obs-move-transition
|
||||
waveform
|
||||
wlrobs
|
||||
];
|
||||
};
|
||||
|
||||
services.darkman = {
|
||||
enable = true;
|
||||
darkModeScripts = {
|
||||
theme = ''
|
||||
${pkgs.pywalfox-native}/bin/pywalfox dark
|
||||
${pkgs.dconf}/bin/dconf write\
|
||||
/org/gnome/desktop/interface/color-scheme "'prefer-dark'"
|
||||
'';
|
||||
@ -25,11 +39,12 @@
|
||||
wallpaper = ''
|
||||
$HOME/.config/hypr/scripts/random-wallpaper.sh
|
||||
'';
|
||||
|
||||
pywalfox = "command -v pywalfox &>/dev/null && pywalfox dark && pywalfox update";
|
||||
};
|
||||
|
||||
lightModeScripts = {
|
||||
theme = ''
|
||||
${pkgs.pywalfox-native}/bin/pywalfox light
|
||||
${pkgs.dconf}/bin/dconf write\
|
||||
/org/gnome/desktop/interface/color-scheme "'prefer-light'"
|
||||
'';
|
||||
@ -37,8 +52,12 @@
|
||||
wallpaper = ''
|
||||
$HOME/.config/hypr/scripts/random-wallpaper.sh
|
||||
'';
|
||||
|
||||
pywalfox = "command -v pywalfox &>/dev/null && pywalfox light && pywalfox update";
|
||||
};
|
||||
|
||||
settings.usegeoclue = false;
|
||||
settings.usegeoclue = userConfig.geoclue;
|
||||
settings.lat = userConfig.latitude;
|
||||
settings.lng = userConfig.longtitude;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user