refactor(nixos:options) remove host.admin.sshKey option
This commit is contained in:
parent
479c661b69
commit
a6cd3afce0
6 changed files with 8 additions and 17 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, pkgs, keys, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -13,7 +13,6 @@
|
|||
admin = {
|
||||
name = "ooks";
|
||||
shell = "fish";
|
||||
sshKey = "${keys.users.ooks}";
|
||||
homeManager = true;
|
||||
};
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk";
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -18,7 +14,6 @@ in
|
|||
admin = {
|
||||
name = "ooks";
|
||||
shell = "fish";
|
||||
sshKey = key;
|
||||
homeManager = true;
|
||||
};
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
let
|
||||
inherit (lib) mkDefault;
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk";
|
||||
in
|
||||
|
||||
{
|
||||
|
|
@ -19,7 +18,6 @@ in
|
|||
admin = {
|
||||
name = "ooks";
|
||||
shell = "fish";
|
||||
sshKey = key;
|
||||
homeManager = true;
|
||||
};
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
let
|
||||
inherit (lib) mkDefault;
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk";
|
||||
in
|
||||
|
||||
{
|
||||
|
|
@ -19,7 +18,6 @@ in
|
|||
admin = {
|
||||
name = "ooks";
|
||||
shell = "fish";
|
||||
sshKey = key;
|
||||
homeManager = true;
|
||||
};
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
let
|
||||
inherit (lib) mkDefault;
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk";
|
||||
in
|
||||
|
||||
{
|
||||
|
|
@ -19,7 +18,6 @@ in
|
|||
admin = {
|
||||
name = "ooks";
|
||||
shell = "fish";
|
||||
sshKey = key;
|
||||
homeManager = true;
|
||||
};
|
||||
hardware = {
|
||||
|
|
@ -33,6 +31,13 @@ in
|
|||
"audio"
|
||||
"video"
|
||||
];
|
||||
monitors = [{
|
||||
name = "eDP-1";
|
||||
width = 1920;
|
||||
height = 1080;
|
||||
workspace = "1";
|
||||
primary = true;
|
||||
}];
|
||||
battery = {
|
||||
powersave = {
|
||||
minFreq = 800;
|
||||
|
|
|
|||
|
|
@ -50,10 +50,6 @@ in
|
|||
type = str;
|
||||
default = "ooks@protonmail.com";
|
||||
};
|
||||
sshKey = mkOption {
|
||||
type = str;
|
||||
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk";
|
||||
};
|
||||
homeManager = mkEnableOption "";
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue