From 9e2feb16a9f6f489eeb765056ecfe91b4542c295 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Fri, 22 Nov 2024 00:08:00 -0500 Subject: [PATCH 1/8] katana and stylix --- boxes/desktop/configuration.nix | 44 ++++--- common/pkgs.nix | 58 ++++++++- common/programs/config.kbd | 13 ++ common/programs/kanata.nix | 54 ++++++++ common/systemModules/stylix.nix | 2 +- .../users/homeModules/jetbrains/overlays.nix | 60 +++++---- common/users/homeModules/vscode/default.nix | 9 ++ common/users/homeModules/vscode/overlays.nix | 62 ++++++++++ common/users/meyer/default.nix | 1 + common/users/meyer/home.nix | 1 + flake.lock | 117 +++--------------- 11 files changed, 278 insertions(+), 143 deletions(-) create mode 100644 common/programs/config.kbd create mode 100644 common/programs/kanata.nix create mode 100644 common/users/homeModules/vscode/default.nix create mode 100644 common/users/homeModules/vscode/overlays.nix diff --git a/boxes/desktop/configuration.nix b/boxes/desktop/configuration.nix index 5283a06..8ae15c5 100644 --- a/boxes/desktop/configuration.nix +++ b/boxes/desktop/configuration.nix @@ -2,23 +2,27 @@ # your system. Help is available in the configuration.nix(5) man page, on # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). -{ config, pkgs, inputs, ... }: { - imports = - [ - # Include the results of the hardware scan. - ./hardware-configuration.nix - ../../common/systemModules/boot.nix - ../../common/systemModules/audio.nix - ../../common/systemModules/kde.nix - ../../common/systemModules/tailscale.nix - ../../common/systemModules/gaming.nix - ../../common/systemModules/crypt.nix - ../../common/systemModules/printing.nix - ../../common/systemModules/stylix.nix - # USERS - ../../common/users/meyer - ]; + config, + pkgs, + inputs, + ... +}: +{ + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + ../../common/systemModules/boot.nix + ../../common/systemModules/audio.nix + ../../common/systemModules/kde.nix + ../../common/systemModules/tailscale.nix + ../../common/systemModules/gaming.nix + ../../common/systemModules/crypt.nix + ../../common/systemModules/printing.nix + ../../common/systemModules/stylix.nix + # USERS + ../../common/users/meyer + ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems; hardware.i2c.enable = true; @@ -31,18 +35,18 @@ time.timeZone = "America/New_York"; nixpkgs.config.allowUnfree = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; services = { teamviewer.enable = true; usbmuxd.enable = true; }; - programs.zsh.enable = true; - - environment.systemPackages = with pkgs; [ clinfo fuse diff --git a/common/pkgs.nix b/common/pkgs.nix index 72e7970..64909c3 100644 --- a/common/pkgs.nix +++ b/common/pkgs.nix @@ -55,6 +55,58 @@ in nodejs_22 ]; gui = with pkgs; [ + screenkey + pinned.vscode + # ( + # (pinned.vscode.override { + # isInsiders = true; + # }).overrideAttrs + # ( + # _: old: + # let + # sourceExecutableName = "code-insiders"; + # executableName = "code-insiders"; + # in + # { + # installPhase = '' + # runHook preInstall + # mkdir -p "$out/lib/vscode" "$out/bin" + # cp -r ./* "$out/lib/vscode" + # + # mv "$out/lib/vscode/bin/code" "$out/lib/vscode/bin/${sourceExecutableName}" # ME + # + # ln -s "$out/lib/vscode/bin/${sourceExecutableName}" "$out/bin/${executableName}" + # + # mkdir -p "$out/share/applications" + # ln -s "$desktopItem/share/applications/${executableName}.desktop" "$out/share/applications/${executableName}.desktop" + # ln -s "$urlHandlerDesktopItem/share/applications/${executableName}-url-handler.desktop" "$out/share/applications/${executableName}-url-handler.desktop" + # + # # These are named vscode.png, vscode-insiders.png, etc to match the name in upstream *.deb packages. + # mkdir -p "$out/share/pixmaps" + # cp "$out/lib/vscode/resources/app/resources/linux/code.png" "$out/share/pixmaps/vs${executableName}.png" + # + # # Override the previously determined VSCODE_PATH with the one we know to be correct + # sed -i "/ELECTRON=/iVSCODE_PATH='$out/lib/vscode'" "$out/bin/${executableName}" + # grep -q "VSCODE_PATH='$out/lib/vscode'" "$out/bin/${executableName}" # check if sed succeeded + # + # # Remove native encryption code, as it derives the key from the executable path which does not work for us. + # # The credentials should be stored in a secure keychain already, so the benefit of this is questionable + # # in the first place. + # rm -rf $out/lib/vscode/resources/app/node_modules/vscode-encrypt + # # HOOK + # runHook postInstall + # ''; + # + # postFixup = '' + # patchelf \ + # --add-needed ${pkgs.libglvnd}/lib/libGLESv2.so.2 \ + # --add-needed ${pkgs.libglvnd}/lib/libGL.so.1 \ + # --add-needed ${pkgs.libglvnd}/lib/libEGL.so.1 \ + # $out/lib/vscode/code + # ''; + # } + # ) + # ) cpkg.frog legcord obsidian @@ -63,7 +115,7 @@ in jadx android-studio wireshark - pinned.vscode + # pinned.vscode pinned.etcher insomnia teamviewer @@ -73,7 +125,6 @@ in libsForQt5.kcolorchooser python312Packages.openai-whisper firefox-devedition - cinny-desktop element-desktop protonvpn-gui xclicker @@ -109,7 +160,6 @@ in vlc jellyfin-web obs-studio - tokyo-night-gtk ksshaskpass libsForQt5.kinit ]; @@ -138,7 +188,7 @@ in jdks = [ jdk8 jdk17 - jdk22 + jdk23 ]; }) protontricks diff --git a/common/programs/config.kbd b/common/programs/config.kbd new file mode 100644 index 0000000..ccd7e11 --- /dev/null +++ b/common/programs/config.kbd @@ -0,0 +1,13 @@ +(defsrc +caps +) +(defvar +tap-time 150 +hold-time 200 +) +(defalias +caps (tap-hold 150 150 esc lctrl) +) +(deflayer base + @caps +) diff --git a/common/programs/kanata.nix b/common/programs/kanata.nix new file mode 100644 index 0000000..b413431 --- /dev/null +++ b/common/programs/kanata.nix @@ -0,0 +1,54 @@ +{ NAME }: +{ pkgs, ... }: +{ + # services = { + # kanata = { + # enable = true; + # keyboards = { + # razer = { + # # devices = [ + # # "/dev/input/by-id/usb-Razer_Razer_BlackWidow_V4-event-kbd" + # # ]; + # extraDefCfg = "process-unmapped-keys yes"; + # config = '' + # (defsrc + # caps + # ) + # (defvar + # tap-time 150 + # hold-time 200 + # ) + # (defalias + # caps (tap-hold 100 100 esc lctrl) + # ) + # (deflayer base + # @caps + # ) + # + # ''; + # }; + # }; + # }; + # }; + users = { + users = { + "${NAME}" = { + extraGroups = [ + "uinput" + ]; + }; + }; + }; + systemd.services.kanata-meyer = { + enable = true; + description = "services-kanata sucks ass"; + serviceConfig = { + ExecStart = '' + ${pkgs.kanata}/bin/kanata \ + --cfg ${./config.kbd} + ''; + User=NAME; + }; + wantedBy = [ "multi-user.target" ]; + }; +} diff --git a/common/systemModules/stylix.nix b/common/systemModules/stylix.nix index 64588e1..71a3b84 100644 --- a/common/systemModules/stylix.nix +++ b/common/systemModules/stylix.nix @@ -27,7 +27,7 @@ fonts = { emoji = { package = pkgs.twemoji-color-font; - name = "Twemoji Color Emoji"; + name = "Twitter Color Emoji"; }; sansSerif = { package = pkgs.nerdfonts; diff --git a/common/users/homeModules/jetbrains/overlays.nix b/common/users/homeModules/jetbrains/overlays.nix index bf172a9..32a1a89 100644 --- a/common/users/homeModules/jetbrains/overlays.nix +++ b/common/users/homeModules/jetbrains/overlays.nix @@ -1,9 +1,11 @@ -{ config, lib, ... }: { +{ config, lib, ... }: +{ nixpkgs.overlays = [ (pkgs: _: { ja-netfilter = pkgs.callPackage ./ja-netfilter { inherit lib; }; }) - (final: pkgs: + ( + final: pkgs: let inherit (pkgs) jetbrains; globalPlugins = [ @@ -12,7 +14,12 @@ ]; ja-netfilter = pkgs.ja-netfilter.override { programName = "jetbrains"; - enabledPlugins = [ "dns" "url" "hideme" "power" ]; + enabledPlugins = [ + "dns" + "url" + "hideme" + "power" + ]; pluginConfigs = { dns = '' [DNS] @@ -43,21 +50,30 @@ }; }; - srcOverrideFn = name: { version - , url - , sha256 - , plugins ? [ ] - , - }: + srcOverrideFn = + name: + { + version, + url, + sha256, + plugins ? [ ], + }: let - versionChangedPkg = jetbrains.${name}.overrideAttrs - (_: old: rec { + versionChangedPkg = jetbrains.${name}.overrideAttrs ( + _: old: rec { inherit version; src = pkgs.fetchurl { inherit url sha256; }; - buildInputs = old.buildInputs ++ (with pkgs; [ xorg.libX11 libGL fontconfig ]); - }); + buildInputs = + old.buildInputs + ++ (with pkgs; [ + xorg.libX11 + libGL + fontconfig + ]); + } + ); in versionChangedPkg; srcPatched = builtins.mapAttrs srcOverrideFn overrides; @@ -67,7 +83,8 @@ --add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED -javaagent:${javaAgentJar}=jetbrains ''; - forkingWrapper = package: wrapperName: + forkingWrapper = + package: wrapperName: let exe = lib.getExe package; wrapperExe = pkgs.writeShellScriptBin wrapperName '' @@ -76,21 +93,22 @@ in pkgs.symlinkJoin { name = package.name; - paths = [ package wrapperExe ]; + paths = [ + package + wrapperExe + ]; postBuild = '' ln -s ${exe} $out/bin/${wrapperName}-unwrapped ''; }; - wrapJetBrains = package: name: - forkingWrapper (package.override { inherit vmopts; }) name; - netOverrideFn = name: _: - wrapJetBrains srcPatched.${name} name; + wrapJetBrains = package: name: forkingWrapper (package.override { inherit vmopts; }) name; + netOverrideFn = name: _: wrapJetBrains srcPatched.${name} name; netPatched = builtins.mapAttrs netOverrideFn overrides; in { jbeap = netPatched; - }) - + } + ) ]; } diff --git a/common/users/homeModules/vscode/default.nix b/common/users/homeModules/vscode/default.nix new file mode 100644 index 0000000..7bc9b42 --- /dev/null +++ b/common/users/homeModules/vscode/default.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: +{ + imports = [ + ./overlays.nix + ]; + home.packages = with pkgs; [ + vscode-insider + ]; +} diff --git a/common/users/homeModules/vscode/overlays.nix b/common/users/homeModules/vscode/overlays.nix new file mode 100644 index 0000000..72d8a09 --- /dev/null +++ b/common/users/homeModules/vscode/overlays.nix @@ -0,0 +1,62 @@ +{ nixpkgs, pkgs, ... }: +{ + nixpkgs.overlays = [ + (final: prev: { + vscode-insider = ( + (prev.vscode.override { + isInsiders = true; + }).overrideAttrs + ( + _: old: + let + sourceExecutableName = "code-insiders"; + executableName = "code-insiders"; + in + { + pname = "code-insiders"; + installPhase = '' + runHook preInstall + mkdir -p "$out/lib/vscode" "$out/bin" + cp -r ./* "$out/lib/vscode" + + mv "$out/lib/vscode/bin/code" "$out/lib/vscode/bin/${sourceExecutableName}" # ME + mv "$out/lib/vscode/code" "$out/lib/vscode/${sourceExecutableName}" # ME + + ln -s "$out/lib/vscode/bin/${sourceExecutableName}" "$out/bin/${executableName}" + + mkdir -p "$out/share/applications" + ln -s "$desktopItem/share/applications/${executableName}.desktop" "$out/share/applications/${executableName}.desktop" + ln -s "$urlHandlerDesktopItem/share/applications/${executableName}-url-handler.desktop" "$out/share/applications/${executableName}-url-handler.desktop" + + # These are named vscode.png, vscode-insiders.png, etc to match the name in upstream *.deb packages. + mkdir -p "$out/share/pixmaps" + cp "$out/lib/vscode/resources/app/resources/linux/code.png" "$out/share/pixmaps/vs${executableName}.png" + + # Override the previously determined VSCODE_PATH with the one we know to be correct + sed -i "/ELECTRON=/iVSCODE_PATH='$out/lib/vscode'" "$out/bin/${executableName}" + grep -q "VSCODE_PATH='$out/lib/vscode'" "$out/bin/${executableName}" # check if sed succeeded + + # Remove native encryption code, as it derives the key from the executable path which does not work for us. + # The credentials should be stored in a secure keychain already, so the benefit of this is questionable + # in the first place. + rm -rf $out/lib/vscode/resources/app/node_modules/vscode-encrypt + # HOOK + runHook postInstall + ''; + + postFixup = '' + patchelf \ + --add-needed ${pkgs.libglvnd}/lib/libGLESv2.so.2 \ + --add-needed ${pkgs.libglvnd}/lib/libGL.so.1 \ + --add-needed ${pkgs.libglvnd}/lib/libEGL.so.1 \ + $out/lib/vscode/${sourceExecutableName} + ''; + meta = old.meta // { + mainProgram = "code-insiders"; + }; + } + ) + ); + }) + ]; +} diff --git a/common/users/meyer/default.nix b/common/users/meyer/default.nix index c71d2ac..7c29107 100644 --- a/common/users/meyer/default.nix +++ b/common/users/meyer/default.nix @@ -10,6 +10,7 @@ in (import ../../systemModules/razer.nix { inherit NAME; }) (import ../../systemModules/nixHelper.nix { inherit NAME; }) (import ../../programs/wireshark.nix { inherit NAME; }) + (import ../../programs/kanata.nix { inherit NAME; }) ]; users = { users = { diff --git a/common/users/meyer/home.nix b/common/users/meyer/home.nix index 0bf6a4d..419640c 100644 --- a/common/users/meyer/home.nix +++ b/common/users/meyer/home.nix @@ -30,6 +30,7 @@ in ../homeModules/java.nix ../homeModules/jetbrains ../homeModules/notion.nix + # ../homeModules/vscode ./sops.nix ./git.nix ]; diff --git a/flake.lock b/flake.lock index dd7ab12..019003f 100644 --- a/flake.lock +++ b/flake.lock @@ -177,11 +177,11 @@ ] }, "locked": { - "lastModified": 1730016908, - "narHash": "sha256-bFCxJco7d8IgmjfNExNz9knP8wvwbXU4s/d53KOK6U0=", + "lastModified": 1731968878, + "narHash": "sha256-+hTCwETOE9N8voTAaF+IzdUZz28Ws3LDpH90FWADrEE=", "owner": "nix-community", "repo": "home-manager", - "rev": "e83414058edd339148dc142a8437edb9450574c8", + "rev": "a42fa14b53ceab66274a21da480c9f8e06204173", "type": "github" }, "original": { @@ -211,65 +211,6 @@ "type": "github" } }, - "nekocord": { - "inputs": { - "nekocord-installer": "nekocord-installer", - "nekocord-latest": "nekocord-latest", - "nekocord-latest-dev": "nekocord-latest-dev", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1731460153, - "narHash": "sha256-IE/knV89tR9Kv6CBKwJOEDoVNtrk+rOTpvOatoPsB2I=", - "owner": "PoolloverNathan", - "repo": "nekocord", - "rev": "891ff720064a251d537dd89ce943aae669926cc0", - "type": "github" - }, - "original": { - "owner": "PoolloverNathan", - "repo": "nekocord", - "type": "github" - } - }, - "nekocord-installer": { - "flake": false, - "locked": { - "narHash": "sha256-/89LCtysKgmDN8jGR2lARC7eArnxrENAdiMCSuPZVo0=", - "type": "file", - "url": "https://nekocord.dev/uploads/nekocord-installer/main/latest.json" - }, - "original": { - "type": "file", - "url": "https://nekocord.dev/uploads/nekocord-installer/main/latest.json" - } - }, - "nekocord-latest": { - "flake": false, - "locked": { - "narHash": "sha256-DQw1QXxrsrbuNQZl0LyTRIZZbfrNjiZIEEIZWVhLgQg=", - "type": "file", - "url": "https://nekocord.dev/uploads/nekocord/main/latest.json" - }, - "original": { - "type": "file", - "url": "https://nekocord.dev/uploads/nekocord/main/latest.json" - } - }, - "nekocord-latest-dev": { - "flake": false, - "locked": { - "narHash": "sha256-Ns+1t7XjrS+TbXWjGEtSTwkqykbjSQ/t0weJh/qhdGI=", - "type": "file", - "url": "https://nekocord.dev/uploads/nekocord/dev/latest.json" - }, - "original": { - "type": "file", - "url": "https://nekocord.dev/uploads/nekocord/dev/latest.json" - } - }, "nix-index-database": { "inputs": { "nixpkgs": [ @@ -277,11 +218,11 @@ ] }, "locked": { - "lastModified": 1729999765, - "narHash": "sha256-LYsavZXitFjjyETZoij8usXjTa7fa9AIF3Sk3MJSX+Y=", + "lastModified": 1731814505, + "narHash": "sha256-l9ryrx1Twh08a+gxrMGM9O/aZKEimZfa6sZVyPCImgI=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "0e3a8778c2ee218eff8de6aacf3d2fa6c33b2d4f", + "rev": "bdba246946fb079b87b4cada4df9b1cdf1c06132", "type": "github" }, "original": { @@ -297,11 +238,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1729717678, - "narHash": "sha256-XEfYT1D+4KT9c0mMwsmZdWS2JgKsboAZbnuJvrjBQKg=", + "lastModified": 1731682434, + "narHash": "sha256-HnZFPB7akVIy0KuPq/tEkiB+Brt1qi0DUIDzR8z25qI=", "owner": "nix-community", "repo": "nixos-wsl", - "rev": "5a965cb108fb1f30b29a26dbc29b473f49e80b41", + "rev": "a6b9cf0b7805e2c50829020a73e7bde683fd36dd", "type": "github" }, "original": { @@ -311,22 +252,6 @@ } }, "nixpkgs": { - "locked": { - "lastModified": 1729181673, - "narHash": "sha256-LDiPhQ3l+fBjRATNtnuDZsBS7hqoBtPkKBkhpoBHv3I=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "4eb33fe664af7b41a4c446f87d20c9a0a6321fa3", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-24.05", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs-stable": { "locked": { "lastModified": 1729973466, "narHash": "sha256-knnVBGfTCZlQgxY1SgH0vn2OyehH9ykfF8geZgS95bk=", @@ -337,18 +262,18 @@ }, "original": { "owner": "NixOS", - "ref": "release-24.05", + "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } }, "nixpkgs_2": { "locked": { - "lastModified": 1729880355, - "narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=", + "lastModified": 1731676054, + "narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "18536bf04cd71abd345f9579158841376fdd0c5a", + "rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add", "type": "github" }, "original": { @@ -376,11 +301,11 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1729951556, - "narHash": "sha256-bpb6r3GjzhNW8l+mWtRtLNg5PhJIae041sPyqcFNGb4=", + "lastModified": 1731763621, + "narHash": "sha256-ddcX4lQL0X05AYkrkV2LMFgGdRvgap7Ho8kgon3iWZk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4e0eec54db79d4d0909f45a88037210ff8eaffee", + "rev": "c69a9bffbecde46b4b939465422ddc59493d3e4d", "type": "github" }, "original": { @@ -393,7 +318,6 @@ "root": { "inputs": { "home-manager": "home-manager", - "nekocord": "nekocord", "nix-index-database": "nix-index-database", "nixos-wsl": "nixos-wsl", "nixpkgs": "nixpkgs_2", @@ -422,15 +346,14 @@ }, "sops-nix": { "inputs": { - "nixpkgs": "nixpkgs_4", - "nixpkgs-stable": "nixpkgs-stable" + "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1729999681, - "narHash": "sha256-qm0uCtM9bg97LeJTKQ8dqV/FvqRN+ompyW4GIJruLuw=", + "lastModified": 1731954233, + "narHash": "sha256-vvXx1m2Rsw7MkbKJdpcICzz4YPgZPApGKQGhNZfkhOI=", "owner": "Mic92", "repo": "sops-nix", - "rev": "1666d16426abe79af5c47b7c0efa82fd31bf4c56", + "rev": "e39947d0ee8e341fa7108bd02a33cdfa24a1360e", "type": "github" }, "original": { From 8cd13772637ba81fd729690b087fc0074e0c128d Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 26 Nov 2024 02:20:39 -0500 Subject: [PATCH 2/8] do zed --- common/users/homeModules/zed.nix | 7 +++++++ common/users/meyer/home.nix | 1 + 2 files changed, 8 insertions(+) create mode 100644 common/users/homeModules/zed.nix diff --git a/common/users/homeModules/zed.nix b/common/users/homeModules/zed.nix new file mode 100644 index 0000000..f700d62 --- /dev/null +++ b/common/users/homeModules/zed.nix @@ -0,0 +1,7 @@ +{pkgs, ...}: { + home = { + packages = with pkgs; [ + zed-editor + ]; + }; +} diff --git a/common/users/meyer/home.nix b/common/users/meyer/home.nix index 419640c..0ad0c92 100644 --- a/common/users/meyer/home.nix +++ b/common/users/meyer/home.nix @@ -30,6 +30,7 @@ in ../homeModules/java.nix ../homeModules/jetbrains ../homeModules/notion.nix + ../homeModules/zed.nix # ../homeModules/vscode ./sops.nix ./git.nix From 75ce47c37086464f0322f1062cebd8822dffaa09 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 26 Nov 2024 02:23:31 -0500 Subject: [PATCH 3/8] add clang tools --- common/pkgs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/common/pkgs.nix b/common/pkgs.nix index 64909c3..9cc316f 100644 --- a/common/pkgs.nix +++ b/common/pkgs.nix @@ -9,6 +9,7 @@ let in { dev = with pkgs; [ + llvmPackages_19.clang-tools meson nixfmt-rfc-style nil From 6a9e8e5e60fa6176e254c4d24d7d95307403640e Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:16:17 -0500 Subject: [PATCH 4/8] add bear --- common/pkgs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/common/pkgs.nix b/common/pkgs.nix index 9cc316f..18de9de 100644 --- a/common/pkgs.nix +++ b/common/pkgs.nix @@ -9,6 +9,7 @@ let in { dev = with pkgs; [ + bear llvmPackages_19.clang-tools meson nixfmt-rfc-style From 0fc2be2326575813e270a013c74bd872367b7dfe Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:18:25 -0500 Subject: [PATCH 5/8] update nvim --- dotfiles/nvim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/nvim b/dotfiles/nvim index ddf45b4..e7a5ddf 160000 --- a/dotfiles/nvim +++ b/dotfiles/nvim @@ -1 +1 @@ -Subproject commit ddf45b4e55de9465b4a016b3a02c5b3005aeee95 +Subproject commit e7a5ddfc41ea84c64abad0f88430d6b3b1b6552d From 17c8fbdf3708351eea68d070a6b06a184d54874c Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:59:35 -0500 Subject: [PATCH 6/8] update --- flake.lock | 72 +++++++++++++++++++++++++++--------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/flake.lock b/flake.lock index 019003f..d6e1425 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "fromYaml": "fromYaml" }, "locked": { - "lastModified": 1708890466, - "narHash": "sha256-LlrC09LoPi8OPYOGPXegD72v+//VapgAqhbOFS3i8sc=", + "lastModified": 1732200724, + "narHash": "sha256-+R1BH5wHhfnycySb7Sy5KbYEaTJZWm1h+LW1OtyhiTs=", "owner": "SenchoPens", "repo": "base16.nix", - "rev": "665b3c6748534eb766c777298721cece9453fdae", + "rev": "153d52373b0fb2d343592871009a286ec8837aec", "type": "github" }, "original": { @@ -53,11 +53,11 @@ "base16-vim": { "flake": false, "locked": { - "lastModified": 1716150083, - "narHash": "sha256-ZMhnNmw34ogE5rJZrjRv5MtG3WaqKd60ds2VXvT6hEc=", + "lastModified": 1731949548, + "narHash": "sha256-XIDexXM66sSh5j/x70e054BnUsviibUShW7XhbDGhYo=", "owner": "tinted-theming", "repo": "base16-vim", - "rev": "6e955d704d046b0dc3e5c2d68a2a6eeffd2b5d3d", + "rev": "61165b1632409bd55e530f3dbdd4477f011cadc6", "type": "github" }, "original": { @@ -85,11 +85,11 @@ "flake-compat_2": { "flake": false, "locked": { - "lastModified": 1673956053, - "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", "owner": "edolstra", "repo": "flake-compat", - "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", "type": "github" }, "original": { @@ -124,11 +124,11 @@ ] }, "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -140,11 +140,11 @@ "fromYaml": { "flake": false, "locked": { - "lastModified": 1689549921, - "narHash": "sha256-iX0pk/uB019TdBGlaJEWvBCfydT6sRq+eDcGPifVsCM=", + "lastModified": 1731966426, + "narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=", "owner": "SenchoPens", "repo": "fromYaml", - "rev": "11fbbbfb32e3289d3c631e0134a23854e7865c84", + "rev": "106af9e2f715e2d828df706c386a685698f3223b", "type": "github" }, "original": { @@ -177,11 +177,11 @@ ] }, "locked": { - "lastModified": 1731968878, - "narHash": "sha256-+hTCwETOE9N8voTAaF+IzdUZz28Ws3LDpH90FWADrEE=", + "lastModified": 1732482255, + "narHash": "sha256-GUffLwzawz5WRVfWaWCg78n/HrBJrOG7QadFY6rtV8A=", "owner": "nix-community", "repo": "home-manager", - "rev": "a42fa14b53ceab66274a21da480c9f8e06204173", + "rev": "a9953635d7f34e7358d5189751110f87e3ac17da", "type": "github" }, "original": { @@ -198,11 +198,11 @@ ] }, "locked": { - "lastModified": 1730837930, - "narHash": "sha256-0kZL4m+bKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc=", + "lastModified": 1732482255, + "narHash": "sha256-GUffLwzawz5WRVfWaWCg78n/HrBJrOG7QadFY6rtV8A=", "owner": "nix-community", "repo": "home-manager", - "rev": "2f607e07f3ac7e53541120536708e824acccfaa8", + "rev": "a9953635d7f34e7358d5189751110f87e3ac17da", "type": "github" }, "original": { @@ -218,11 +218,11 @@ ] }, "locked": { - "lastModified": 1731814505, - "narHash": "sha256-l9ryrx1Twh08a+gxrMGM9O/aZKEimZfa6sZVyPCImgI=", + "lastModified": 1732519917, + "narHash": "sha256-AGXhwHdJV0q/WNgqwrR2zriubLr785b02FphaBtyt1Q=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "bdba246946fb079b87b4cada4df9b1cdf1c06132", + "rev": "f4a5ca5771ba9ca31ad24a62c8d511a405303436", "type": "github" }, "original": { @@ -269,11 +269,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1731676054, - "narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=", + "lastModified": 1732521221, + "narHash": "sha256-2ThgXBUXAE1oFsVATK1ZX9IjPcS4nKFOAjhPNKuiMn0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add", + "rev": "4633a7c72337ea8fd23a4f2ba3972865e3ec685d", "type": "github" }, "original": { @@ -349,11 +349,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1731954233, - "narHash": "sha256-vvXx1m2Rsw7MkbKJdpcICzz4YPgZPApGKQGhNZfkhOI=", + "lastModified": 1732575825, + "narHash": "sha256-xtt95+c7OUMoqZf4OvA/7AemiH3aVuWHQbErYQoPwFk=", "owner": "Mic92", "repo": "sops-nix", - "rev": "e39947d0ee8e341fa7108bd02a33cdfa24a1360e", + "rev": "3433ea14fbd9e6671d0ff0dd45ed15ee4c156ffa", "type": "github" }, "original": { @@ -381,11 +381,11 @@ "tinted-tmux": "tinted-tmux" }, "locked": { - "lastModified": 1731920923, - "narHash": "sha256-Pqe38TdvfyywhlhpR1WLJlD7uTOGXRRuzpHIh2edOz0=", + "lastModified": 1732608183, + "narHash": "sha256-T5k5ill+PNIEW6KuS4CpUacMtZNJe2J2q5eBOF4xWuU=", "owner": "danth", "repo": "stylix", - "rev": "f8699483e46972f64b0dee5d5e41bf4bb142629b", + "rev": "7689e621f87bce7b6ab1925dfd70ad1f4c80f334", "type": "github" }, "original": { @@ -461,11 +461,11 @@ "tinted-tmux": { "flake": false, "locked": { - "lastModified": 1696725902, - "narHash": "sha256-wDPg5elZPcQpu7Df0lI5O8Jv4A3T6jUQIVg63KDU+3Q=", + "lastModified": 1729501581, + "narHash": "sha256-1ohEFMC23elnl39kxWnjzH1l2DFWWx4DhFNNYDTYt54=", "owner": "tinted-theming", "repo": "tinted-tmux", - "rev": "c02050bebb60dbb20cb433cd4d8ce668ecc11ba7", + "rev": "f0e7f7974a6441033eb0a172a0342e96722b4f14", "type": "github" }, "original": { From 1e7151caaeb3a2a6e31bee8ab89f422cbde252cf Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:59:44 -0500 Subject: [PATCH 7/8] fix gnome calculator --- common/pkgs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/pkgs.nix b/common/pkgs.nix index 18de9de..75e25dc 100644 --- a/common/pkgs.nix +++ b/common/pkgs.nix @@ -123,7 +123,7 @@ in teamviewer davinci-resolve warp-terminal - gnome.gnome-calculator + gnome-calculator libsForQt5.kcolorchooser python312Packages.openai-whisper firefox-devedition From d901087c2c48ddbecd720790966239ce29ef8ba7 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:59:47 -0500 Subject: [PATCH 8/8] fix kanata --- common/programs/kanata.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/programs/kanata.nix b/common/programs/kanata.nix index b413431..e20a709 100644 --- a/common/programs/kanata.nix +++ b/common/programs/kanata.nix @@ -47,7 +47,7 @@ ${pkgs.kanata}/bin/kanata \ --cfg ${./config.kbd} ''; - User=NAME; + User="root"; }; wantedBy = [ "multi-user.target" ]; };