Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-02-22 00:09:19 +00:00
parent 0235b1146f
commit 2202f2bae8
10 changed files with 37 additions and 17 deletions

24
flake.lock generated
View File

@@ -31,11 +31,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1739787548, "lastModified": 1739969582,
"narHash": "sha256-Gt4yc0nM4l63NIBgSznxriZQtrE1Xk6NlZauGiMmJ/4=", "narHash": "sha256-ni6tM12mzArohqzvscZn/N52GHiXZsskN6yMYzo25XI=",
"owner": "aylur", "owner": "aylur",
"repo": "astal", "repo": "astal",
"rev": "cbfe69a9c22f3b0e59c6e09fffbe0b7af4f543d1", "rev": "a0de1526d2de8a02feec1cba4086f284ec9f6098",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -115,11 +115,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1739877460, "lastModified": 1740068813,
"narHash": "sha256-0R74c61IDiLAi5xaAF4xUXHS5eQwYteJDGRIDU/L4sM=", "narHash": "sha256-8GRcU5uERvZDT/XNyI73ozHSBLrEmCdC0zgEY+Jff2s=",
"owner": "karaolidis", "owner": "karaolidis",
"repo": "home-manager", "repo": "home-manager",
"rev": "3cf2f577ce131fca013dd4d94dca3639561a72b4", "rev": "4d6357dad7350b01339955acb690c57026eacee2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -131,11 +131,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1739870578, "lastModified": 1740070152,
"narHash": "sha256-qyqT2uWe3RgUivggVZavLRVybJzCUzYpYFiwnVl1xlo=", "narHash": "sha256-sTFYmNhrBogFEAQ0DnpDMR+aZ+7cjV2XamgPIaqO3kI=",
"owner": "karaolidis", "owner": "karaolidis",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e218d9413c9e4d6ebbd0a887daaadb34c4309311", "rev": "6abb8f6d73fe6b7e9870f0ccc11a96958590b645",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -156,11 +156,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1739868628, "lastModified": 1740062783,
"narHash": "sha256-+EZ2ISNFFnTQvY11irgaIidxcXDrQdBoyr/AyxU3yi0=", "narHash": "sha256-t+SH36EoF9vj/bTiqp71upfy0vdQgSM6WhtThiLBCxs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "dfbf53ec75e21fa05e1635ebee68eab14af3abe2", "rev": "86b71ef14fff48d7c19097bfee104ddc72a977a9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -175,6 +175,7 @@
nix = import ./hosts/common/shells/nix { inherit pkgs; }; nix = import ./hosts/common/shells/nix { inherit pkgs; };
nodejs = import ./hosts/common/shells/nodejs { inherit pkgs; }; nodejs = import ./hosts/common/shells/nodejs { inherit pkgs; };
python = import ./hosts/common/shells/python { inherit pkgs; }; python = import ./hosts/common/shells/python { inherit pkgs; };
rust = import ./hosts/common/shells/rust { inherit pkgs; };
}; };
formatter = treefmt.config.build.wrapper; formatter = treefmt.config.build.wrapper;

View File

@@ -11,9 +11,7 @@
settings = { settings = {
global = { global = {
excludes = [ excludes = [ ".envrc" ];
".envrc"
];
}; };
}; };
} }

View File

@@ -0,0 +1,9 @@
{
config,
lib,
pkgs,
...
}:
lib.mkIf config.programs.vscode.languages.python.enable {
programs.vscode.extensions = with pkgs.vscode-extensions; [ rust-lang.rust-analyzer ];
}

View File

@@ -20,6 +20,7 @@ in
nix.enable = mkEnableOption "Nix"; nix.enable = mkEnableOption "Nix";
python.enable = mkEnableOption "Python"; python.enable = mkEnableOption "Python";
rest.enable = mkEnableOption "REST"; rest.enable = mkEnableOption "REST";
rust.enable = mkEnableOption "Rust";
sas.enable = mkEnableOption "SAS"; sas.enable = mkEnableOption "SAS";
sops.enable = mkEnableOption "SOPS"; sops.enable = mkEnableOption "SOPS";
svelte.enable = mkEnableOption "Svelte"; svelte.enable = mkEnableOption "Svelte";
@@ -41,6 +42,7 @@ in
./langs/nix ./langs/nix
./langs/python ./langs/python
./langs/rest ./langs/rest
./langs/rust
./langs/sas ./langs/sas
./langs/sops ./langs/sops
./langs/svelte ./langs/svelte

View File

@@ -0,0 +1,8 @@
{ pkgs, ... }:
pkgs.mkShell {
packages = with pkgs; [
cargo
rustc
rustfmt
];
}

View File

@@ -13,6 +13,7 @@
nix.enable = true; nix.enable = true;
python.enable = true; python.enable = true;
rest.enable = true; rest.enable = true;
rust.enable = true;
sops.enable = true; sops.enable = true;
typescript.enable = true; typescript.enable = true;
yaml.enable = true; yaml.enable = true;

View File

@@ -17,6 +17,7 @@
nix.enable = true; nix.enable = true;
python.enable = true; python.enable = true;
rest.enable = true; rest.enable = true;
rust.enable = true;
sas.enable = true; sas.enable = true;
sops.enable = true; sops.enable = true;
typescript.enable = true; typescript.enable = true;