nixos-config/users/simon/base.nix

72 lines
1.5 KiB
Nix
Raw Normal View History

2020-08-22 17:44:39 +02:00
{ pkgs, ... }:
let
pubkeys = import ../../modules/pubkeys.nix;
in
{
imports = [
2020-11-02 13:50:40 +01:00
(import "${builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-20.09.tar.gz"}/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"
];
openssh.authorizedKeys.keys = [
2020-10-16 15:32:48 +02:00
pubkeys."simon@nunotaba"
pubkeys."simon@sayuri"
2020-08-22 17:44:39 +02:00
];
};
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
home-manager.users.simon = { pkgs, ... }: {
2020-11-07 11:19:41 +01:00
imports = [
./modules/alacritty.nix
2020-11-07 14:29:02 +01:00
./modules/ankisyncd.nix
2020-11-07 14:13:43 +01:00
./modules/sway.nix
2020-11-07 11:35:58 +01:00
./modules/zathura.nix
2020-11-07 11:19:41 +01:00
];
2020-08-22 17:44:39 +02:00
gtk = {
enable = true;
font.name = "sans-serif 10";
theme = {
package = pkgs.gnome-themes-extra;
name = "Adwaita";
};
iconTheme = {
package = pkgs.gnome3.adwaita-icon-theme;
name = "Adwaita";
};
2020-08-24 20:59:44 +02:00
# Tooltips remain visible when switching to another workspace
gtk2.extraConfig = ''
gtk-enable-tooltips = 0
'';
2020-08-22 17:44:39 +02:00
};
2020-11-07 10:56:51 +01:00
xdg.mimeApps = {
enable = true;
defaultApplications = {
"application/pdf" = "org.pwmt.zathura.desktop";
"image/png" = "mpv.desktop";
"image/jpeg" = "mpv.desktop";
};
};
2020-11-07 11:05:58 +01:00
home.file = {
".config/htop/htoprc".text = ''
color_scheme=6
'';
};
2020-08-22 17:44:39 +02:00
};
}