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

54 lines
1.4 KiB
Nix
Raw Normal View History

2024-03-24 23:21:13 +11:00
{ config, lib, pkgs, imports, modulesPath, ... }:
2024-03-24 18:34:14 +11:00
with lib;
{
2024-03-25 09:23:35 +11: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 23:21:13 +11:00
imports =
[
2024-03-25 12:01:03 +11:00
(modulesPath + "/installer/scan/not-detected.nix") # Generated by nixos-config-generate
2024-03-25 22:51:18 +11:00
./global
2024-03-24 23:21:13 +11:00
];
2024-03-24 18:34:14 +11:00
options.mySystem.system.impermanence = {
enable = mkEnableOption "impermanence";
# explicitly specify ssh path key
# just so I can track where sops-nix needs to find it
sshPath = mkOption {
type = types.str;
default = "/etc/ssh";
};
2024-03-24 23:21:13 +11:00
};
config = {
mySystem = {
2024-03-25 16:47:43 +11:00
# basics for all devices
time.timeZone = "Australia/Melbourne";
security.increaseWheelLoginLimits = true;
system.packages = [ pkgs.bat ];
domain = "trux.dev";
internalDomain = "l.voltaicforge.com";
2024-03-24 23:21:13 +11:00
shell.fish.enable = true;
# But wont enable plugins globally, leave them for workstations
system.resticBackup.remote.location = "s3:https://f3b4625a2d02b0e6d1dec5a44f427191.r2.cloudflarestorage.com/nixos-restic";
};
2024-03-24 23:21:13 +11:00
environment.systemPackages = with pkgs; [
curl
wget
dnsutils
];
networking.useDHCP = lib.mkDefault true;
networking.domain = config.mySystem.domain;
};
2024-03-24 23:21:13 +11:00
2024-03-24 18:34:14 +11:00
}