refactor: simplify 'user' options
This commit is contained in:
@@ -51,31 +51,17 @@ in
|
||||
../../modules/yubikey
|
||||
];
|
||||
|
||||
home-manager.users.${config.host.username} = import ../../home/hosts/andromache {
|
||||
inherit
|
||||
inputs
|
||||
config
|
||||
pkgs
|
||||
lib
|
||||
;
|
||||
};
|
||||
home-manager.users.${config.host.username} = import ../../home/hosts/andromache;
|
||||
|
||||
ssh.username = config.host.username;
|
||||
ssh.authorizedHosts = [ "astyanax" ];
|
||||
|
||||
secrets = {
|
||||
inherit (config.host) username;
|
||||
nixSigningKey.enable = true;
|
||||
};
|
||||
secrets.nixSigningKey.enable = true;
|
||||
|
||||
tailscale.enable = true;
|
||||
|
||||
docker.user = config.host.username;
|
||||
docker.enable = true;
|
||||
|
||||
hcloud = {
|
||||
enable = true;
|
||||
inherit (config.host) username;
|
||||
};
|
||||
hcloud.enable = true;
|
||||
|
||||
disko.devices = {
|
||||
disk.data = {
|
||||
@@ -107,7 +93,6 @@ in
|
||||
|
||||
my.yubikey = {
|
||||
enable = false;
|
||||
inherit (config.host) username;
|
||||
keys = [
|
||||
{
|
||||
handle = "<KeyHandle1>";
|
||||
|
||||
@@ -47,26 +47,15 @@ in
|
||||
../../modules/yubikey
|
||||
];
|
||||
|
||||
home-manager.users.${config.host.username} = import ../../home/hosts/astyanax {
|
||||
inherit
|
||||
inputs
|
||||
config
|
||||
pkgs
|
||||
lib
|
||||
;
|
||||
};
|
||||
home-manager.users.${config.host.username} = import ../../home/hosts/astyanax;
|
||||
|
||||
ssh.username = config.host.username;
|
||||
ssh.authorizedHosts = [ "andromache" ];
|
||||
|
||||
secrets = {
|
||||
inherit (config.host) username;
|
||||
nixSigningKey.enable = true;
|
||||
};
|
||||
secrets.nixSigningKey.enable = true;
|
||||
|
||||
tailscale.enable = true;
|
||||
docker.user = config.host.username;
|
||||
nfc.user = config.host.username;
|
||||
docker.enable = true;
|
||||
nfc.enable = true;
|
||||
desktop.ly.enable = true;
|
||||
audio.automation.enable = true;
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
];
|
||||
|
||||
ssh = {
|
||||
inherit (config.host) username;
|
||||
publicHostname = config.host.name;
|
||||
authorizedHosts = [
|
||||
"andromache"
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
];
|
||||
|
||||
ssh = {
|
||||
inherit (config.host) username;
|
||||
publicHostname = config.host.name;
|
||||
authorizedHosts = [
|
||||
"andromache"
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
networking.hostName = config.host.name;
|
||||
ssh = {
|
||||
inherit (config.host) username;
|
||||
publicHostname = "server.hektormisplon.xyz";
|
||||
authorizedHosts = [
|
||||
"andromache"
|
||||
@@ -27,7 +26,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
docker.user = config.host.username;
|
||||
docker.enable = true;
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@@ -29,13 +28,7 @@
|
||||
../../modules/x
|
||||
];
|
||||
|
||||
home-manager.users.${config.host.username} = import ../../home/hosts/vm {
|
||||
inherit inputs config pkgs;
|
||||
};
|
||||
|
||||
ssh.username = config.host.username;
|
||||
|
||||
secrets.username = config.host.username;
|
||||
home-manager.users.${config.host.username} = import ../../home/hosts/vm;
|
||||
|
||||
disko = {
|
||||
devices.disk.main = {
|
||||
|
||||
Reference in New Issue
Block a user