treewide: config/nixos/nix -> modules/nix/core/nix.nix

This commit is contained in:
Anthony Rodriguez 2025-01-14 13:49:29 +01:00
parent a734372732
commit c37f00205b
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
6 changed files with 36 additions and 40 deletions

View file

@ -1,6 +1,5 @@
{
imports = [
./nix
./programs
./services
];

View file

@ -1,17 +0,0 @@
{pkgs, ...}: {
imports = [./nixpkgs.nix ./nh.nix];
environment.systemPackages = [pkgs.git];
nix = {
package = pkgs.lix;
settings = {
accept-flake-config = true;
warn-dirty = false;
auto-optimise-store = true;
trusted-users = ["root" "@wheel"];
experimental-features = [
"nix-command"
"flakes"
];
};
};
}

View file

@ -1,9 +0,0 @@
{
programs.nh = {
enable = true;
clean = {
enable = true;
extraArgs = "--keep-since 30d --keep 3";
};
};
}

View file

@ -1,13 +0,0 @@
{
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"cinny-4.2.3"
"cinny-unwrapped-4.2.3"
"segger-jlink-qt4-810"
];
segger-jlink.acceptLicense = true;
};
};
}

View file

@ -6,6 +6,7 @@
./home-manager.nix
./locales.nix
./networking.nix
./nix.nix
./users.nix
./security.nix
];

35
modules/nix/core/nix.nix Normal file
View file

@ -0,0 +1,35 @@
{pkgs, ...}: {
nix = {
package = pkgs.lix;
settings = {
accept-flake-config = true;
warn-dirty = false;
auto-optimise-store = true;
trusted-users = ["root" "@wheel"];
experimental-features = [
"nix-command"
"flakes"
];
};
};
programs.nh = {
enable = true;
clean = {
enable = true;
extraArgs = "--keep-since 30d --keep 3";
};
};
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"cinny-4.2.3"
"cinny-unwrapped-4.2.3"
"segger-jlink-qt4-810"
];
segger-jlink.acceptLicense = true;
};
};
}