Added configuration-common.nix
This commit is contained in:
@@ -9,8 +9,7 @@
|
|||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./server-partitioning.nix
|
./server-partitioning.nix
|
||||||
./modules/shares.nix
|
./modules/configuration-common.nix
|
||||||
./modules/sops.nix
|
|
||||||
];
|
];
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./xps13-hardware-configuration.nix
|
./xps13-hardware-configuration.nix
|
||||||
./modules/shares.nix
|
./modules/configuration-common.nix
|
||||||
./modules/sops.nix
|
# ./modules/shares.nix
|
||||||
|
# ./modules/sops.nix
|
||||||
./modules/laptop.nix
|
./modules/laptop.nix
|
||||||
];
|
];
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
@@ -31,22 +31,6 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "America/New_York";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
i18n.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";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
# You can disable this if you're only using the Wayland session.
|
# You can disable this if you're only using the Wayland session.
|
||||||
@@ -122,11 +106,9 @@
|
|||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.variables.EDITOR = "nvim";
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
# wget
|
# wget
|
||||||
@@ -139,10 +121,6 @@
|
|||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
programs.mtr.enable = true;
|
programs.mtr.enable = true;
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
|
||||||
|
|||||||
51
modules/configuration-common.nix
Normal file
51
modules/configuration-common.nix
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
./shares.nix
|
||||||
|
./sops.nix;
|
||||||
|
];
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
i18n.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";
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
environment.variables.EDITOR = "nvim";
|
||||||
|
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hosts = {
|
||||||
|
"10.0.0.76" = [ "nas nas.lan" ];
|
||||||
|
"10.0.0.125" = [ "git" "git.lan" ];
|
||||||
|
"10.0.0.153" = [ "samphone" "samphone.lan" ];
|
||||||
|
"10.0.0.223" = [ "pve", "pve.lan" ];
|
||||||
|
"10.0.0.39" = [ "chronos" "chronos.lan" ];
|
||||||
|
"10.0.0.78" = [ "pyshelf" "pyshelf.lan" ];
|
||||||
|
"10.0.0.121" = [ "titan" "titan.lan" ];
|
||||||
|
"10.0.0.107" = [ "psql" "psql.lan" ];
|
||||||
|
"10.0.0.99" = [ "jelly" "jelly.lan" ];
|
||||||
|
"10.0.0.207" = [ "sync" "sync.lan" ];
|
||||||
|
"10.0.0.14" = [ "radios" "radios.lan" ];
|
||||||
|
"10.0.0.172" = [ "vault" "vault.lan" ];
|
||||||
|
"10.0.0.109" = [ "adguard" "adguard.lan" ];
|
||||||
|
"10.0.0.50" = [ "dashy" "dashy.lan" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -177,6 +177,28 @@ bind F3 send-keys 'igrep .' C-m
|
|||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
Host *
|
||||||
|
ServerAliveInterval 30
|
||||||
|
ServerAliveCountMax 3
|
||||||
|
AddKeysToAgent yes
|
||||||
|
'';
|
||||||
|
matchBlocks = {
|
||||||
|
samphone = {
|
||||||
|
host = "10.0.0.153";
|
||||||
|
user = "u0_a771";
|
||||||
|
port = 8022;
|
||||||
|
identityFile = "~/.ssh/id_ed25519";
|
||||||
|
};
|
||||||
|
git.local = {
|
||||||
|
host = "10.0.0.125";
|
||||||
|
user = "git";
|
||||||
|
identityFile = "~/.ssh/id_ed25519";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# custom settings
|
# custom settings
|
||||||
|
|||||||
Reference in New Issue
Block a user