feat: full refactoring - work in progress...

This commit is contained in:
Xavier Morel
2025-07-23 16:49:52 +02:00
parent 66f7edf9a3
commit 85fdab6375
38 changed files with 726 additions and 774 deletions

View File

@@ -0,0 +1,42 @@
{
inputs,
config,
lib,
pkgs,
...
}:
{
options.myHome.services.nix.enable = lib.mkEnableOption "enable nix configuration";
config = lib.mkIf config.myHome.services.nix.enable {
home.sessionVariables = {
FLAKE = "${config.home.homeDirectory}/nixos/";
NH_FLAKE = "${config.home.homeDirectory}/nixos/";
};
systemPackages = map lib.lowPrio [
pkgs.nh
pkgs.nil
pkgs.nixfmt-rfc-style
];
nix = {
settings = {
auto-optimise-store = true;
experimental-features = [
"nix-command"
"flakes"
];
trusted-users = [
"root"
];
};
gc = {
automatic = true;
# dates = "weekly";
};
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
extraOptions = ''
extra-substituters = https://devenv.cachix.org
extra-trusted-public-keys = devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=
'';
};
};
}