mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
Relocated & split up darwin & nixos modules
I broke out host specific bits from the configuration that should be common to all hosts of a given type.
This commit is contained in:
parent
7d7a958da9
commit
067ab7a012
10 changed files with 243 additions and 220 deletions
49
modules/common/nixos/all-hosts.nix
Normal file
49
modules/common/nixos/all-hosts.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ config, pkgs, ... }: {
|
||||
imports = [
|
||||
./internationalisation.nix
|
||||
];
|
||||
|
||||
environment = {
|
||||
shells = with pkgs; [ bash zsh ];
|
||||
systemPackages = with pkgs; [
|
||||
angryipscanner
|
||||
dconf2nix
|
||||
file
|
||||
neofetch
|
||||
python3
|
||||
tailscale
|
||||
];
|
||||
};
|
||||
|
||||
fonts.fontDir.enable = false;
|
||||
fonts.packages = with pkgs; [
|
||||
font-awesome
|
||||
(nerdfonts.override {
|
||||
fonts = [
|
||||
"Hack"
|
||||
"SourceCodePro"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
nix.settings = {
|
||||
experimental-features = [
|
||||
"flakes"
|
||||
"nix-command"
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
}
|
||||
17
modules/common/nixos/internationalisation.nix
Normal file
17
modules/common/nixos/internationalisation.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, pkgs, ... }: {
|
||||
# Select internationalisation properties.
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue