generation 492 25.11.20250714.62e0f05
This commit is contained in:
39
hosts/meta.nix
Normal file
39
hosts/meta.nix
Normal 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"];
|
||||
# };
|
||||
# };
|
||||
}
|
||||
@@ -7,22 +7,9 @@
|
||||
imports = [
|
||||
./hardware-configuration.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 = {
|
||||
networking.hostName = "rq"; # Define your hostname.
|
||||
res = "2560x1440";
|
||||
@@ -34,13 +21,6 @@
|
||||
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 = {
|
||||
secrets = {
|
||||
zsh_remote = {
|
||||
@@ -59,12 +39,18 @@
|
||||
mode = "0400";
|
||||
};
|
||||
};
|
||||
|
||||
secretsDir = "/home/synchronous/.agenix/agenix";
|
||||
secretsMountPoint = "/home/synchronous/.agenix/agenix.d";
|
||||
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;
|
||||
|
||||
@@ -7,17 +7,10 @@
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../system/system.nix
|
||||
../meta.nix
|
||||
./ssh.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
res = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "1920x1080";
|
||||
description = "screen resolution";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
networking.hostName = "server"; # Define your hostname.
|
||||
res = "2560x1440";
|
||||
@@ -29,17 +22,6 @@
|
||||
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 = {
|
||||
secrets = {
|
||||
zsh_remote = {
|
||||
@@ -63,6 +45,17 @@
|
||||
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 = {
|
||||
# loader.systemd-boot = {
|
||||
# enable = true;
|
||||
|
||||
@@ -7,27 +7,13 @@
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../system/system.nix
|
||||
../meta.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
res = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "1920x1080";
|
||||
description = "screen resolution";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
networking.hostName = "thonkpad"; # Define your hostname.
|
||||
res = "1366x768";
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "hm-backup";
|
||||
users.synchronous.imports = [../../home/home.nix];
|
||||
};
|
||||
|
||||
age = {
|
||||
secrets = {
|
||||
zsh_remote = {
|
||||
@@ -46,12 +32,18 @@
|
||||
mode = "0400";
|
||||
};
|
||||
};
|
||||
|
||||
secretsDir = "/home/synchronous/.agenix/agenix";
|
||||
secretsMountPoint = "/home/synchronous/.agenix/agenix.d";
|
||||
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.efi.canTouchEfiVariables = true;
|
||||
boot.loader.grub.enable = false;
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
../../system/system.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
res = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "1920x1080";
|
||||
description = "screen resolution";
|
||||
};
|
||||
};
|
||||
# options = {
|
||||
# res = lib.mkOption {
|
||||
# type = lib.types.str;
|
||||
# default = "1920x1080";
|
||||
# description = "screen resolution";
|
||||
# };
|
||||
# };
|
||||
|
||||
config = {
|
||||
networking.hostName = "yoga"; # Define your hostname.
|
||||
|
||||
Reference in New Issue
Block a user