dotfiles/profiles/base/default.nix

178 lines
3.3 KiB
Nix
Raw Normal View History

2020-06-17 19:01:57 +02:00
{ config, lib, pkgs, ... }:
let
cfg = config.profiles.base;
in {
options.machine = {
name = lib.mkOption {
type = "str";
};
eth = lib.mkOption {};
2021-08-20 19:20:18 +02:00
wlan = lib.mkOption {};
2020-06-17 19:01:57 +02:00
};
options.profiles.base = {
enable = lib.mkEnableOption "The base profile, should be always enabled";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
2020-07-09 12:36:16 +02:00
#libguestfs
#ansible
#nixops
2020-06-17 19:01:57 +02:00
ldns
lsof
2020-06-17 19:01:57 +02:00
htop
file
tmux
unzip
p7zip
parallel
sshfs
jq
2020-06-17 19:01:57 +02:00
ncdu
2020-06-17 19:01:57 +02:00
bat
ripgrep
mkvtoolnix
# unstable.youtubeDL
ffmpeg-full
2020-06-17 19:01:57 +02:00
2021-08-20 19:20:18 +02:00
nix-index
nur.repos.j-k.comma
] ++ lib.optionals config.profiles.gui.enable [
# virtmanager
# virt-viewer
2020-06-17 19:01:57 +02:00
mpv
sxiv
2021-07-26 18:15:54 +02:00
unstable.hydrus
2020-06-17 19:01:57 +02:00
spotify
mumble
dolphin
konsole
2020-06-17 19:01:57 +02:00
krename
2021-06-04 12:42:58 +02:00
#kdeApplications.dolphin-plugins
2020-06-17 19:01:57 +02:00
ffmpegthumbs
2021-04-12 01:41:56 +02:00
#kdeApplications.kdegraphics-thumbnailers
2021-06-04 12:42:58 +02:00
#kdeFrameworks.kded
#kdeFrameworks.kio
2021-04-12 01:41:56 +02:00
#kdeApplications.kio-extras
2020-06-17 19:01:57 +02:00
2020-12-12 15:26:49 +01:00
#dan.rank_photos
2020-06-17 19:01:57 +02:00
# ***REMOVED***
gnome3.gedit
unstable.vscode
2020-07-09 12:36:16 +02:00
# texlive.combined.scheme-full
# kile
2021-06-01 13:10:33 +02:00
libreoffice
2020-06-17 19:01:57 +02:00
gimp
2020-07-09 12:36:16 +02:00
# krita
# inkscape
# digikam
# godot
# blender
# audacity
# mixxx
2020-07-09 12:36:16 +02:00
# ardour
2020-06-17 19:01:57 +02:00
kdenlive
frei0r
2021-06-01 13:10:33 +02:00
geogebra
2020-06-17 19:01:57 +02:00
];
programs.firefox = {
enable = config.profiles.gui.enable;
2021-12-22 04:55:24 +01:00
profiles = {
daniel = {
settings = {
"browser.startup.homepage" = "https://nixos.org";
};
bookmarks = {
"NixOS Options" = {
keyword = "no";
url = "https://search.nixos.org/options?query=%s";
};
"NixOS Packages" = {
keyword = "np";
url = "https://search.nixos.org/packages?query=%s";
};
"Home-Manager Options" = {
keyword = "hm";
url = "https://rycee.gitlab.io/home-manager/options.html#opt-%s";
};
};
};
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ bitwarden cookies-txt https-everywhere metamask no-pdf-download sponsorblock ublock-origin ];
2020-06-17 19:01:57 +02:00
};
programs.obs-studio = {
enable = config.profiles.gui.enable;
2020-06-17 19:01:57 +02:00
};
programs.git = {
enable = true;
userEmail = "daniel.olsen99@gmail.com";
userName = "Daniel Olsen";
2020-12-12 15:26:49 +01:00
extraConfig = {
pull.rebase = true;
};
2020-06-17 19:01:57 +02:00
# delta.enable = true;
};
2021-12-22 04:57:40 +01:00
programs.ssh = {
enable = true;
matchBlocks = {
"lilith" = {
hostname = "lilith.d.d.dodsorf.as";
user = "dandellion";
};
"desktop" = {
hostname = "10.42.42.10";
user = "dan";
};
"laptop" = {
hostname = "10.42.42.13";
user = "daniel";
};
"pvv.ntnu.no" = {
user = "danio";
};
"*.pvv.ntnu.no" = {
user = "danio";
};
};
};
2020-06-17 19:01:57 +02:00
# services.kdeconnect = {
# enable = true;
# indicator = true;
# };
services.gpg-agent = {
enable = true;
defaultCacheTtl = 1800;
enableSshSupport = true;
};
fonts.fontconfig.enable = true;
};
}