mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
30 lines
841 B
Nix
30 lines
841 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let cfg = config.jopejoe1.jopejoe1;
|
|
in {
|
|
options.jopejoe1.jopejoe1 = {
|
|
enable = lib.mkEnableOption "Enable jopejoe1 user";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
users.users.jopejoe1 = {
|
|
isNormalUser = true;
|
|
description = "Johannes Jöns";
|
|
initialPassword = "password";
|
|
extraGroups = [ "wheel" "networkmanager" "pipewire" "audio" ];
|
|
uid = 1000;
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
|
|
];
|
|
packages = with pkgs;
|
|
[ libsForQt5.kate libsForQt5.ark texlive.combined.scheme-full ]
|
|
++ lib.optionals (config.system == "x86_64-linux") [
|
|
discord
|
|
lutris
|
|
bottles
|
|
];
|
|
};
|
|
};
|
|
|
|
imports = [ ./home.nix ];
|
|
}
|