Compare commits

..

No commits in common. "766dc47cb22ef46a386462346a931c826e52da95" and "3f4fffa0303524ab3b45d5077ee8be5ed30964be" have entirely different histories.

17 changed files with 88 additions and 79 deletions

View File

@ -15,7 +15,6 @@
# Modules # Modules
modules = { modules = {
base-plus.enable = true; base-plus.enable = true;
physical.enable = true;
desktop = { desktop = {
enable = true; enable = true;
gnome.enable = true; gnome.enable = true;

View File

@ -6,7 +6,9 @@ in {
inherit system; inherit system;
specialArgs = { inherit user hostname inputs home-manager jovian-nixos; }; specialArgs = { inherit user hostname inputs home-manager jovian-nixos; };
modules = [ modules = [
./configuration.nix ../default # shared by all configs
../default/physical/configuration.nix # shared by physical machines
./configuration.nix # bulwark specific
./hardware.nix ./hardware.nix
../../modules ../../modules
agenix.nixosModules.default agenix.nixosModules.default

View File

@ -0,0 +1,51 @@
{ config, pkgs, user, lib, inputs, ... }:
{
nix = {
package = pkgs.nixVersions.stable;
extraOptions = "experimental-features = nix-command flakes";
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
# Add user age key to identity path
age.identityPaths = [
"/home/${user}/.ssh/keys/age"
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_rsa_key"
];
# Add non-free packages
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = import ../../lib/overlays.nix;
# Set your time zone.
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
environment.systemPackages = with pkgs; [
inputs.agenix.packages.x86_64-linux.default
];
# Define user account.
users.users.${user} = {
isNormalUser = true;
extraGroups = [ "dialout" "wheel" "docker" "libvirtd" ];
shell = pkgs.bash;
};
# Did you read the comment?
system.stateVersion = "23.11";
home-manager.users.${user} = {
home.username = "${user}";
home.homeDirectory = "/home/${user}";
programs.home-manager.enable = true;
# Did you read the comment?
home.stateVersion = "23.11";
};
}

View File

@ -0,0 +1,15 @@
{ config, pkgs, user, lib, inputs, ... }:
{
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" "openssl-1.1.1w" ];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
home-manager.users.${user} = {
programs.vscode = {
enable = true;
package = pkgs.vscode.fhs;
};
};
}

View File

@ -11,7 +11,6 @@
# Modules # Modules
modules = { modules = {
base-plus.enable = true; base-plus.enable = true;
physical.enable = true;
desktop = { desktop = {
enable = true; enable = true;
gnome.enable = true; gnome.enable = true;

View File

@ -6,7 +6,9 @@ in {
inherit system; inherit system;
specialArgs = { inherit user hostname inputs home-manager; }; specialArgs = { inherit user hostname inputs home-manager; };
modules = [ modules = [
./configuration.nix ../default # shared by all configs
../default/physical/configuration.nix # shared by physical machines
./configuration.nix # htpc specific
../../modules ../../modules
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
agenix.nixosModules.default agenix.nixosModules.default

View File

@ -33,7 +33,6 @@
# Modules # Modules
modules = { modules = {
base-plus.enable = true; base-plus.enable = true;
physical.enable = true;
desktop = { desktop = {
enable = true; enable = true;
gnome.enable = true; gnome.enable = true;

View File

@ -6,7 +6,9 @@ in {
inherit system; inherit system;
specialArgs = { inherit user hostname inputs home-manager; }; specialArgs = { inherit user hostname inputs home-manager; };
modules = [ modules = [
./configuration.nix ../default # shared by all configs
../default/physical/configuration.nix # shared by physical machines
./configuration.nix # kestrel specific
./hardware.nix ./hardware.nix
../../modules ../../modules
agenix.nixosModules.default agenix.nixosModules.default

View File

@ -29,7 +29,6 @@
# Modules # Modules
modules = { modules = {
base-plus.enable = true; base-plus.enable = true;
physical.enable = true;
desktop = { desktop = {
enable = true; enable = true;
gnome.enable = true; gnome.enable = true;

View File

@ -6,7 +6,9 @@ in {
inherit system; inherit system;
specialArgs = { inherit user hostname inputs home-manager; }; specialArgs = { inherit user hostname inputs home-manager; };
modules = [ modules = [
./configuration.nix ../default # shared by all configs
../default/physical/configuration.nix # shared by physical machines
./configuration.nix # osprey specific
./hardware.nix ./hardware.nix
../../modules ../../modules
agenix.nixosModules.default agenix.nixosModules.default

View File

@ -15,7 +15,6 @@
# Modules # Modules
modules = { modules = {
base-plus.enable = true; base-plus.enable = true;
physical.enable = true;
desktop = { desktop = {
enable = true; enable = true;
gnome.enable = true; gnome.enable = true;

View File

@ -6,7 +6,9 @@ in {
inherit system; inherit system;
specialArgs = { inherit user inputs home-manager; }; specialArgs = { inherit user inputs home-manager; };
modules = [ modules = [
./configuration.nix ../default # shared by all configs
../default/physical/configuration.nix # shared by physical machines
./configuration.nix # shivan specific
./hardware.nix ./hardware.nix
../../modules ../../modules
agenix.nixosModules.default agenix.nixosModules.default

View File

@ -98,7 +98,6 @@
# Modules # Modules
modules = { modules = {
base-plus.enable = true; base-plus.enable = true;
physical.enable = true;
services = { services = {
ssh.enable = true; ssh.enable = true;
syncthing = { syncthing = {

View File

@ -6,7 +6,9 @@ in {
inherit system; inherit system;
specialArgs = { inherit user hostname inputs home-manager; }; specialArgs = { inherit user hostname inputs home-manager; };
modules = [ modules = [
./configuration.nix ../default # shared by all configs
../default/physical/configuration.nix # shared by physical machines
./configuration.nix # torus specific
./hardware.nix ./hardware.nix
../../modules ../../modules
agenix.nixosModules.default agenix.nixosModules.default

View File

@ -6,7 +6,8 @@ in {
inherit system; inherit system;
specialArgs = { inherit user hostname inputs nixos-wsl home-manager; }; specialArgs = { inherit user hostname inputs nixos-wsl home-manager; };
modules = [ modules = [
./configuration.nix ../default # shared by all configs
./configuration.nix # wsl specific
../../modules ../../modules
agenix.nixosModules.default agenix.nixosModules.default
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {

View File

@ -1,63 +1,10 @@
{ config, lib, inputs, pkgs, user, home-manager, ... }: { ... }:
{ {
imports = [ imports = [
./terminal.nix ./terminal.nix
./plus
../programs/chezmoi.nix ../programs/chezmoi.nix
../programs/git.nix ../programs/git.nix
../programs/nvim.nix ../programs/nvim.nix
./physical.nix
./plus
]; ];
# base nix options
nix = {
package = pkgs.nixVersions.stable;
extraOptions = "experimental-features = nix-command flakes";
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
# Add user age key to identity path
age.identityPaths = [
"/home/${user}/.ssh/keys/age"
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_rsa_key"
];
# Add non-free packages
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = import ../../lib/overlays.nix;
# Set your time zone.
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
# system packages
environment.systemPackages = with pkgs; [
inputs.agenix.packages.x86_64-linux.default
];
# define user account.
users.users.${user} = {
isNormalUser = true;
extraGroups = [ "dialout" "wheel" "docker" "libvirtd" ];
shell = pkgs.bash;
};
# Did you read the comment?
system.stateVersion = "23.11";
# base home manager config
home-manager.users.${user} = {
home.username = "${user}";
home.homeDirectory = "/home/${user}";
programs.home-manager.enable = true;
# Did you read the comment?
home.stateVersion = "23.11";
};
} }

View File

@ -1,11 +0,0 @@
{ config, pkgs, user, lib, inputs, ... }:
let cfg = config.modules.physical;
in {
options.modules.physical.enable = lib.mkEnableOption "physical";
config = lib.mkIf cfg.enable {
# use the systemd-boot EFI boot loader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
};
}