mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
must be a desktop to install vscode
This commit is contained in:
parent
9332150deb
commit
4ebca41452
2 changed files with 17 additions and 3 deletions
|
@ -2,7 +2,13 @@
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
gitea-shim = pkgs.writeShellScriptBin "gitea" ''
|
||||||
|
#!/bin/sh
|
||||||
|
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
||||||
|
'';
|
||||||
|
|
||||||
|
in {
|
||||||
imports = with inputs.self.nixosModules; [
|
imports = with inputs.self.nixosModules; [
|
||||||
docker
|
docker
|
||||||
];
|
];
|
||||||
|
@ -15,6 +21,8 @@
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
rclone
|
rclone
|
||||||
|
|
||||||
|
gitea-shim
|
||||||
];
|
];
|
||||||
|
|
||||||
# https://francis.begyn.be/blog/nixos-restic-backups
|
# https://francis.begyn.be/blog/nixos-restic-backups
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
{
|
{
|
||||||
input,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
cfg = config.desktop;
|
||||||
|
in {
|
||||||
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# vscode
|
# vscode
|
||||||
vscode-fhs
|
vscode-fhs
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue