.
This commit is contained in:
+318
-320
File diff suppressed because it is too large
Load Diff
@@ -1055,7 +1055,7 @@ in
|
|||||||
These are global nix settings that configure the settings for the actual tool.
|
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
|
#+begin_src nix :tangle configuration/core/nix-settings.nix :noweb tangle :mkdirp yes
|
||||||
{ pkgs, user, ... } :
|
{ pkgs, user, ... } :
|
||||||
{
|
{
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
# enable flakes
|
# 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.
|
# allow proprietary software on this machine. I'm not a purist.
|
||||||
nixpkgs.config.allowUnfree = true;
|
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.
|
# this declares how often old configurations are cleared up.
|
||||||
# i cleanup anything older than a week, every week.
|
# 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
|
#+begin_src nix :tangle configuration/end_script.nix :noweb tangle :mkdirp yes
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh";
|
scriptPath = "${pkgs.path}/../assets/scripts/end_script.sh";
|
||||||
scriptExists = builtins.pathExists scriptPath;
|
scriptExists = builtins.pathExists scriptPath;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,38 +1,36 @@
|
|||||||
{ pkgs, user, ... } :
|
{ pkgs, user, ... } :
|
||||||
{
|
{
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
# enable flakes
|
# enable flakes
|
||||||
experimental-features = ["nix-command" "flakes"];
|
experimental-features = ["nix-command" "flakes"];
|
||||||
|
|
||||||
# add a cache that speed up new applications by downloading binaries
|
# add a cache that speed up new applications by downloading binaries
|
||||||
# from the trusted cache instead of compiling from sourcer
|
# from the trusted cache instead of compiling from sourcer
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
];
|
];
|
||||||
# trust the cache public key
|
# trust the cache public key
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# allow proprietary software on this machine. I'm not a purist.
|
# allow proprietary software on this machine. I'm not a purist.
|
||||||
nixpkgs.config.allowUnfree = true;
|
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.
|
# this declares how often old configurations are cleared up.
|
||||||
# i cleanup anything older than a week, every week.
|
# i cleanup anything older than a week, every week.
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
options = "--delete-older-than 7d";
|
options = "--delete-older-than 7d";
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
# command line utility that makes applying changes easy and pretty
|
# command line utility that makes applying changes easy and pretty
|
||||||
nh = {
|
nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
flake = "/home/${user.username}/system";
|
flake = "/home/${user.username}/system";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh";
|
scriptPath = "${pkgs.path}/../assets/scripts/end_script.sh";
|
||||||
scriptExists = builtins.pathExists scriptPath;
|
scriptExists = builtins.pathExists scriptPath;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user