diff --git a/flake.lock b/flake.lock index b2e5e8a..dfb46fa 100644 --- a/flake.lock +++ b/flake.lock @@ -104,6 +104,24 @@ "type": "github" } }, + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "fromYaml": { "flake": false, "locked": { @@ -174,6 +192,27 @@ }, "parent": [] }, + "nix-vscode-extensions": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1756259830, + "narHash": "sha256-Xe9BcrvCc9uw7mcMQC8sFPPp5+eY521ovorHSbB/uzg=", + "owner": "nix-community", + "repo": "nix-vscode-extensions", + "rev": "77b0a9f94092ac2a262c750a56b32d6e296f4a1f", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-vscode-extensions", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1755615617, @@ -219,6 +258,7 @@ "inputs": { "home-manager": "home-manager", "install-system": "install-system", + "nix-vscode-extensions": "nix-vscode-extensions", "nixpkgs": "nixpkgs", "stylix": "stylix" } @@ -236,7 +276,7 @@ "nixpkgs" ], "nur": "nur", - "systems": "systems", + "systems": "systems_2", "tinted-foot": "tinted-foot", "tinted-kitty": "tinted-kitty", "tinted-schemes": "tinted-schemes", @@ -273,6 +313,21 @@ "type": "github" } }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "tinted-foot": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index 35ca889..5ebb0ed 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,10 @@ url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; }; + nix-vscode-extensions = { + url = "github:nix-community/nix-vscode-extensions"; + inputs.nixpkgs.follows = "nixpkgs"; + }; stylix = { url = "github:danth/stylix/master"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/modules/core/user.nix b/modules/core/user.nix index 2ea26d5..2d039c4 100644 --- a/modules/core/user.nix +++ b/modules/core/user.nix @@ -45,6 +45,7 @@ in shell = pkgs.${shellCfg.defaultShell}; ignoreShellProgramCheck = true; packages = with pkgs; [ + direnv fzf ]; }; diff --git a/modules/home/default.nix b/modules/home/default.nix index 5a885fa..a5cc3f8 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -5,6 +5,8 @@ imports = [ ./hyprland ./kitty.nix + ./overlays.nix + ./vscodium.nix ./xdg.nix ./zsh ]; diff --git a/modules/home/overlays.nix b/modules/home/overlays.nix new file mode 100644 index 0000000..00e3b0e --- /dev/null +++ b/modules/home/overlays.nix @@ -0,0 +1,11 @@ +{ + inputs, + ... +}: +{ + nixpkgs = { + overlays = [ + inputs.nix-vscode-extensions.overlays.default + ]; + }; +} diff --git a/modules/home/vscodium.nix b/modules/home/vscodium.nix new file mode 100644 index 0000000..cd5957a --- /dev/null +++ b/modules/home/vscodium.nix @@ -0,0 +1,26 @@ +{ + pkgs, + ... +}: +{ + programs.vscode = { + enable = true; + package = pkgs.vscodium; + profiles.default.extensions = with pkgs.vscode-extensions; with pkgs.vscode-marketplace; [ + amazonwebservices.aws-toolkit-vscode + arrterian.nix-env-selector + christian-kohler.path-intellisense + eamodio.gitlens + esbenp.prettier-vscode + jnoortheen.nix-ide + leonardssh.vscord + mkhl.direnv + ms-python.debugpy + ms-python.python + opentofu.vscode-opentofu + redhat.ansible + redhat.vscode-yaml + rvest.vs-code-prettier-eslint + ]; + }; +}