mirror of
https://github.com/Cian-H/My_NixOS_Config.git
synced 2025-12-22 15:01:57 +00:00
40 lines
761 B
Nix
40 lines
761 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
unstablePkgs,
|
|
...
|
|
}: {
|
|
environment.etc =
|
|
lib.mapAttrs'
|
|
(name: value: {
|
|
name = "nix/path/${name}";
|
|
value.source = value.flake;
|
|
})
|
|
config.nix.registry
|
|
// {
|
|
"justfile" = {
|
|
text = ''
|
|
default:
|
|
@just -g --list
|
|
|
|
update-root:
|
|
if `/usr/bin/env grep -Rq "nixos" /etc/*-release`; then \
|
|
nixos-rebuild switch --flake /home/cianh/.config/nix/#$HOSTNAME; \
|
|
fi
|
|
'';
|
|
mode = "0644";
|
|
};
|
|
"root_gitconfig" = {
|
|
text = ''
|
|
[safe]
|
|
directory = /home/cianh/.config/nix
|
|
'';
|
|
};
|
|
};
|
|
environment.systemPackages = [
|
|
pkgs.pinentry-tty
|
|
];
|
|
}
|