2020-12-05 15:01:40 +01:00
|
|
|
{ config, pkgs, ... }:
|
2020-08-22 17:44:39 +02:00
|
|
|
{
|
|
|
|
imports = [
|
2020-12-12 17:08:52 +01:00
|
|
|
(import "${(import ../../nix/sources.nix).home-manager}/nixos")
|
2020-08-22 17:44:39 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
users.users.simon = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"adbusers"
|
|
|
|
"dialout"
|
|
|
|
"docker"
|
2020-09-12 20:54:10 +02:00
|
|
|
"libvirtd"
|
2020-08-22 17:44:39 +02:00
|
|
|
"lp"
|
|
|
|
"networkmanager"
|
2020-10-17 20:12:13 +02:00
|
|
|
"video"
|
2020-08-22 17:44:39 +02:00
|
|
|
"wheel"
|
|
|
|
];
|
2020-12-05 16:42:49 +01:00
|
|
|
openssh.authorizedKeys.keys = config.sbruder.pubkeys.trustedKeys;
|
2020-12-06 14:05:47 +01:00
|
|
|
initialPassword = "foobar"; # for vm
|
2020-08-22 17:44:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
|
2020-12-05 15:01:40 +01:00
|
|
|
home-manager.users.simon = { lib, pkgs, ... }: {
|
2021-01-03 16:28:35 +01:00
|
|
|
# FIXME: those options are duplicates from the system configuration
|
2020-12-05 15:01:40 +01:00
|
|
|
options.sbruder = {
|
2020-12-05 15:44:58 +01:00
|
|
|
gui.enable = lib.mkOption {
|
2020-12-05 15:01:40 +01:00
|
|
|
type = lib.types.bool;
|
2020-12-05 15:44:58 +01:00
|
|
|
default = config.sbruder.gui.enable;
|
2020-12-05 15:01:40 +01:00
|
|
|
description = "Whether to enable gui";
|
|
|
|
};
|
2021-01-03 16:28:35 +01:00
|
|
|
unfree = {
|
|
|
|
allowAssets = lib.mkOption {
|
|
|
|
default = config.sbruder.unfree.allowAssets;
|
|
|
|
type = lib.types.bool;
|
|
|
|
description = "Allow restricted selection of unfree assets to be installed.";
|
|
|
|
};
|
|
|
|
allowSoftware = lib.mkOption {
|
|
|
|
default = config.sbruder.unfree.allowSoftware;
|
|
|
|
type = lib.types.bool;
|
|
|
|
description = "Allow restricted selection of unfree software to be installed.";
|
|
|
|
};
|
|
|
|
};
|
2020-12-05 15:01:40 +01:00
|
|
|
};
|
|
|
|
|
2020-12-05 19:19:45 +01:00
|
|
|
imports = [ ./modules ];
|
2020-08-22 17:44:39 +02:00
|
|
|
};
|
|
|
|
}
|