Merge branch 'master' of 192.168.1.126:TheCrazyInsanity/nixos-configv3
This commit is contained in:
@@ -1,8 +1,24 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vscode
|
||||
antigravity # Free Gemini 3 credits was too good of an offer to not take up, even if it requires selling my soul.
|
||||
chromium
|
||||
];
|
||||
|
||||
home-manager.sharedModules = [
|
||||
(
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
jnoortheen.nix-ide
|
||||
];
|
||||
userSettings = {
|
||||
"editor.formatOnSave" = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
@@ -8,9 +8,22 @@
|
||||
programs.kdeconnect.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
firefox # Odd spot, but my choice of browser is determined by environment.
|
||||
kdePackages.kate
|
||||
kdePackages.filelight
|
||||
# kdePackages.kdeconnect-kde
|
||||
];
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
policies.ExtensionSettings = {
|
||||
"*".installation_mode = "blocked"; # blocks all addons except the ones specified below
|
||||
# uBlock Origin:
|
||||
"uBlock0@raymondhill.net" = {
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.automatic-timezoned.enable = true;
|
||||
}
|
||||
|
||||
97
modules/kde/home.nix
Executable file
97
modules/kde/home.nix
Executable file
@@ -0,0 +1,97 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
workspace = {
|
||||
lookAndFeel = "org.kde.breezedark.desktop";
|
||||
};
|
||||
panels = [
|
||||
# Windows-like panel at the bottom
|
||||
{
|
||||
location = "bottom";
|
||||
widgets = [
|
||||
# We can configure the widgets by adding the name and config
|
||||
# attributes. For example to add the the kickoff widget and set the
|
||||
# icon to "nix-snowflake-white" use the below configuration. This will
|
||||
# add the "icon" key to the "General" group for the widget in
|
||||
# ~/.config/plasma-org.kde.plasma.desktop-appletsrc.
|
||||
{
|
||||
name = "org.kde.plasma.kickoff";
|
||||
config = {
|
||||
General = {
|
||||
icon = "nix-snowflake-white";
|
||||
alphaSort = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
# Or you can configure the widgets by adding the widget-specific options for it.
|
||||
# See modules/widgets for supported widgets and options for these widgets.
|
||||
# For example:
|
||||
# {
|
||||
# kickoff = {
|
||||
# sortAlphabetically = true;
|
||||
# icon = "nix-snowflake-white";
|
||||
# };
|
||||
# }
|
||||
# Adding configuration to the widgets can also for example be used to
|
||||
# pin apps to the task-manager, which this example illustrates by
|
||||
# pinning dolphin and konsole to the task-manager by default with widget-specific options.
|
||||
# {
|
||||
# iconTasks = {
|
||||
# launchers = [
|
||||
# "applications:org.kde.dolphin.desktop"
|
||||
# "applications:org.kde.konsole.desktop"
|
||||
# ];
|
||||
# };
|
||||
# }
|
||||
# Or you can do it manually, for example:
|
||||
{
|
||||
name = "org.kde.plasma.icontasks";
|
||||
config = {
|
||||
General = {
|
||||
launchers = [
|
||||
"applications:org.kde.dolphin.desktop"
|
||||
"applications:org.kde.konsole.desktop"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
# If no configuration is needed, specifying only the name of the
|
||||
# widget will add them with the default configuration.
|
||||
"org.kde.plasma.marginsseparator"
|
||||
# If you need configuration for your widget, instead of specifying the
|
||||
# the keys and values directly using the config attribute as shown
|
||||
# above, plasma-manager also provides some higher-level interfaces for
|
||||
# configuring the widgets. See modules/widgets for supported widgets
|
||||
# and options for these widgets. The widgets below shows two examples
|
||||
# of usage, one where we add a digital clock, setting 12h time and
|
||||
# first day of the week to Sunday and another adding a systray with
|
||||
# some modifications in which entries to show.
|
||||
{
|
||||
digitalClock = {
|
||||
calendar.firstDayOfWeek = "monday";
|
||||
time.format = "12h";
|
||||
};
|
||||
}
|
||||
{
|
||||
systemTray.items = {
|
||||
# We explicitly show bluetooth and battery
|
||||
shown = [
|
||||
"org.kde.plasma.battery"
|
||||
"org.kde.plasma.networkmanagement"
|
||||
"org.kde.plasma.volume"
|
||||
];
|
||||
# And explicitly hide networkmanagement and volume
|
||||
hidden = [
|
||||
# "org.kde.plasma.networkmanagement"
|
||||
# "org.kde.plasma.volume"
|
||||
"org.kde.plasma.bluetooth"
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
hiding = "none";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user