mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-18 10:26:06 -07:00
add base configs to base module
This commit is contained in:
parent
7d466e2b63
commit
58aae74b83
@ -15,6 +15,7 @@
|
|||||||
# 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;
|
||||||
|
@ -6,9 +6,7 @@ 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 = [
|
||||||
../default # shared by all configs
|
./configuration.nix
|
||||||
../default/physical/configuration.nix # shared by physical machines
|
|
||||||
./configuration.nix # bulwark specific
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
../../modules
|
../../modules
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
{ 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";
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
{ 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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -11,6 +11,7 @@
|
|||||||
# 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;
|
||||||
|
@ -6,9 +6,7 @@ in {
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user hostname inputs home-manager; };
|
specialArgs = { inherit user hostname inputs home-manager; };
|
||||||
modules = [
|
modules = [
|
||||||
../default # shared by all configs
|
./configuration.nix
|
||||||
../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
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
# 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;
|
||||||
|
@ -6,9 +6,7 @@ in {
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user hostname inputs home-manager; };
|
specialArgs = { inherit user hostname inputs home-manager; };
|
||||||
modules = [
|
modules = [
|
||||||
../default # shared by all configs
|
./configuration.nix
|
||||||
../default/physical/configuration.nix # shared by physical machines
|
|
||||||
./configuration.nix # kestrel specific
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
../../modules
|
../../modules
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
# 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;
|
||||||
|
@ -6,9 +6,7 @@ in {
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user hostname inputs home-manager; };
|
specialArgs = { inherit user hostname inputs home-manager; };
|
||||||
modules = [
|
modules = [
|
||||||
../default # shared by all configs
|
./configuration.nix
|
||||||
../default/physical/configuration.nix # shared by physical machines
|
|
||||||
./configuration.nix # osprey specific
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
../../modules
|
../../modules
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
# 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;
|
||||||
|
@ -6,9 +6,7 @@ in {
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user inputs home-manager; };
|
specialArgs = { inherit user inputs home-manager; };
|
||||||
modules = [
|
modules = [
|
||||||
../default # shared by all configs
|
./configuration.nix
|
||||||
../default/physical/configuration.nix # shared by physical machines
|
|
||||||
./configuration.nix # shivan specific
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
../../modules
|
../../modules
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
@ -98,6 +98,7 @@
|
|||||||
# 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 = {
|
||||||
|
@ -6,9 +6,7 @@ in {
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user hostname inputs home-manager; };
|
specialArgs = { inherit user hostname inputs home-manager; };
|
||||||
modules = [
|
modules = [
|
||||||
../default # shared by all configs
|
./configuration.nix
|
||||||
../default/physical/configuration.nix # shared by physical machines
|
|
||||||
./configuration.nix # torus specific
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
../../modules
|
../../modules
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
@ -6,8 +6,7 @@ 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 = [
|
||||||
../default # shared by all configs
|
./configuration.nix
|
||||||
./configuration.nix # wsl specific
|
|
||||||
../../modules
|
../../modules
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
|
@ -1,10 +1,63 @@
|
|||||||
{ ... }:
|
{ 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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
11
provision/modules/base/physical.nix
Normal file
11
provision/modules/base/physical.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{ 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user