mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-22 12:26:06 -07:00
Compare commits
No commits in common. "03d7b2495ce81c0f0a8bfa4203d85d7695742288" and "93c349d5bdbb139b52ce818129a09536060a7930" have entirely different histories.
03d7b2495c
...
93c349d5bd
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# nixos
|
# nixos
|
||||||
alias nu="cd ~/.local/share/chezmoi/provision && \
|
alias nu="cd ~/.local/share/chezmoi/provision && \
|
||||||
sudo nixos-rebuild switch --impure --flake .#$(hostname) && \
|
sudo nixos-rebuild switch --flake .#$(hostname) && \
|
||||||
cd -"
|
cd -"
|
||||||
# sway
|
# sway
|
||||||
alias s='sway'
|
alias s='sway'
|
||||||
|
@ -33,10 +33,9 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user; inherit inputs; };
|
specialArgs = { inherit user; inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/default.nix
|
./modules
|
||||||
./hosts/kestrel/configuration.nix
|
./hosts/kestrel/configuration.nix
|
||||||
./hosts/kestrel/hardware.nix
|
./hosts/kestrel/hardware.nix
|
||||||
./modules
|
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
@ -45,6 +44,7 @@
|
|||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
imports = [
|
imports = [
|
||||||
./home-modules
|
./home-modules
|
||||||
|
./hosts/kestrel/home-configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -55,10 +55,9 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user; inherit inputs; };
|
specialArgs = { inherit user; inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/default.nix
|
./modules
|
||||||
./hosts/shivan/configuration.nix
|
./hosts/shivan/configuration.nix
|
||||||
./hosts/shivan/hardware.nix
|
./hosts/shivan/hardware.nix
|
||||||
./modules
|
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
@ -67,6 +66,7 @@
|
|||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
imports = [
|
imports = [
|
||||||
./home-modules
|
./home-modules
|
||||||
|
./hosts/shivan/home-configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -77,10 +77,9 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user; inherit inputs; };
|
specialArgs = { inherit user; inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/default.nix
|
./modules
|
||||||
./hosts/torus/configuration.nix
|
./hosts/torus/configuration.nix
|
||||||
./hosts/torus/hardware.nix
|
./hosts/torus/hardware.nix
|
||||||
./modules
|
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
@ -89,6 +88,7 @@
|
|||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
imports = [
|
imports = [
|
||||||
./home-modules
|
./home-modules
|
||||||
|
./hosts/torus/home-configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -99,10 +99,9 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user; inherit inputs; inherit jovian-nixos; inherit home-manager; };
|
specialArgs = { inherit user; inherit inputs; inherit jovian-nixos; inherit home-manager; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/default.nix
|
./modules
|
||||||
./hosts/bulwark/configuration.nix
|
./hosts/bulwark/configuration.nix
|
||||||
./hosts/bulwark/hardware.nix
|
./hosts/bulwark/hardware.nix
|
||||||
./modules
|
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
@ -111,6 +110,7 @@
|
|||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
imports = [
|
imports = [
|
||||||
./home-modules
|
./home-modules
|
||||||
|
./hosts/bulwark/home-configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5,11 +5,53 @@
|
|||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixFlakes;
|
||||||
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
|
|
||||||
|
settings.auto-optimise-store = true;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Add non-free packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" "openssl-1.1.1w" ];
|
||||||
|
nixpkgs.overlays = import ../../lib/overlays.nix;
|
||||||
|
|
||||||
|
# Hardware options
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
hardware.bluetooth.package = pkgs.bluez;
|
||||||
|
hardware.sensor.iio.enable = true;
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# Set networking options
|
# Set networking options
|
||||||
networking.hostName = "bulwark";
|
networking.hostName = "bulwark";
|
||||||
networking.firewall.checkReversePath = "loose";
|
networking.firewall.checkReversePath = "loose";
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "America/Los_Angeles";
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
# Add fonts
|
||||||
|
fonts.packages= with pkgs; [
|
||||||
|
nerdfonts
|
||||||
|
];
|
||||||
|
|
||||||
|
# Define user account.
|
||||||
|
users.users.${user} = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "dialout" "wheel" ]; # Enable ‘sudo’ for the user.
|
||||||
|
};
|
||||||
|
|
||||||
# Password-less root
|
# Password-less root
|
||||||
security.sudo.extraRules = [{
|
security.sudo.extraRules = [{
|
||||||
users = [ "${user}" ];
|
users = [ "${user}" ];
|
||||||
@ -22,10 +64,10 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
];
|
];
|
||||||
|
|
||||||
# Secrets
|
# host secrets
|
||||||
age.secrets."wireguard/bulwark".file = ../../secrets/wireguard/bulwark.age;
|
age.secrets."wireguard/bulwark".file = ../../secrets/wireguard/bulwark.age;
|
||||||
|
|
||||||
# Modules
|
# Enable modules
|
||||||
modules = {
|
modules = {
|
||||||
desktop = {
|
desktop = {
|
||||||
sway.enable = false;
|
sway.enable = false;
|
||||||
@ -61,11 +103,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
# Did you read the comment?
|
||||||
modules = {
|
system.stateVersion = "23.11";
|
||||||
desktop = {
|
|
||||||
kitty.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
22
provision/hosts/bulwark/home-configuration.nix
Normal file
22
provision/hosts/bulwark/home-configuration.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ config, pkgs, user, ... }:
|
||||||
|
{
|
||||||
|
home.username = "${user}";
|
||||||
|
home.homeDirectory = "/home/${user}";
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
# Setup git
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "starr-dusT";
|
||||||
|
userEmail = "starrtyler88@gmail.com";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable home modules
|
||||||
|
#modules = {
|
||||||
|
#};
|
||||||
|
|
||||||
|
home.stateVersion = "23.11";
|
||||||
|
}
|
@ -1,4 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
imports = [ ./default ];
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
{ config, pkgs, user, lib, ... }:
|
|
||||||
{
|
|
||||||
# Password-less logins for backup
|
|
||||||
users.users."${user}".openssh.authorizedKeys.keyFiles = [
|
|
||||||
config.age.secrets."ssh/kestrel/id_ed25519.pub".path
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
restic # Fast and secure backup program
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,53 +0,0 @@
|
|||||||
{ config, pkgs, user, lib, ... }:
|
|
||||||
{
|
|
||||||
nix = {
|
|
||||||
package = pkgs.nixFlakes;
|
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
|
||||||
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 7d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Add non-free packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" "openssl-1.1.1w" ];
|
|
||||||
nixpkgs.overlays = import ../../lib/overlays.nix;
|
|
||||||
|
|
||||||
# Hardware options
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
hardware.bluetooth.package = pkgs.bluez;
|
|
||||||
hardware.sensor.iio.enable = true;
|
|
||||||
hardware.graphics.enable = true;
|
|
||||||
hardware.graphics.enable32Bit = true;
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "America/Los_Angeles";
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
# Fonts
|
|
||||||
fonts.packages = with pkgs; [
|
|
||||||
nerdfonts
|
|
||||||
];
|
|
||||||
|
|
||||||
# Define user account.
|
|
||||||
users.users.${user} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "dialout" "wheel" "docker" "libvirtd" ];
|
|
||||||
shell = pkgs.bash;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
cowsay # A program which generates ASCII pictures of a cow with a message
|
|
||||||
];
|
|
||||||
|
|
||||||
# Did you read the comment?
|
|
||||||
system.stateVersion = "23.11";
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
imports = [ ./backup.nix ./configuration.nix ./home-configuration.nix ];
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
{ config, pkgs, user, ... }:
|
|
||||||
{
|
|
||||||
home-manager.users.${user} = {
|
|
||||||
home.username = "${user}";
|
|
||||||
home.homeDirectory = "/home/${user}";
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
|
|
||||||
programs.direnv = {
|
|
||||||
enable = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
nix-direnv.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
];
|
|
||||||
|
|
||||||
# Did you read the comment?
|
|
||||||
home.stateVersion = "23.11";
|
|
||||||
};
|
|
||||||
}
|
|
@ -4,18 +4,60 @@
|
|||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixFlakes;
|
||||||
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
|
|
||||||
|
settings.auto-optimise-store = true;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Add non-free packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" "openssl-1.1.1w" ];
|
||||||
|
nixpkgs.overlays = import ../../lib/overlays.nix;
|
||||||
|
|
||||||
# Use zen kernel
|
# Use zen kernel
|
||||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||||
|
|
||||||
|
# Hardware options
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
hardware.bluetooth.package = pkgs.bluez;
|
||||||
|
hardware.sensor.iio.enable = true;
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# Set networking options
|
# Set networking options
|
||||||
networking.hostName = "kestrel";
|
networking.hostName = "kestrel";
|
||||||
networking.firewall.checkReversePath = "loose";
|
networking.firewall.checkReversePath = "loose";
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "America/Los_Angeles";
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
# Add fonts
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
nerdfonts
|
||||||
|
];
|
||||||
|
|
||||||
# Enable docker
|
# Enable docker
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
virtualisation.docker.storageDriver = "btrfs";
|
virtualisation.docker.storageDriver = "btrfs";
|
||||||
|
|
||||||
|
# Define user account.
|
||||||
|
users.users.${user} = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "dialout" "wheel" "docker" "libvirtd" ]; # Enable ‘sudo’ for the user.
|
||||||
|
};
|
||||||
|
|
||||||
# Password-less root
|
# Password-less root
|
||||||
security.sudo.extraRules = [{
|
security.sudo.extraRules = [{
|
||||||
users = [ "${user}" ];
|
users = [ "${user}" ];
|
||||||
@ -29,10 +71,10 @@
|
|||||||
distrobox # Platform for creating and managing Linux distribution images.
|
distrobox # Platform for creating and managing Linux distribution images.
|
||||||
];
|
];
|
||||||
|
|
||||||
# Secrets
|
# host secrets
|
||||||
age.secrets."wireguard/kestrel".file = ../../secrets/wireguard/kestrel.age;
|
age.secrets."wireguard/kestrel".file = ../../secrets/wireguard/kestrel.age;
|
||||||
|
|
||||||
# Modules
|
# Enable modules
|
||||||
modules = {
|
modules = {
|
||||||
desktop = {
|
desktop = {
|
||||||
sway.enable = false;
|
sway.enable = false;
|
||||||
@ -74,11 +116,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
# Did you read the comment?
|
||||||
modules = {
|
system.stateVersion = "23.11";
|
||||||
desktop = {
|
|
||||||
kitty.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
32
provision/hosts/kestrel/home-configuration.nix
Normal file
32
provision/hosts/kestrel/home-configuration.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ config, pkgs, user, ... }:
|
||||||
|
{
|
||||||
|
home.username = "${user}";
|
||||||
|
home.homeDirectory = "/home/${user}";
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
# Setup direnv
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Setup git
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "starr-dusT";
|
||||||
|
userEmail = "starrtyler88@gmail.com";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable home modules
|
||||||
|
modules = {
|
||||||
|
desktop = {
|
||||||
|
kitty.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.stateVersion = "23.11";
|
||||||
|
}
|
@ -4,17 +4,60 @@
|
|||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixFlakes;
|
||||||
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
|
|
||||||
|
settings.auto-optimise-store = true;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Add non-free packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" "openssl-1.1.1w" ];
|
||||||
|
nixpkgs.overlays = import ../../lib/overlays.nix;
|
||||||
|
|
||||||
# Use zen kernel
|
# Use zen kernel
|
||||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||||
|
|
||||||
|
# Hardware options
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
hardware.bluetooth.package = pkgs.bluez;
|
||||||
|
hardware.sensor.iio.enable = true;
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# Set networking options
|
# Set networking options
|
||||||
networking.hostName = "shivan";
|
networking.hostName = "shivan";
|
||||||
networking.firewall.checkReversePath = "loose";
|
networking.firewall.checkReversePath = "loose";
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "America/Los_Angeles";
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
# Add fonts
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
nerdfonts
|
||||||
|
];
|
||||||
|
|
||||||
# Enable docker
|
# Enable docker
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
# Define user account.
|
||||||
|
users.users.${user} = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "dialout" "wheel" "docker" "libvirtd" ]; # Enable ‘sudo’ for the user.
|
||||||
|
};
|
||||||
|
|
||||||
# Password-less root
|
# Password-less root
|
||||||
security.sudo.extraRules = [{
|
security.sudo.extraRules = [{
|
||||||
users = [ "${user}" ];
|
users = [ "${user}" ];
|
||||||
@ -28,7 +71,7 @@
|
|||||||
distrobox # Platform for creating and managing Linux distribution images.
|
distrobox # Platform for creating and managing Linux distribution images.
|
||||||
];
|
];
|
||||||
|
|
||||||
# Modules
|
# Enable modules
|
||||||
modules = {
|
modules = {
|
||||||
desktop = {
|
desktop = {
|
||||||
sway.enable = true;
|
sway.enable = true;
|
||||||
@ -55,15 +98,16 @@
|
|||||||
secrets.enable = true;
|
secrets.enable = true;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
terminal.enable = true;
|
terminal.enable = true;
|
||||||
wireguard-client.enable = false;
|
wireguard-client = {
|
||||||
};
|
enable = false;
|
||||||
};
|
#privateKeyFile = "/run/secrets/wireguard/kestrel";
|
||||||
|
#address = [ "192.168.3.3/24" ];
|
||||||
home-manager.users.${user} = {
|
#publicKey = "bd7bbZOngl/FTdBlnbIhgCLNf6yx5X8WjiRB7E1NEQQ=";
|
||||||
modules = {
|
#endpoint = "66.218.43.87";
|
||||||
desktop = {
|
|
||||||
kitty.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Did you read the comment?
|
||||||
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
32
provision/hosts/shivan/home-configuration.nix
Normal file
32
provision/hosts/shivan/home-configuration.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ config, pkgs, user, ... }:
|
||||||
|
{
|
||||||
|
home.username = "${user}";
|
||||||
|
home.homeDirectory = "/home/${user}";
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
# Setup direnv
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Setup git
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "starr-dusT";
|
||||||
|
userEmail = "starrtyler88@gmail.com";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable home modules
|
||||||
|
modules = {
|
||||||
|
desktop = {
|
||||||
|
kitty.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.stateVersion = "23.11";
|
||||||
|
}
|
@ -11,22 +11,51 @@
|
|||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixFlakes;
|
||||||
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
|
|
||||||
|
settings.auto-optimise-store = true;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Add non-free packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
||||||
|
nixpkgs.overlays = import ../../lib/overlays.nix;
|
||||||
|
|
||||||
# Use normal kernel
|
# Use normal kernel
|
||||||
boot.kernelPackages = pkgs.linuxPackages;
|
boot.kernelPackages = pkgs.linuxPackages;
|
||||||
|
|
||||||
# Set kernel modules
|
# Set kernel modules
|
||||||
boot.kernelModules = [ "sg" ];
|
boot.kernelModules = [ "sg" ];
|
||||||
|
|
||||||
|
# Hardware options
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
hardware.graphics.enable32Bit = true;
|
||||||
|
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# Set networking options
|
# Set networking options
|
||||||
networking.hostName = "torus";
|
networking.hostName = "torus";
|
||||||
|
# Needed for wireguard-server
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"net.ipv4.conf.all.forwarding" = true;
|
||||||
|
};
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
networking.firewall.checkReversePath = "loose";
|
networking.firewall.checkReversePath = "loose";
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 80 443 ];
|
networking.firewall.allowedUDPPorts = [ 80 443 ];
|
||||||
networking.nameservers = [ "8.8.8.8" "8.8.4.4" ];
|
|
||||||
boot.kernel.sysctl = {
|
# Set your time zone.
|
||||||
"net.ipv4.conf.all.forwarding" = true; # Needed for wireguard-server
|
time.timeZone = "America/Los_Angeles";
|
||||||
};
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
# Enable virtualisation
|
# Enable virtualisation
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
@ -34,9 +63,19 @@
|
|||||||
virtualisation.docker.enableNvidia = true;
|
virtualisation.docker.enableNvidia = true;
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
|
||||||
|
|
||||||
|
# Define user account.
|
||||||
|
users.users.${user} = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "wheel" "docker" ]; # Enable ‘sudo’ for the user.
|
||||||
|
shell = pkgs.bash;
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
docker-compose # Tool for defining and running multi-container Docker applications.
|
docker-compose # Tool for defining and running multi-container Docker applications.
|
||||||
python3 # Interpreted, high-level programming language known for its simplicity and versatility.
|
python3 # Interpreted, high-level programming language known for its simplicity and versatility.
|
||||||
|
zk # Command-line tool for interacting with Apache ZooKeeper, a centralized service for distributed systems.
|
||||||
|
gollum # Wiki software that provides a simple, Git-based wiki engine.
|
||||||
];
|
];
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
@ -44,9 +83,14 @@
|
|||||||
defaults.email = "starrtyler88@gmail.com";
|
defaults.email = "starrtyler88@gmail.com";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Nginx
|
|
||||||
security.pam.services.nginx.setEnvironment = false;
|
security.pam.services.nginx.setEnvironment = false;
|
||||||
systemd.services.nginx.serviceConfig = { SupplementaryGroups = [ "shadow" ]; };
|
systemd.services.nginx.serviceConfig = {
|
||||||
|
SupplementaryGroups = [ "shadow" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.nameservers = [ "8.8.8.8" "8.8.4.4" ];
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
@ -89,7 +133,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Modules
|
# Enable modules
|
||||||
modules = {
|
modules = {
|
||||||
devel = {
|
devel = {
|
||||||
tooling.enable = true;
|
tooling.enable = true;
|
||||||
@ -103,12 +147,6 @@
|
|||||||
secrets.enable = true;
|
secrets.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# Did you read the comment?
|
||||||
home-manager.users.${user} = {
|
system.stateVersion = "23.11";
|
||||||
modules = {
|
|
||||||
desktop = {
|
|
||||||
kitty.enable = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
17
provision/hosts/torus/home-configuration.nix
Normal file
17
provision/hosts/torus/home-configuration.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{ config, pkgs, user, ... }:
|
||||||
|
{
|
||||||
|
home.username = "${user}";
|
||||||
|
home.homeDirectory = "/home/${user}";
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
chezmoi
|
||||||
|
rbw
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable home modules
|
||||||
|
#modules = {
|
||||||
|
#};
|
||||||
|
|
||||||
|
home.stateVersion = "23.11";
|
||||||
|
}
|
@ -15,15 +15,5 @@ in {
|
|||||||
owner = "${user}";
|
owner = "${user}";
|
||||||
group = "users";
|
group = "users";
|
||||||
};
|
};
|
||||||
age.secrets."ssh/kestrel/id_ed25519" = {
|
|
||||||
file = ../../secrets/ssh/kestrel/id_ed25519.age;
|
|
||||||
owner = "${user}";
|
|
||||||
group = "users";
|
|
||||||
};
|
|
||||||
age.secrets."ssh/kestrel/id_ed25519.pub" = {
|
|
||||||
file = ../../secrets/ssh/kestrel/id_ed25519.pub.age;
|
|
||||||
owner = "${user}";
|
|
||||||
group = "users";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,4 @@ in
|
|||||||
"wireguard/bulwark.age".publicKeys = systems;
|
"wireguard/bulwark.age".publicKeys = systems;
|
||||||
"git/gitea-runner-1.age".publicKeys = systems;
|
"git/gitea-runner-1.age".publicKeys = systems;
|
||||||
"nextcloud/password.age".publicKeys = systems;
|
"nextcloud/password.age".publicKeys = systems;
|
||||||
"ssh/kestrel/id_ed25519.age".publicKeys = [ tstarr_kestrel ] ++ systems;
|
|
||||||
"ssh/kestrel/id_ed25519.pub.age".publicKeys = [ tstarr_kestrel ] ++ systems;
|
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 c/r/0Q +D6/eizW8sHinmD3T1GcRHbykaKpTLg/LA/TVwtcKE8
|
|
||||||
OMZiDpnclm43THtvOMS1yty6TGd+uhY3pXZ4Ki+P8Cc
|
|
||||||
-> ssh-ed25519 Fz/sQw 7nGnk473hfSh/ZuDxaFcrTBjYg93blJJyhfz/g5NuGM
|
|
||||||
bwdjYVzIi8djVzkS2FOgL1V/zi/nNszxXg9EHo9Z7T0
|
|
||||||
-> ssh-ed25519 47GzQA lm5EIYLobeJyOmvSW9GPU2V+7KAGBEJXJ0TqHx3ABVQ
|
|
||||||
gnl/k+gfXEUqleiJWQipLOrhVcJljEMp2mbC+irGkJA
|
|
||||||
--- K/QSHLrouRPDlm0mesa1wk9rOS9sjK1lmVhzHLj4VqM
|
|
||||||
Úx‘…<ÜŒy[€ %[!iÉûs}ËÒI¬Žðì¸hd”žxÖ 2s
|
|
||||||
‰÷^Ø6èé5ÆhAºÍ?ÖWå~¢â¯Ï’<>g$¶<>=UØ\E’¤ÑÒ˜I@Æc¿ýt$õ<>Æ-
6y*â+A[§À<Êß³ÛK
|
|
Loading…
x
Reference in New Issue
Block a user