38 lines
850 B
Nix
38 lines
850 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
imports = [
|
|
(import "${builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-20.09.tar.gz"}/nixos")
|
|
];
|
|
|
|
users.users.simon = {
|
|
isNormalUser = true;
|
|
extraGroups = [
|
|
"adbusers"
|
|
"dialout"
|
|
"docker"
|
|
"libvirtd"
|
|
"lp"
|
|
"networkmanager"
|
|
"video"
|
|
"wheel"
|
|
];
|
|
openssh.authorizedKeys.keys = config.sbruder.pubkeys.trustedKeys;
|
|
initialPassword = "foobar"; # for vm
|
|
};
|
|
|
|
home-manager.useUserPackages = true;
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.users.simon = { lib, pkgs, ... }: {
|
|
options.sbruder = {
|
|
gui.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = config.sbruder.gui.enable;
|
|
description = "Whether to enable gui";
|
|
};
|
|
};
|
|
|
|
imports = [ ./modules ];
|
|
};
|
|
}
|