dotfiles/os/geoffrey.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

{ pkgs, lib, config, ... }:
2023-10-28 22:09:36 +02:00
{
imports = [
2023-11-30 19:02:32 +01:00
<home-manager/nixos>
2023-10-28 22:09:36 +02:00
];
users.users.geoffrey = {
isNormalUser = true;
2023-12-09 00:08:01 +01:00
extraGroups = [ "adbusers" "wheel" ];
2023-10-28 23:03:27 +02:00
shell = pkgs.zsh;
2023-10-28 22:09:36 +02:00
2023-11-28 00:34:30 +01:00
initialHashedPassword = "$y$j9T$e64bjL7iyVlniEKwKbM9g0$cCn74za0r6L9QMO20Fdxz3/SX0yvhz3Xd6.2BhtbRL1"; # Not a real password
2023-10-28 22:09:36 +02:00
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE41gxrO8oZ5n3saapSwZDViOQphm6RzqgsBUyA88pU geoffrey@frogeye.fr"
];
};
2023-10-28 23:03:27 +02:00
# Won't allow to set the shell otherwise,
# even though home-manager sets it
programs.zsh.enable = true;
home-manager = {
users.geoffrey = { pkgs, ... }: {
imports = [
../hm
2023-10-28 23:03:27 +02:00
];
2023-11-21 21:01:56 +01:00
frogeye = config.frogeye;
2023-10-28 23:03:27 +02:00
};
# Makes VMs able to re-run
useUserPackages = true;
# Adds consistency
useGlobalPkgs = true;
2023-10-28 22:09:36 +02:00
};
2023-10-29 00:49:22 +02:00
specialisation = {
dark.configuration.frogeye.polarity = "dark";
light.configuration.frogeye.polarity = "light";
};
2023-12-02 22:47:30 +01:00
# Because everything is encrypted and I'm the only user, this is fine.
2023-10-29 00:49:22 +02:00
services.xserver.displayManager.autoLogin.user = "geoffrey";
2023-10-28 22:09:36 +02:00
}