mirror of
https://github.com/sstent/vmimages.git
synced 2025-12-06 06:01:51 +00:00
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{ inputs, lib, pkgs, config, outputs, ... }:
|
|
{
|
|
|
|
imports = [
|
|
./beets.nix
|
|
"${inputs.vscode-server}/modules/vscode-server/home.nix"
|
|
] ++ (builtins.attrValues outputs.homeManagerModules);
|
|
|
|
|
|
|
|
###dotfiles path variable
|
|
options._dotfiles = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "${inputs.self}/home-manager/dotfiles";
|
|
description = "Path to the dotfiles in this repository";
|
|
};
|
|
|
|
###secrets path variable
|
|
options._secrets = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "/run/user/1000/secrets/";
|
|
description = "Path to the Secrets runtime";
|
|
};
|
|
|
|
|
|
###secretstore path variable
|
|
options._secretstore = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "${inputs.self}/secrets/";
|
|
description = "Path to the Secrets storage";
|
|
};
|
|
|
|
config = {
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
overlays = builtins.attrValues outputs.overlays;
|
|
config = {
|
|
allowUnfree = true;
|
|
allowUnfreePredicate = (_: true);
|
|
};
|
|
};
|
|
|
|
nix = {
|
|
package = lib.mkDefault pkgs.nix;
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
|
warn-dirty = false;
|
|
};
|
|
};
|
|
|
|
##VSCode
|
|
services.vscode-server.enable = true;
|
|
services.vscode-server.enableFHS = true;
|
|
services.vscode-server.nodejsPackage = pkgs.nodejs-18_x;
|
|
|
|
|
|
programs = {
|
|
home-manager.enable = true;
|
|
git.enable = true;
|
|
};
|
|
};
|
|
}
|