aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nix
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-07-02 11:35:35 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-07-02 11:35:35 +0100
commit694cd2fc4680ccea939c9569f0a76cf1deaa5d2d (patch)
treecaee9e596c64c4f0655e4ccc4b6ed8fc55e027dd /nix
parent8200f2d7cf9fe8ff0fa72701494e598daab6340e (diff)
downloaddotfiles-694cd2fc4680ccea939c9569f0a76cf1deaa5d2d.tar.gz
dotfiles-694cd2fc4680ccea939c9569f0a76cf1deaa5d2d.tar.bz2
dotfiles-694cd2fc4680ccea939c9569f0a76cf1deaa5d2d.zip
Add repo validation dev shell
Diffstat (limited to 'nix')
-rw-r--r--nix/flake.nix47
-rw-r--r--nix/justfile2
2 files changed, 37 insertions, 12 deletions
diff --git a/nix/flake.nix b/nix/flake.nix
index f452228..7c7daa6 100644
--- a/nix/flake.nix
+++ b/nix/flake.nix
@@ -21,7 +21,14 @@
};
};
- outputs = { self, nixpkgs, home-manager, tuicr, ... }:
+ outputs =
+ {
+ self,
+ nixpkgs,
+ home-manager,
+ tuicr,
+ ...
+ }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
@@ -35,26 +42,44 @@
# github-copilot-cli) instead of globally setting allowUnfree,
# so a typo elsewhere can't silently pull in additional unfree
# deps.
- config.allowUnfreePredicate = pkg:
+ config.allowUnfreePredicate =
+ pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"claude-code"
"github-copilot-cli"
];
};
- mkProfile = module: home-manager.lib.homeManagerConfiguration {
- inherit pkgs;
- modules = [ module ];
- # Path to the cloned dotfiles checkout — passed in so the
- # modules can symlink shared configs from the same repo.
- extraSpecialArgs = {
- dotfilesRoot = ../.;
+ mkProfile =
+ module:
+ home-manager.lib.homeManagerConfiguration {
+ inherit pkgs;
+ modules = [ module ];
+ # Path to the cloned dotfiles checkout — passed in so the
+ # modules can symlink shared configs from the same repo.
+ extraSpecialArgs = {
+ dotfilesRoot = ../.;
+ };
};
- };
in
{
+ devShells.${system}.default = pkgs.mkShellNoCC {
+ packages = with pkgs; [
+ basedpyright
+ just
+ nixfmt
+ prettier
+ ruff
+ selene
+ shellcheck
+ shfmt
+ stylua
+ taplo
+ ];
+ };
+
homeConfigurations = {
- vm = mkProfile ./vm.nix;
+ vm = mkProfile ./vm.nix;
host = mkProfile ./host.nix;
};
};
diff --git a/nix/justfile b/nix/justfile
index 3368193..4ecd75b 100644
--- a/nix/justfile
+++ b/nix/justfile
@@ -2,7 +2,7 @@
# Show available recipes (default)
default:
- @just --list
+ @printf 'Run `just --list` to show available recipes.\n'
# Pull latest dotfiles, rebuild Home-Manager profile, and apply dotfiles
update: pull switch apply