mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 02:46:06 -07:00
Compare commits
No commits in common. "766dc47cb22ef46a386462346a931c826e52da95" and "3f4fffa0303524ab3b45d5077ee8be5ed30964be" have entirely different histories.
766dc47cb2
...
3f4fffa030
@ -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;
|
||||||
|
@ -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
|
||||||
|
51
provision/hosts/default/default.nix
Normal file
51
provision/hosts/default/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
15
provision/hosts/default/physical/configuration.nix
Normal file
15
provision/hosts/default/physical/configuration.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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 = {
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user