2024-12-15 00:29:51 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
home-manager,
|
|
|
|
...
|
|
|
|
}:
|
2023-10-28 22:09:36 +02:00
|
|
|
{
|
2024-03-26 16:18:17 +01:00
|
|
|
config = {
|
|
|
|
users.users.root.initialHashedPassword = "$y$j9T$e64bjL7iyVlniEKwKbM9g0$cCn74za0r6L9QMO20Fdxz3/SX0yvhz3Xd6.2BhtbRL1"; # Not a real password
|
2023-12-16 14:37:23 +01:00
|
|
|
|
2024-03-26 16:18:17 +01:00
|
|
|
users.users.geoffrey = {
|
|
|
|
isNormalUser = true;
|
2024-12-15 00:29:51 +01:00
|
|
|
extraGroups = [
|
|
|
|
"adbusers"
|
|
|
|
"wheel"
|
|
|
|
];
|
2024-03-26 16:18:17 +01:00
|
|
|
shell = pkgs.zsh;
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2024-03-26 16:18:17 +01:00
|
|
|
initialHashedPassword = "$y$j9T$e64bjL7iyVlniEKwKbM9g0$cCn74za0r6L9QMO20Fdxz3/SX0yvhz3Xd6.2BhtbRL1"; # Not a real password
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE41gxrO8oZ5n3saapSwZDViOQphm6RzqgsBUyA88pU geoffrey@frogeye.fr"
|
|
|
|
];
|
|
|
|
};
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2024-03-26 16:18:17 +01:00
|
|
|
# Won't allow to set the shell otherwise,
|
|
|
|
# even though home-manager sets it
|
|
|
|
programs.zsh.enable = true;
|
2023-10-28 23:03:27 +02:00
|
|
|
|
2024-05-06 22:25:35 +02:00
|
|
|
nix.settings.trusted-users = [ "geoffrey" ];
|
|
|
|
|
2024-03-26 16:18:17 +01:00
|
|
|
home-manager = {
|
2024-12-15 00:29:51 +01:00
|
|
|
users.geoffrey =
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
frogeye = lib.mkDefault config.frogeye;
|
|
|
|
# Propagating options that way doesn't seem to conserve priority info,
|
|
|
|
# this is not great. Hopefully mkDefault resolve conflicts.
|
|
|
|
};
|
2024-03-26 16:18:17 +01:00
|
|
|
# Makes VMs able to re-run
|
|
|
|
useUserPackages = true;
|
|
|
|
# Adds consistency
|
|
|
|
useGlobalPkgs = true;
|
2023-10-28 23:03:27 +02:00
|
|
|
};
|
2023-10-29 00:49:22 +02:00
|
|
|
|
2024-03-26 16:18:17 +01:00
|
|
|
specialisation = {
|
|
|
|
dark.configuration.frogeye.polarity = "dark";
|
|
|
|
};
|
2023-12-17 12:37:41 +01:00
|
|
|
|
2024-03-26 16:18:17 +01:00
|
|
|
# Fix https://nix-community.github.io/home-manager/index.html#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal
|
|
|
|
programs.dconf.enable = true;
|
2023-12-17 12:37:41 +01:00
|
|
|
|
2024-03-26 16:18:17 +01:00
|
|
|
# Because everything is encrypted and I'm the only user, this is fine.
|
2024-06-01 21:32:11 +02:00
|
|
|
services.displayManager.autoLogin.user = "geoffrey";
|
2024-03-26 16:18:17 +01:00
|
|
|
};
|
|
|
|
imports = [
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
];
|
2023-10-28 22:09:36 +02:00
|
|
|
}
|