Add devenv for dotfiles

This commit is contained in:
2023-09-17 17:39:36 +01:00
parent ccc595d9a6
commit 146ec0270f
5 changed files with 331 additions and 15 deletions

View File

@@ -7,16 +7,22 @@
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
i3utils.url = "git+https://git.sr.ht/~dpatterbee/i3utils?ref=main";
i3utils.inputs.nixpkgs.follows = "nixpkgs";
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
alejandra.inputs.nixpkgs.follows = "nixpkgs";
devenv.url = "github:cachix/devenv";
devenv.inputs.nixpkgs.follows = "nixpkgs";
golink.url = "github:tailscale/golink";
golink.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "github:hyprwm/Hyprland";
golink.url = "github:tailscale/golink";
golink.inputs.nixpkgs.follows = "nixpkgs";
i3utils.url = "git+https://git.sr.ht/~dpatterbee/i3utils?ref=main";
i3utils.inputs.nixpkgs.follows = "nixpkgs";
nixgl.url = "github:/guibou/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
@@ -25,13 +31,15 @@
outputs = {
nixpkgs,
agenix,
home-manager,
i3utils,
hyprland,
alejandra,
devenv,
golink,
home-manager,
hyprland,
i3utils,
nixgl,
...
}: let
} @ inputs: let
system = "x86_64-linux";
pkgs =
@@ -142,5 +150,29 @@
hostname = "deck";
};
};
devShell.${system} = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
{
# https://devenv.sh/reference/options/
packages = with pkgs; [
alejandra.packages.${system}.default
];
enterShell = ''
'';
env = {
};
scripts = {
tidy.exec = ''
alejandra -e ./users/configs/desktop/hyprland/default.nix .
'';
};
}
];
};
};
}