From b64e939886adb60651622b3fcb47f4e64544632e Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sat, 2 Jan 2021 16:21:55 +0300 Subject: [PATCH] we got vscode now --- flake.lock | 12 ++++++------ hosts/lungmen.nix | 3 +++ users/patriot/home.nix | 33 ++++++++++++++++++++++++++++++--- 3 files changed, 39 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 96b5dc8..55c8a61 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1609081855, - "narHash": "sha256-wxTOLR1BSMojbJ8N2pIsaf6+AD4WZNeCSP34OKiJfvE=", + "lastModified": 1609573857, + "narHash": "sha256-AlCR2ffY5ZOwwazzhM3BuQ5Z82JiNV4mur6p7RMoR6g=", "owner": "nix-community", "repo": "home-manager", - "rev": "5263fe459413a411e51355bfae5b5673b481dbe3", + "rev": "73506f947c3a2f63306233358231b069865d1d56", "type": "github" }, "original": { @@ -58,11 +58,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1609120269, - "narHash": "sha256-gVPp8Pnxp9a2TE6FAU6fGR8IfLEFIft3r06OtJ/o3/0=", + "lastModified": 1609337051, + "narHash": "sha256-Rzo2IFMZKuMJ6waaGgIRMpbt2eHUjx3iByFdjG23buA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "950c5e1879e57d9aedf64db53b4ec6f59f2ac17f", + "rev": "ac02f26980ffc6a84844943cb2c303662225543a", "type": "github" }, "original": { diff --git a/hosts/lungmen.nix b/hosts/lungmen.nix index c69e653..01296a0 100644 --- a/hosts/lungmen.nix +++ b/hosts/lungmen.nix @@ -71,6 +71,9 @@ in btrfs subvolume snapshot /mnt/root-blank /mnt/root umount /mnt ''; + kernel.sysctl = { + "fs.inotify.max_user_watches" = 524288; + }; }; fileSystems."/" = { diff --git a/users/patriot/home.nix b/users/patriot/home.nix index 1e1e671..1bdf786 100644 --- a/users/patriot/home.nix +++ b/users/patriot/home.nix @@ -16,8 +16,8 @@ let kideSrc = pkgs.fetchgit { url = "https://gitlab.com/yusdacra/kide.git"; - rev = "cfb159181291a3322cfbc5f12f0046330105b7a0"; - sha256 = "sha256-O3afZnJCTL/cuefmhwLw9gBPIBNuLk3ifqF726J9faE="; + rev = "2d76f8b668e7ff12fd686a101f0d26d50b6c0ece"; + sha256 = "sha256-ONQmrJvNnmQ9W350od46VECW6Ir3KOMUJRnEMeVIsgg="; fetchSubmodules = true; }; kideFiles = @@ -219,7 +219,7 @@ in wayland.windowManager = { hikari = { - enable = true; + # enable = true; inherit font; }; sway = { @@ -667,6 +667,33 @@ in } ''; }; + vscode = { + enable = true; + package = pkgs.vscodium; + extensions = + let + mkExt = n: v: p: s: { name = n; version = v; publisher = p; sha256 = s; }; + in + pkgs.vscode-utils.extensionsFromVscodeMarketplace [ + # Rust + (mkExt "rust-analyzer" "0.2.432" "matklad" "sha256-XsJlfbvxVzI0wdwIvswLUWnmczCrpT+MtedmjxVOvso=") + (mkExt "even-better-toml" "0.10.0" "tamasfe" "sha256-miJ7gXYavLyJneKOSs+4GaFG4v6ocem2YOWyAUrOfs8=") + (mkExt "vscode-ron" "0.9.0" "a5huynh" "sha256-J30hxEYCkr4xhaJ+DfffjwRJZx9NGCOrA6VcDCsodzQ=") + (mkExt "crates" "0.5.3" "serayuzgur" "sha256-TpzeEPBE75Ov2qDPa22k7e0pTDLQX8z0qBqCVLZXZ/Y=") + # Nix + (mkExt "nix-env-selector" "0.1.2" "arrterian" "sha256-aTNxr1saUaN9I82UYCDsQvH9UBWjue/BSnUmMQOnsdg=") + (mkExt "nix-ide" "0.1.7" "jnoortheen" "sha256-NXMwd1Yi6kVxXLhWgzFOXQm580Mv4UPh6jUulbDnhK8=") + # Go + (mkExt "Go" "0.20.1" "golang" "sha256-UjGaePjYceLdkf2yrxkVy6ht2aStJ5wklguKe/Z8HUI=") + # Flutter and dart + (mkExt "flutter" "3.18.0" "Dart-Code" "sha256-nvKBPSe0+WQ8m88WrQqhzVrqYBjcBhiz6EuJ38gTFhQ=") + (mkExt "dart-code" "3.18.0" "Dart-Code" "sha256-E+qrY7wOvengOs2yKqhh+5dRLu3dUu6yWxGcwD7QHuI=") + # Customization + (mkExt "dance" "0.3.2" "gregoire" "sha256-+g8EXeCkPOPvZ60JoXkGTeSXYWrXmKrcbUaEfDppdgA=") + (mkExt "material-icon-theme" "4.4.0" "PKief" "sha256-yiM+jtc7UW8PQTwmHmXHSSmvYC73GLh/cLYnmYqONdU=") + (mkExt "noctis" "10.39.1" "liviuschera" "sha256-Ak1DcfyK0RdPx81flWBXJxtDsZmulQXeOWFH0b2AoCQ=") + ]; + }; }; services = {