generation 492 25.11.20250714.62e0f05

This commit is contained in:
2025-08-17 01:51:56 -04:00
parent 31058c7228
commit 78805b6429
5 changed files with 74 additions and 64 deletions

39
hosts/meta.nix Normal file
View File

@@ -0,0 +1,39 @@
{
config,
pkgs,
lib,
...
}: {
options = {
res = lib.mkOption {
type = lib.types.str;
default = "1920x1080";
description = "screen resolution";
};
};
# config = {
# age = {
# secrets = {
# zsh_remote = {
# file = ../../secrets/zsh_remote.age;
# owner = "synchronous";
# mode = "0400";
# };
# tailscale-rq = {
# file = ../../secrets/tailscale-rq.age;
# owner = "synchronous";
# mode = "0400";
# };
# ssh-pub = {
# file = ../../secrets/ssh-pub.age;
# owner = "synchronous";
# mode = "0400";
# };
# };
# secretsDir = "/home/synchronous/.agenix/agenix";
# secretsMountPoint = "/home/synchronous/.agenix/agenix.d";
# identityPaths = ["/home/synchronous/.ssh/id_ed25519"];
# };
# };
}

View File

@@ -7,22 +7,9 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../system/system.nix ../../system/system.nix
../meta.nix
]; ];
options = {
res = lib.mkOption {
type = lib.types.str;
default = "1920x1080";
description = "screen resolution";
};
# zsh_remote = lib.mkOption {
# type = lib.types.str;
# default = "1920x1080";
# description = "zsh remote secret";
# };
};
config = { config = {
networking.hostName = "rq"; # Define your hostname. networking.hostName = "rq"; # Define your hostname.
res = "2560x1440"; res = "2560x1440";
@@ -34,13 +21,6 @@
users.synchronous.imports = [../../home/home.nix]; users.synchronous.imports = [../../home/home.nix];
}; };
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/nvme0n1";
boot.loader.grub.useOSProber = true;
boot.loader.grub.version = 2;
services.logind.lidSwitchExternalPower = "ignore";
age = { age = {
secrets = { secrets = {
zsh_remote = { zsh_remote = {
@@ -59,12 +39,18 @@
mode = "0400"; mode = "0400";
}; };
}; };
secretsDir = "/home/synchronous/.agenix/agenix"; secretsDir = "/home/synchronous/.agenix/agenix";
secretsMountPoint = "/home/synchronous/.agenix/agenix.d"; secretsMountPoint = "/home/synchronous/.agenix/agenix.d";
identityPaths = ["/home/synchronous/.ssh/id_ed25519"]; identityPaths = ["/home/synchronous/.ssh/id_ed25519"];
}; };
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/nvme0n1";
boot.loader.grub.useOSProber = true;
boot.loader.grub.version = 2;
services.logind.lidSwitchExternalPower = "ignore";
#boot = { #boot = {
# loader.systemd-boot = { # loader.systemd-boot = {
# enable = true; # enable = true;

View File

@@ -7,17 +7,10 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../system/system.nix ../../system/system.nix
../meta.nix
./ssh.nix ./ssh.nix
]; ];
options = {
res = lib.mkOption {
type = lib.types.str;
default = "1920x1080";
description = "screen resolution";
};
};
config = { config = {
networking.hostName = "server"; # Define your hostname. networking.hostName = "server"; # Define your hostname.
res = "2560x1440"; res = "2560x1440";
@@ -29,17 +22,6 @@
users.synchronous.imports = [../../home/home.nix]; users.synchronous.imports = [../../home/home.nix];
}; };
# Bootloader.
# boot.loader.grub.enable = true;
# boot.loader.grub.device = "/dev/nvme0n1";
# boot.loader.grub.useOSProber = true;
# boot.loader.grub.version = 2;
# services.logind.lidSwitchExternalPower = "ignore";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.enable = false;
age = { age = {
secrets = { secrets = {
zsh_remote = { zsh_remote = {
@@ -63,6 +45,17 @@
identityPaths = ["/home/synchronous/.ssh/id_ed25519"]; identityPaths = ["/home/synchronous/.ssh/id_ed25519"];
}; };
# Bootloader.
# boot.loader.grub.enable = true;
# boot.loader.grub.device = "/dev/nvme0n1";
# boot.loader.grub.useOSProber = true;
# boot.loader.grub.version = 2;
# services.logind.lidSwitchExternalPower = "ignore";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.enable = false;
#boot = { #boot = {
# loader.systemd-boot = { # loader.systemd-boot = {
# enable = true; # enable = true;

View File

@@ -7,27 +7,13 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../system/system.nix ../../system/system.nix
../meta.nix
]; ];
options = {
res = lib.mkOption {
type = lib.types.str;
default = "1920x1080";
description = "screen resolution";
};
};
config = { config = {
networking.hostName = "thonkpad"; # Define your hostname. networking.hostName = "thonkpad"; # Define your hostname.
res = "1366x768"; res = "1366x768";
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "hm-backup";
users.synchronous.imports = [../../home/home.nix];
};
age = { age = {
secrets = { secrets = {
zsh_remote = { zsh_remote = {
@@ -46,12 +32,18 @@
mode = "0400"; mode = "0400";
}; };
}; };
secretsDir = "/home/synchronous/.agenix/agenix"; secretsDir = "/home/synchronous/.agenix/agenix";
secretsMountPoint = "/home/synchronous/.agenix/agenix.d"; secretsMountPoint = "/home/synchronous/.agenix/agenix.d";
identityPaths = ["/home/synchronous/.ssh/id_ed25519"]; identityPaths = ["/home/synchronous/.ssh/id_ed25519"];
}; };
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "hm-backup";
users.synchronous.imports = [../../home/home.nix];
};
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.enable = false; boot.loader.grub.enable = false;

View File

@@ -10,13 +10,13 @@
../../system/system.nix ../../system/system.nix
]; ];
options = { # options = {
res = lib.mkOption { # res = lib.mkOption {
type = lib.types.str; # type = lib.types.str;
default = "1920x1080"; # default = "1920x1080";
description = "screen resolution"; # description = "screen resolution";
}; # };
}; # };
config = { config = {
networking.hostName = "yoga"; # Define your hostname. networking.hostName = "yoga"; # Define your hostname.