This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/profiles/global.nix

44 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2024-05-30 23:55:10 -05:00
{ config, lib, pkgs, modulesPath, ... }:
2024-03-24 02:34:14 -05:00
with lib;
{
2024-03-24 17:23:35 -05:00
# NOTE
# Some 'global' areas have defaults set in their respective modules.
# These will be applied when the modules are loaded
# Not the global role.
# Not sure at this point a good way to manage globals in one place
# without mono-repo config.
2024-03-24 07:21:13 -05:00
imports =
[
2024-03-24 20:01:03 -05:00
(modulesPath + "/installer/scan/not-detected.nix") # Generated by nixos-config-generate
2024-03-25 06:51:18 -05:00
./global
2024-03-24 07:21:13 -05:00
];
config = {
boot.tmp.cleanOnBoot = true;
mySystem = {
# basics for all devices
2024-05-10 10:06:16 -05:00
time.timeZone = "America/Chicago";
security.increaseWheelLoginLimits = true;
system.packages = [ pkgs.bat ];
2024-05-10 10:06:16 -05:00
domain = "hsn.dev";
internalDomain = "home.lan";
shell.fish.enable = true;
# But wont enable plugins globally, leave them for workstations
2024-05-10 10:06:16 -05:00
system.resticBackup.remote.location = "s3:https://x.r2.cloudflarestorage.com/nixos-restic";
};
2024-03-24 07:21:13 -05:00
environment.systemPackages = with pkgs; [
curl
wget
dnsutils
2024-05-13 15:39:43 -05:00
jq
];
networking.useDHCP = lib.mkDefault true;
networking.domain = config.mySystem.domain;
};
2024-03-24 07:21:13 -05:00
2024-03-24 02:34:14 -05:00
}