changed core/config.nix to core/default.nix
This commit is contained in:
parent
e80608d056
commit
4dff588cba
2 changed files with 1 additions and 1 deletions
102
core/config.nix
102
core/config.nix
|
|
@ -1,102 +0,0 @@
|
|||
{ inputs, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
|
||||
## Not sure wei need the home-manager import here
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
## Semi-modularised config
|
||||
./packages.nix # system-level packages - needs tidying
|
||||
./modules # additional modules to import
|
||||
../home/users # user-level packages in ../home/programs/
|
||||
|
||||
];
|
||||
|
||||
## Make sure this is set !
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
## Crikey !
|
||||
time.timeZone = "Australia/Brisbane";
|
||||
i18n = {
|
||||
defaultLocale = "en_AU.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_NAME = "en_AU.UTF-8";
|
||||
LC_TIME = "en_AU.UTF-8";
|
||||
LC_PAPER = "en_AU.UTF-8";
|
||||
LC_ADDRESS = "en_AU.UTF-8";
|
||||
LC_MONETARY = "en_AU.UTF-8";
|
||||
LC_TELEPHONE = "en_AU.UTF-8";
|
||||
LC_MEASUREMENT = "en_AU.UTF-8";
|
||||
LC_IDENTIFICATION = "en_AU.UTF-8";
|
||||
};
|
||||
};
|
||||
|
||||
## Genuinely dunno what these do hey, like isnt sudo
|
||||
## already restricted to @wheel only?
|
||||
security = {
|
||||
sudo.execWheelOnly = true;
|
||||
polkit = {
|
||||
enable = true;
|
||||
#extraConfig = '' '';
|
||||
};
|
||||
};
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
## Use all cores during build
|
||||
cores = 0;
|
||||
max-jobs = "auto";
|
||||
allow-dirty = false;
|
||||
auto-optimise-store = true;
|
||||
download-buffer-size = [ "268435456" ];
|
||||
allowed-users = [ "@wheel" ];
|
||||
## Enable flakes uwu
|
||||
experimental-features =
|
||||
[ "pipe-operators" "recursive-nix" "nix-command" "flakes" ];
|
||||
};
|
||||
|
||||
gc = {
|
||||
## Automatically run 'nix-collect-garbage'
|
||||
automatic = true;
|
||||
## Ever day.
|
||||
dates = "daily";
|
||||
## and clear junk older than x days
|
||||
options = "--delete-older-than 2d";
|
||||
## No clue what this does lol.
|
||||
#persistent = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
hardware = {
|
||||
## Enable all firmware modules
|
||||
enableAllFirmware = true;
|
||||
sensor.hddtemp = {
|
||||
enable = true;
|
||||
drives = [ "/dev/disk/by-uuid/*" ];
|
||||
};
|
||||
usbStorage.manageShutdown = true;
|
||||
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ man-pages ];
|
||||
|
||||
documentation = {
|
||||
dev.enable = true;
|
||||
man.generateCaches = true;
|
||||
#nixos.includeAllModules = true;
|
||||
};
|
||||
|
||||
## Apparently prevents getting stuck at shutdown
|
||||
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
|
||||
|
||||
## Disable these cuz they cause problems (thx sasha)
|
||||
## see: https://github.com/NixOS/nixpkgs/issues/180175
|
||||
systemd.services = {
|
||||
networkManager-wait-online.enable = lib.mkForce false;
|
||||
systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue