Merge branch 'main' of github.com:asosnovsky/nixos-setup
This commit is contained in:
commit
51f15e0652
41 files changed
+425
-130
No files matched your search
@@ -4,9 +4,13 @@
|
||||
# Nix core
|
||||
system.stateVersion = systemStateVersion;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
services.hydra.useSubstitutes = true;
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
substituters = [
|
||||
"https://cache.nixos.org"
|
||||
"https://cache.flox.dev"
|
||||
"https://devenv.cachix.org"
|
||||
];
|
||||
trusted-substituters = [
|
||||
"https://cache.flox.dev"
|
||||
"https://devenv.cachix.org"
|
||||
@@ -17,37 +21,22 @@
|
||||
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
||||
];
|
||||
};
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Toronto";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_CA.UTF-8";
|
||||
|
||||
# System Packages
|
||||
programs.zsh.enable = true;
|
||||
programs.nix-ld.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
# nix utils
|
||||
nix-index
|
||||
nil
|
||||
cachix
|
||||
nixpkgs-fmt
|
||||
nix-serve
|
||||
|
||||
# shell tools
|
||||
wget
|
||||
|
||||
# misc
|
||||
glib
|
||||
glibc
|
||||
];
|
||||
# Storage Optim
|
||||
nix.optimise.automatic = true;
|
||||
nix.optimise.dates = [ "01:00" ];
|
||||
services.cron = {
|
||||
enable = true;
|
||||
systemCronJobs = [
|
||||
"* 23 * * * root nix-collect-garbage --delete-older-than 1d"
|
||||
"* 23 * * * ${user.name} nix-collect-garbage --delete-older-than 1d"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{ user
|
||||
, systemStateVersion
|
||||
}:
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
(import ./core.nix {
|
||||
user = user;
|
||||
systemStateVersion = systemStateVersion;
|
||||
})
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user