Compare commits

..

No commits in common. "3ca50c6d175106eabcdd784ea5aeca041302f331" and "570e376e2e895f51957505b507b5b59952859f9f" have entirely different histories.

2 changed files with 9 additions and 8 deletions

View file

@ -1,9 +1,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
users.users.qenya = { users.users.bluebird = {
isNormalUser = true; isNormalUser = true;
home = "/home/qenya"; home = "/home/bluebird";
description = "Bluebird";
extraGroups = [ extraGroups = [
"wheel" # sudo "wheel" # sudo
"networkmanager" # UI wifi configuration "networkmanager" # UI wifi configuration
@ -17,8 +18,8 @@
]; ];
}; };
home-manager.users.qenya = { pkgs, ... }: { home-manager.users.bluebird = { pkgs, ... }: {
home.homeDirectory = config.users.users.qenya.home; home.homeDirectory = config.users.users.bluebird.home;
home.packages = with pkgs; [ home.packages = with pkgs; [
fortune fortune
@ -36,7 +37,7 @@
backgroundOptions = { backgroundOptions = {
color-shading-type = "solid"; color-shading-type = "solid";
picture-options = "zoom"; picture-options = "zoom";
picture-uri = "${config.users.users.qenya.home}/.background-image"; picture-uri = "${config.users.users.bluebird.home}/.background-image";
primary-color = "#3a4ba0"; primary-color = "#3a4ba0";
secondary-color = "#2f302f"; secondary-color = "#2f302f";
}; };

View file

@ -14,11 +14,11 @@
time.timeZone = "Etc/UTC"; time.timeZone = "Etc/UTC";
users.users.qenya = { users.users.bluebird = {
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 qenya@tohru" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJEmkV9arotms79lJPsLHkdzAac4eu3pYS08ym0sB/on bluebird@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.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"; 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 ];