Compare commits
2 commits
322e21f3f9
...
b762136ad6
Author | SHA1 | Date | |
---|---|---|---|
b762136ad6 | |||
6149476222 |
4 changed files with 44 additions and 2 deletions
26
flake.lock
26
flake.lock
|
@ -379,7 +379,8 @@
|
|||
"pre-commit-hooks": "pre-commit-hooks",
|
||||
"riscv-overlay": "riscv-overlay",
|
||||
"sops-nix": "sops-nix",
|
||||
"systems": "systems"
|
||||
"systems": "systems",
|
||||
"vscode-server": "vscode-server"
|
||||
}
|
||||
},
|
||||
"sops-nix": {
|
||||
|
@ -419,6 +420,29 @@
|
|||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"vscode-server": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
"flake-utils"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1729422940,
|
||||
"narHash": "sha256-DlvJv33ml5UTKgu4b0HauOfFIoDx6QXtbqUF3vWeRCY=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixos-vscode-server",
|
||||
"rev": "8b6db451de46ecf9b4ab3d01ef76e59957ff549f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nixos-vscode-server",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
|
@ -71,6 +71,11 @@
|
|||
inputs.nixpkgs-stable.follows = "nixpkgs";
|
||||
};
|
||||
systems.url = "github:nix-systems/default";
|
||||
vscode-server = {
|
||||
url = "github:nix-community/nixos-vscode-server";
|
||||
inputs.flake-utils.follows = "flake-utils";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
_: {
|
||||
{config, ...}: {
|
||||
imports = [
|
||||
./nvim
|
||||
];
|
||||
home-manager.users.darkkirb.imports = if config.isGraphical then [./vscode] else [];
|
||||
}
|
||||
|
|
12
programs/editors/vscode/default.nix
Normal file
12
programs/editors/vscode/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{vscode-server, ...}: {
|
||||
imports = [
|
||||
"${vscode-server}/modules/vscode-server/home.nix"
|
||||
];
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
enableExtensionUpdateCheck = false;
|
||||
enableUpdateCheck = false;
|
||||
mutableExtensionsDir = false;
|
||||
};
|
||||
services.vscode-server.enable = true;
|
||||
}
|
Loading…
Reference in a new issue