Refining modules/nixos/base.nix to make sense for more machines
There is a few additional changes due to typos introduced while working on other stuff.
This commit is contained in:
parent
26f35df7ad
commit
aa4a8347ec
11 changed files with 67 additions and 29 deletions
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"git.enabled": false
|
||||||
|
}
|
||||||
6
hosts/cobalt/boot.nix
Normal file
6
hosts/cobalt/boot.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{}:
|
||||||
|
{
|
||||||
|
# Default to systemd-boot
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./boot.nix
|
||||||
../../modules/nixos/base.nix
|
../../modules/nixos/base.nix
|
||||||
../../modules/nixos/audio.nix
|
../../modules/nixos/audio.nix
|
||||||
#../../modules/nixos/desktop.nix
|
#../../modules/nixos/desktop.nix
|
||||||
|
|
|
||||||
6
hosts/lithium/boot.nix
Normal file
6
hosts/lithium/boot.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{}:
|
||||||
|
{
|
||||||
|
# Default to systemd-boot
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./boot.nix
|
||||||
../../modules/nixos/base.nix
|
../../modules/nixos/base.nix
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
|
|
|
||||||
6
hosts/neon/boot.nix
Normal file
6
hosts/neon/boot.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{}:
|
||||||
|
{
|
||||||
|
# Default to systemd-boot
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./boot.nix
|
||||||
../../modules/nixos/base.nix
|
../../modules/nixos/base.nix
|
||||||
../../modules/nixos/audio.nix
|
../../modules/nixos/audio.nix
|
||||||
../../modules/nixos/desktop
|
../../modules/nixos/desktop
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,23 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
# TODO: Consider adding a randomized delay.
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
};
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
auto-optimise-store = true;
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Default to systemd-boot
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
# https://datatracker.ietf.org/doc/html/rfc8375
|
# https://datatracker.ietf.org/doc/html/rfc8375
|
||||||
networking.domain = "home.arpa";
|
networking.domain = lib.mkDefault "home.arpa";
|
||||||
|
|
||||||
time.timeZone = "America/Chicago";
|
# TODO: Consider enabling automatic-timezoned on laptops that move between TZs
|
||||||
|
time.timeZone = lib.mkDefault "America/Chicago";
|
||||||
|
services.automatic-timezoned.enable = lib.mkDefault false;
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
|
|
@ -73,38 +78,39 @@
|
||||||
];
|
];
|
||||||
# Render colors
|
# Render colors
|
||||||
# TODO: Figure out how to represent those termcap sequences properly.
|
# TODO: Figure out how to represent those termcap sequences properly.
|
||||||
#LESS_TERMCAP_mb=$'\E[1;31m' # begin bold
|
LESS_TERMCAP_mb="\E[1;31m"; # begin bold
|
||||||
#LESS_TERMCAP_md=$'\E[1;36m' # begin blink
|
LESS_TERMCAP_md="\E[1;36m"; # begin blink
|
||||||
#LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
|
LESS_TERMCAP_me="\E[0m"; # reset bold/blink
|
||||||
#LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
|
LESS_TERMCAP_so="\E[01;44;33m"; # begin reverse video
|
||||||
#LESS_TERMCAP_se=$'\E[0m' # reset reverse video
|
LESS_TERMCAP_se="\E[0m"; # reset reverse video
|
||||||
#LESS_TERMCAP_us=$'\E[1;32m' # begin underline
|
LESS_TERMCAP_us="\E[1;32m"; # begin underline
|
||||||
#LESS_TERMCAP_ue=$'\E[0m' # reset underline
|
LESS_TERMCAP_ue="\E[0m"; # reset underline
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
htop.enable = true;
|
htop.enable = true;
|
||||||
command-not-found.enable = false;
|
|
||||||
bat.enable = true;
|
bat.enable = true;
|
||||||
bandwhich.enable = true;
|
bandwhich.enable = true;
|
||||||
|
|
||||||
|
command-not-found.enable = false;
|
||||||
|
#nix-index.enable = true;
|
||||||
|
|
||||||
nano.enable = false;
|
nano.enable = false;
|
||||||
neovim = {
|
neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
|
|
||||||
withRuby = true;
|
|
||||||
withPython3 = true;
|
|
||||||
withNodeJs = true;
|
|
||||||
|
|
||||||
#configure = {};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Services running on all machines
|
services.openssh.enable = lib.mkDefault false;
|
||||||
services.avahi.enable = true; # zeroconf/mDNS(.local)
|
# services.openssh = {
|
||||||
|
# enable = true;
|
||||||
|
# settings = {
|
||||||
|
# PasswordAuthentication = false;
|
||||||
|
# PermitRootLogin = "no";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,14 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./calibre.nix
|
./calibre.nix
|
||||||
./fonts.nix
|
../fonts.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: Add options for enabling/switching between different Desktop Environments.
|
# TODO: Add options for enabling/switching between different Desktop Environments.
|
||||||
options = {};
|
# options = {};
|
||||||
|
|
||||||
|
# NOTE: Calibre is enabled this way because it also needs udisks2 for e-readers
|
||||||
|
# Ideally I move it somewhere else anyway.
|
||||||
zw.calibre.enable = true;
|
zw.calibre.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
@ -41,4 +43,5 @@
|
||||||
};
|
};
|
||||||
# screen sharing /w hyp
|
# screen sharing /w hyp
|
||||||
services.dbus.enable = true;
|
services.dbus.enable = true;
|
||||||
|
services.avahi.enable = true; # zeroconf/mDNS(.local)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{pkgs}:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
nerd-fonts.fira-code
|
nerd-fonts.fira-code
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,11 @@
|
||||||
helix.enable = true;
|
helix.enable = true;
|
||||||
zoxide.enable = true;
|
zoxide.enable = true;
|
||||||
fd.enable = true;
|
fd.enable = true;
|
||||||
|
|
||||||
|
difftastic.enable = true;
|
||||||
|
difftastic.git.enable = true;
|
||||||
|
difftastic.git.diffToolMode = true;
|
||||||
|
mergiraf.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
|
|
@ -522,9 +527,9 @@
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mutableExtensionsDir = true; # mutually exclusive to programs.vscode.profiles
|
mutableExtensionsDir = true; # mutually exclusive to programs.vscode.profiles
|
||||||
profiles.default.userSettings = {
|
# profiles.default.userSettings = {
|
||||||
"[nix]"."editor.tabSize" = 2;
|
# "[nix]"."editor.tabSize" = 2;
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
# services.podman.enable = true;
|
# services.podman.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue