add nixGL
This commit is contained in:
parent
a470b09548
commit
cc46761cf2
17
flake.nix
17
flake.nix
|
|
@ -86,6 +86,23 @@
|
||||||
homeModules.shell
|
homeModules.shell
|
||||||
homeModules.dev
|
homeModules.dev
|
||||||
homeModules.gui
|
homeModules.gui
|
||||||
|
{
|
||||||
|
gui.enable = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
odie-gui-nixGL = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs extraSpecialArgs;
|
||||||
|
modules = [
|
||||||
|
inputs.neovim-flake.homeModules.neovim-ide
|
||||||
|
homeModules.base
|
||||||
|
homeModules.shell
|
||||||
|
homeModules.dev
|
||||||
|
homeModules.gui
|
||||||
|
{
|
||||||
|
gui.enable = true;
|
||||||
|
services.nixGL.enable = true;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
odie = odie-gui;
|
odie = odie-gui;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ _: {
|
||||||
imports = [
|
imports = [
|
||||||
./gitea
|
./gitea
|
||||||
./neovim-ide
|
./neovim-ide
|
||||||
./nixos
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.lazygit.enable = true;
|
programs.lazygit.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
_: {
|
|
||||||
nix = {
|
|
||||||
extraOptions = ''
|
|
||||||
keep-outputs = true
|
|
||||||
keep-derivations = true
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +1,16 @@
|
||||||
{ lib, config, ... }: {
|
{ lib, config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
gui.enable = lib.mkEnableOption "gui";
|
gui.enable = lib.mkEnableOption "gui";
|
||||||
};
|
};
|
||||||
|
imports = [
|
||||||
|
./firefox
|
||||||
|
./keepassxc
|
||||||
|
./kitty
|
||||||
|
./nextcloud-client
|
||||||
|
./picom
|
||||||
|
./nixGL
|
||||||
|
];
|
||||||
config = lib.mkIf config.gui.enable {
|
config = lib.mkIf config.gui.enable {
|
||||||
imports = [
|
|
||||||
./firefox.nix
|
|
||||||
./keepassxc.nix
|
|
||||||
./kitty.nix
|
|
||||||
./nextcloud-client.nix
|
|
||||||
];
|
|
||||||
programs = {
|
programs = {
|
||||||
keepassxc.enable = lib.mkDefault true;
|
keepassxc.enable = lib.mkDefault true;
|
||||||
firefox.enable = lib.mkDefault true;
|
firefox.enable = lib.mkDefault true;
|
||||||
|
|
@ -17,6 +19,7 @@
|
||||||
services = {
|
services = {
|
||||||
nextcloud-client.enable = lib.mkDefault false;
|
nextcloud-client.enable = lib.mkDefault false;
|
||||||
udiskie.enable = lib.mkDefault false;
|
udiskie.enable = lib.mkDefault false;
|
||||||
|
picom.enable = lib.mkDefault false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
{pkgs, config, lib, ...}: lib.mkIf config.programs.firefox.enable {
|
|
||||||
programs.firefox = {
|
|
||||||
package = pkgs.firefox.override {
|
|
||||||
nativeMessagingHosts = with pkgs; [
|
|
||||||
tridactyl-native
|
|
||||||
keepassxc
|
|
||||||
];
|
|
||||||
};
|
|
||||||
profiles.odie = {
|
|
||||||
isDefault = true;
|
|
||||||
id = 0;
|
|
||||||
name = "odie";
|
|
||||||
search = {
|
|
||||||
default = "DuckDuckGo";
|
|
||||||
force = true;
|
|
||||||
};
|
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
||||||
adnauseam
|
|
||||||
istilldontcareaboutcookies
|
|
||||||
sponsorblock
|
|
||||||
stylus
|
|
||||||
keepassxc-browser
|
|
||||||
tridactyl
|
|
||||||
canvasblocker
|
|
||||||
deutsch-de-language-pack
|
|
||||||
greasemonkey
|
|
||||||
youtube-recommended-videos # unhook
|
|
||||||
return-youtube-dislikes
|
|
||||||
user-agent-string-switcher
|
|
||||||
];
|
|
||||||
settings = {
|
|
||||||
"browser.startup.homepage" = "https://duckduckgo.com";
|
|
||||||
"browser.search.region" = "DE";
|
|
||||||
"browser.search.isUS" = false;
|
|
||||||
"distribution.searchplugins.defaultLocale" = "de-DE";
|
|
||||||
"general.useragent.locale" = "de-DE";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{ pkgs, lib, config, ... }: {
|
|
||||||
options = {
|
|
||||||
programs.keepassxc.enable = lib.mkEnableOption "keepassxc";
|
|
||||||
};
|
|
||||||
config = lib.mkIf config.programs.keepassxc.enable {
|
|
||||||
home.packages = [
|
|
||||||
pkgs.keepassxc
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
{ pkgs, config, lib, ... }: {
|
|
||||||
config = lib.mkIf config.programs.kitty.enable {
|
|
||||||
programs.kitty = {
|
|
||||||
font = {
|
|
||||||
name = "JetBrains Mono";
|
|
||||||
size = 9.5;
|
|
||||||
};
|
|
||||||
shellIntegration.enableZshIntegration = true;
|
|
||||||
settings = {
|
|
||||||
background_opacity = 1;
|
|
||||||
enable_audio_bell = "no";
|
|
||||||
visual_bell_duration = "0.025";
|
|
||||||
window_padding_width = 0;
|
|
||||||
};
|
|
||||||
theme = "Catppuccin-Mocha";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{lib,config,...}: lib.mkIf config.services.nextcloud-client.enable {
|
|
||||||
services.nextcloud-client = {
|
|
||||||
startInBackground = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
{ config, lib, ... }: {
|
|
||||||
options = {
|
|
||||||
services = {
|
|
||||||
picom = {
|
|
||||||
glxBackend = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
description = "the default terminal to use";
|
|
||||||
default = "glx";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.picom = {
|
|
||||||
enable = true;
|
|
||||||
backend = config.services.picom.glxBackend;
|
|
||||||
fade = true;
|
|
||||||
opacityRules = [
|
|
||||||
"95:class_g = 'kitty' && focused"
|
|
||||||
"85:class_g = 'kitty' && !focused"
|
|
||||||
"95:class_g = 'Alacritty' && focused"
|
|
||||||
"85:class_g = 'Alacritty' && !focused"
|
|
||||||
"85:window_type = 'dock'"
|
|
||||||
];
|
|
||||||
settings = {
|
|
||||||
blur = {
|
|
||||||
method = "gaussian";
|
|
||||||
size = 10;
|
|
||||||
deviation = 5.0;
|
|
||||||
};
|
|
||||||
corner-radius = 6;
|
|
||||||
rounded-corners-exclude = [
|
|
||||||
"window_type = 'dock'"
|
|
||||||
"window_type = 'desktop'"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
home.packages = with pkgs; [ tea ];
|
home.packages = with pkgs; [ tea ];
|
||||||
programs = {
|
programs = {
|
||||||
ssh = {
|
ssh = {
|
||||||
addKeysToAgent = "yes";
|
# addKeysToAgent = "yes";
|
||||||
forwardAgent = true;
|
forwardAgent = true;
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# AddKeysToAgent yes
|
AddKeysToAgent yes
|
||||||
# '';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Reference in New Issue