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