diff --git a/modules/user/jopejoe1/home/.default.nix.old.kate-swp b/modules/user/jopejoe1/home/.default.nix.old.kate-swp new file mode 100644 index 0000000..16c4910 Binary files /dev/null and b/modules/user/jopejoe1/home/.default.nix.old.kate-swp differ diff --git a/modules/user/jopejoe1/home/default.nix.old b/modules/user/jopejoe1/home/default.nix.old new file mode 100644 index 0000000..5860451 --- /dev/null +++ b/modules/user/jopejoe1/home/default.nix.old @@ -0,0 +1,261 @@ +{ options, config, pkgs, lib, ... }: + +with lib; +#with lib.internal; +let + cfg = config.custom.user.jopejoe1.home; + hcfg = config.home-manager.users.jopejoe1; +in +{ + options.custom.user.jopejoe1.home = with types; { + enable = mkBoolOpt false "Enable the home-manger for jopejoe1"; + }; + + config = mkIf cfg.enable { + home-manager.users.jopejoe1 = { + home = { + # Basic information for home-manager + username = "jopejoe1"; + homeDirectory = "/home/${hcfg.home.username}"; + + # Enviroment variables + sessionVariables = { + XCOMPOSECACHE = "${hcfg.xdg.cacheHome}/X11/xcompos"; + XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority"; + }; + + stateVersion = config.system.stateVersion; + }; + + accounts.email.accounts = { + main = { + address = "johannes@joens.email"; + flavor = "gmail.com"; + primary = true; + realName = "Johannes Joens"; + thunderbird.enable = true; + }; + }; + + # XDG base dirs + xdg = { + enable = true; + mime.enable = true; + cacheHome = "${hcfg.home.homeDirectory}/.cache"; + configHome = "${hcfg.home.homeDirectory}/.config"; + dataHome = "${hcfg.home.homeDirectory}/.local/share"; + stateHome = "${hcfg.home.homeDirectory}/.local/state"; + userDirs = { + enable = true; + createDirectories = false; + desktop = "${hcfg.home.homeDirectory}/Desktop"; + documents = "${hcfg.home.homeDirectory}/Documents"; + download = "${hcfg.home.homeDirectory}/Downloads"; + music = "${hcfg.home.homeDirectory}/Music"; + pictures = "${hcfg.home.homeDirectory}/Pictures"; + publicShare = "${hcfg.home.homeDirectory}/Public"; + templates = "${hcfg.home.homeDirectory}/Templates"; + videos = "${hcfg.home.homeDirectory}/Videos"; + }; + }; + + gtk = { + enable = true; + gtk2 = { + configLocation = "${hcfg.xdg.configHome}/gtk-2.0/gtkrc"; + }; + gtk3 = { + extraConfig = { + gtk-application-prefer-dark-theme = true; + gtk-button-images = true; + gtk-decoration-layout = "icon:minimize,maximize,close"; + gtk-enable-animations = true; + gtk-menu-images = true; + gtk-modules = "colorreload-gtk-module"; + gtk-primary-button-warps-slider = false; + gtk-toolbar-style = 3; + }; + }; + gtk4 = { + extraConfig = { + gtk-application-prefer-dark-theme = true; + gtk-decoration-layout = "icon:minimize,maximize,close"; + gtk-enable-animations = true; + gtk-primary-button-warps-slider = false; + }; + }; + cursorTheme = { + package = pkgs.libsForQt5.breeze-icons; + name = "breeze_cursors"; + size = 24; + }; + font = { + package = pkgs.noto-fonts; + name = "Noto Sans"; + size = 10; + }; + theme = { + package = pkgs.libsForQt5.breeze-gtk; + name = "breeze-dark"; + }; + iconTheme = { + package = pkgs.tela-icon-theme; + name = "Tela-purple"; + }; + }; + + # Let Home Manager install and manage itself. + programs = { + home-manager.enable = true; + git = { + enable = true; + package = pkgs.gitAndTools.gitFull; + userEmail = "johannes@joens.email"; + userName = "jopejoe1"; + }; + bash = { + enable = true; + historyFile = "${hcfg.xdg.stateHome}/bash/history"; + shellAliases = { + gc = "nix store gc"; + rb = "git -C /etc/nixos pull && nix flake update /etc/nixos/ && nixos-rebuild switch && git -C /etc/nixos add . && git -C /etc/nixos commit -m 'Updated flake.lock' && git -C /etc/nixos push"; + }; + }; + zsh = { + enable = true; + shellAliases = hcfg.programs.bash.shellAliases; + enableAutosuggestions = true; + enableCompletion = true; + enableSyntaxHighlighting = true; + enableVteIntegration = true; + dotDir = ".config/zsh"; + }; + fish.shellAbbrs = hcfg.programs.bash.shellAliases; + thunderbird = { + enable = false; + profiles = { + default = { + isDefault = true; + }; + }; + }; + firefox = { + enable = true; + package = pkgs.wrapFirefox pkgs.firefox-unwrapped { + extraPolicies = { + AppAutoUpdate = false; + BackgroundAppUpdate = false; + DisableAppUpdate = true; + CaptivePortal = false; + DisableFirefoxStudies = true; + DisablePocket = true; + DisableTelemetry = true; + DisableFirefoxAccounts = true; + DisableFormHistory = true; + DefaultDownloadDirectory = "${hcfg.xdg.userDirs.download}"; + DontCheckDefaultBrowser = true; + ExtensionUpdate = false; + NoDefaultBookmarks = true; + PasswordManagerEnabled = false; + OfferToSaveLogins = false; + OfferToSaveLoginsDefault = false; + EnableTrackingProtection = { + Value = true; + Cryptomining = true; + Fingerprinting = true; + }; + FirefoxHome = { + Search = true; + Pocket = false; + SponsoredPocket = false; + Snippets = false; + TopSites = true; + SponsoredTopSites = false; + Highlights = false; + }; + UserMessaging = { + ExtensionRecommendations = false; + SkipOnboarding = true; + }; + }; + }; + profiles = { + default = { + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + ublock-origin + privacy-badger + bitwarden + clearurls + decentraleyes + duckduckgo-privacy-essentials + ghostery + libredirect + privacy-badger + languagetool + fastforward + return-youtube-dislikes + sponsorblock + augmented-steam + steam-database + refined-github + plasma-integration + #bypass-paywalls-clean + lovely-forks + search-by-image + skip-redirect + terms-of-service-didnt-read + unpaywall + wappalyzer + wayback-machine + modrinthify + ]; + id = 0; + isDefault = true; + name = "default"; + search = { + default = "DuckDuckGo"; + force = true; + 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" ]; + }; + "NixOS Wiki" = { + urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }]; + icon = "${hcfg.programs.firefox.profiles.default.search.engines."Nix Packages".icon}"; + definedAliases = [ "@nw" ]; + }; + "Bing".metaData.hidden = true; + "Google".metaData.hidden = true; + "eBay".metaData.hidden = true; + "Amazon.de".metaData.hidden = true; + "Wikipedia (en)".metaData.alias = "@wiki"; + }; + }; + settings = { + "privacy.resistFingerprinting" = true; + "privacy.trackingprotection.fingerprinting.enabled" = true; + "privacy.trackingprotection.cryptomining.enabled" = true; + "dom.event.clipboardevents.enabled" = false; + "dom.battery.enabled" = false; + "browser.safebrowsing.phishing.enabled" = false; + "browser.safebrowsing.malware.enabled" = false; + "browser.zoom.siteSpecific" = true; + "config.trim_on_minimize" = true; + "pdfjs.annotationEditorMode" = 0; + "pdfjs.annotationmode" = 2; + }; + }; + }; + }; + }; + }; + }; +} diff --git a/systems/x86_64-linux/kami/default.nix b/systems/x86_64-linux/kami/default.nix index 9e2e982..3c898e0 100644 --- a/systems/x86_64-linux/kami/default.nix +++ b/systems/x86_64-linux/kami/default.nix @@ -34,6 +34,8 @@ services.hardware.openrgb.enable = true; services.hardware.openrgb.motherboard = "intel"; + hardware.nvidia.modesetting.enable = true; + programs = { dconf.enable = true; droidcam.enable = true;