This repository has been archived on 2024-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
code-server-configurations/flake.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

2023-07-04 09:31:01 +00:00
{
description = "Home Manager configuration of coder";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-09-28 05:36:53 +00:00
nil = {
url = "github:oxalica/nil/2023-08-09";
2023-07-05 02:33:04 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
2023-11-13 01:39:35 +00:00
vscode-server = {
url = "github:nix-community/nixos-vscode-server";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-07-04 09:31:01 +00:00
};
2023-11-13 01:39:35 +00:00
outputs = { nixpkgs, home-manager, nil, vscode-server, ... }:
2023-07-04 09:31:01 +00:00
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
homeConfigurations."coder" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2023-09-28 05:36:53 +00:00
2023-07-04 09:31:01 +00:00
# Specify your home configuration modules here, for example,
# the path to your home.nix.
2023-07-04 10:12:49 +00:00
modules = [
./home.nix
./programs.nix
2023-11-13 01:39:35 +00:00
./services.nix
2023-07-04 10:12:49 +00:00
];
2023-07-04 09:31:01 +00:00
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
2023-07-05 02:33:04 +00:00
extraSpecialArgs = {
2023-09-28 05:36:53 +00:00
nil = nil.packages.${system};
2023-11-13 01:39:35 +00:00
vscode-server = vscode-server.pakcages.${system};
2023-07-05 02:33:04 +00:00
};
2023-07-04 09:31:01 +00:00
};
};
}