Compare commits
2 commits
570e376e2e
...
3ca50c6d17
Author | SHA1 | Date | |
---|---|---|---|
|
3ca50c6d17 | ||
|
0908d7a2c8 |
|
@ -1,10 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
users.users.bluebird = {
|
users.users.qenya = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/bluebird";
|
home = "/home/qenya";
|
||||||
description = "Bluebird";
|
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel" # sudo
|
"wheel" # sudo
|
||||||
"networkmanager" # UI wifi configuration
|
"networkmanager" # UI wifi configuration
|
||||||
|
@ -18,8 +17,8 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.bluebird = { pkgs, ... }: {
|
home-manager.users.qenya = { pkgs, ... }: {
|
||||||
home.homeDirectory = config.users.users.bluebird.home;
|
home.homeDirectory = config.users.users.qenya.home;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
fortune
|
fortune
|
||||||
|
@ -37,7 +36,7 @@
|
||||||
backgroundOptions = {
|
backgroundOptions = {
|
||||||
color-shading-type = "solid";
|
color-shading-type = "solid";
|
||||||
picture-options = "zoom";
|
picture-options = "zoom";
|
||||||
picture-uri = "${config.users.users.bluebird.home}/.background-image";
|
picture-uri = "${config.users.users.qenya.home}/.background-image";
|
||||||
primary-color = "#3a4ba0";
|
primary-color = "#3a4ba0";
|
||||||
secondary-color = "#2f302f";
|
secondary-color = "#2f302f";
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
|
|
||||||
time.timeZone = "Etc/UTC";
|
time.timeZone = "Etc/UTC";
|
||||||
|
|
||||||
users.users.bluebird = {
|
users.users.qenya = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJEmkV9arotms79lJPsLHkdzAac4eu3pYS08ym0sB/on bluebird@tohru"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJEmkV9arotms79lJPsLHkdzAac4eu3pYS08ym0sB/on qenya@tohru"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
# Allow remote root login only from home network
|
# Allow remote root login only from home network
|
||||||
# TODO: Find a less hacky way of doing remote deployment
|
# TODO: Find a less hacky way of doing remote deployment
|
||||||
users.users.root.openssh.authorizedKeys.keys = config.users.users.bluebird.openssh.authorizedKeys.keys;
|
users.users.root.openssh.authorizedKeys.keys = config.users.users.qenya.openssh.authorizedKeys.keys;
|
||||||
services.openssh.extraConfig = "Match Address 45.14.17.200\n PermitRootLogin prohibit-password";
|
services.openssh.extraConfig = "Match Address 45.14.17.200\n PermitRootLogin prohibit-password";
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
||||||
|
|
Loading…
Reference in a new issue