This commit is contained in:
2026-03-04 15:26:23 +01:00
parent a439ad7575
commit 3e5e3cfe32
4 changed files with 356 additions and 362 deletions
+318 -320
View File
File diff suppressed because it is too large Load Diff
+2 -4
View File
@@ -1055,7 +1055,7 @@ in
These are global nix settings that configure the settings for the actual tool.
#+begin_src nix :tangle configuration/core/nix-settings.nix :noweb tangle :mkdirp yes
{ pkgs, user, ... } :
{ pkgs, user, ... } :
{
nix.settings = {
# enable flakes
@@ -1074,8 +1074,6 @@ These are global nix settings that configure the settings for the actual tool.
# allow proprietary software on this machine. I'm not a purist.
nixpkgs.config.allowUnfree = true;
# unityhub depends on this... for now
# nixpkgs.config.permittedInsecurePackages = [ "libxml2-2.13.8" ];
# this declares how often old configurations are cleared up.
# i cleanup anything older than a week, every week.
@@ -1461,7 +1459,7 @@ The configuration is done in the home manager section.
#+begin_src nix :tangle configuration/end_script.nix :noweb tangle :mkdirp yes
{ lib, config, pkgs, ... }:
let
scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh";
scriptPath = "${pkgs.path}/../assets/scripts/end_script.sh";
scriptExists = builtins.pathExists scriptPath;
in
{
@@ -1,38 +1,36 @@
{ pkgs, user, ... } :
{
nix.settings = {
# enable flakes
experimental-features = ["nix-command" "flakes"];
{
nix.settings = {
# enable flakes
experimental-features = ["nix-command" "flakes"];
# add a cache that speed up new applications by downloading binaries
# from the trusted cache instead of compiling from sourcer
substituters = [
# add a cache that speed up new applications by downloading binaries
# from the trusted cache instead of compiling from sourcer
substituters = [
"https://nix-community.cachix.org"
];
# trust the cache public key
trusted-public-keys = [
];
# trust the cache public key
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
];
};
# allow proprietary software on this machine. I'm not a purist.
nixpkgs.config.allowUnfree = true;
# unityhub depends on this... for now
# nixpkgs.config.permittedInsecurePackages = [ "libxml2-2.13.8" ];
# allow proprietary software on this machine. I'm not a purist.
nixpkgs.config.allowUnfree = true;
# this declares how often old configurations are cleared up.
# i cleanup anything older than a week, every week.
nix.gc = {
automatic = true;
options = "--delete-older-than 7d";
dates = "weekly";
};
# this declares how often old configurations are cleared up.
# i cleanup anything older than a week, every week.
nix.gc = {
automatic = true;
options = "--delete-older-than 7d";
dates = "weekly";
};
programs = {
# command line utility that makes applying changes easy and pretty
nh = {
programs = {
# command line utility that makes applying changes easy and pretty
nh = {
enable = true;
flake = "/home/${user.username}/system";
};
};
}
};
};
}
+1 -1
View File
@@ -1,6 +1,6 @@
{ lib, config, pkgs, ... }:
let
scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh";
scriptPath = "${pkgs.path}/../assets/scripts/end_script.sh";
scriptExists = builtins.pathExists scriptPath;
in
{