some more adjustments, tried to get vs code to work
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{pkgs, ...}:
|
||||
{pkgs, inputs, ...}:
|
||||
{
|
||||
programs.firefox = {
|
||||
## Enable the Firefox web browser
|
||||
@@ -72,9 +72,73 @@
|
||||
# Automatically enable extensions
|
||||
"extensions.autoDisableScopes" = 0;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
inputs.zen-browser.packages."${system}".default
|
||||
|
||||
# inputs.zen-browser.packages."${system}".default.override {
|
||||
# policies = {
|
||||
# DisableAppUpdate = true;
|
||||
# DisableTelemetry = true;
|
||||
|
||||
# OfferToSaveLogins = false;
|
||||
# AutofillAddressEnabled = true;
|
||||
# AutofillCreditCardEnabled = false;
|
||||
# # BlockAboutConfig = true;
|
||||
|
||||
# DefaultDownloadDirectory = "\${home}/Downloads";
|
||||
|
||||
# ExtensionSettings = with builtins;
|
||||
# let extension = shortId: uuid: {
|
||||
# name = uuid;
|
||||
# value = {
|
||||
# install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
|
||||
# installation_mode = "normal_installed";
|
||||
# };
|
||||
# };
|
||||
# in listToAttrs [
|
||||
# (extension "ublock-origin" "uBlock0@raymondhill.net")
|
||||
# (extension "ghostery" "firefox@ghostery.com")
|
||||
# (extension "keepassxc-browser" "keepassxc-browser@keepassxc.org")
|
||||
# (extension "morphine" "{b252db54-e4f6-440f-914a-1f017a3a390d}")
|
||||
# ];
|
||||
# };
|
||||
# }
|
||||
|
||||
];
|
||||
# programs.zen-browser = {
|
||||
# enable = true;
|
||||
|
||||
# policies = {
|
||||
# DisableAppUpdate = true;
|
||||
# DisableTelemetry = true;
|
||||
|
||||
# OfferToSaveLogins = false;
|
||||
# AutofillAddressEnabled = true;
|
||||
# AutofillCreditCardEnabled = false;
|
||||
# # BlockAboutConfig = true;
|
||||
|
||||
# DefaultDownloadDirectory = "\${home}/Downloads";
|
||||
|
||||
# ExtensionSettings = with builtins;
|
||||
# let extension = shortId: uuid: {
|
||||
# name = uuid;
|
||||
# value = {
|
||||
# install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
|
||||
# installation_mode = "normal_installed";
|
||||
# };
|
||||
# };
|
||||
# in listToAttrs [
|
||||
# (extension "ublock-origin" "uBlock0@raymondhill.net")
|
||||
# (extension "ghostery" "firefox@ghostery.com")
|
||||
# (extension "keepassxc-browser" "keepassxc-browser@keepassxc.org")
|
||||
# (extension "morphine" "{b252db54-e4f6-440f-914a-1f017a3a390d}")
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
@@ -25,15 +25,28 @@
|
||||
|
||||
# typst
|
||||
myriad-dreamin.tinymist
|
||||
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||
{
|
||||
name = "jupyter-hub";
|
||||
publisher = "ms-toolsai";
|
||||
version = "2024.10.1002821224";
|
||||
sha256 = "sha256-3YF91Wgw5je040xPpLHPdxQIEAetpmDz6La7bw2JM+g=";
|
||||
}
|
||||
];
|
||||
# };
|
||||
|
||||
keybindings = [
|
||||
# comment/uncomment line
|
||||
{
|
||||
key = "ctrl+#";
|
||||
command = "editor.action.commentLine";
|
||||
when = "editorTextFocus";
|
||||
}
|
||||
# run code cell in jupyter
|
||||
{
|
||||
key = "ctrl+enter";
|
||||
command = "jupyter.runCell";
|
||||
when = "editorTextFocus && editorHasSelection && jupyter.notebookEditorFocused";
|
||||
}
|
||||
];
|
||||
|
||||
userSettings = {
|
||||
|
@@ -13,7 +13,6 @@
|
||||
"com.spotify.Client"
|
||||
"io.podman_desktop.PodmanDesktop"
|
||||
"org.pipewire.Helvum"
|
||||
"io.github.zen_browser.zen"
|
||||
"im.riot.Riot"
|
||||
];
|
||||
}
|
||||
|
@@ -1,11 +0,0 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
environment.systemPackages =
|
||||
with pkgs; [
|
||||
inputs.better-control.packages.${pkgs.system}.better-control
|
||||
];
|
||||
}
|
@@ -63,7 +63,7 @@
|
||||
"$mod+Ctrl, left, movetoworkspace, -1"
|
||||
"$mod+Ctrl, right, movetoworkspace, +1"
|
||||
|
||||
# # Switch workspace
|
||||
# Switch workspace
|
||||
"$mod+Alt, left, workspace, -1"
|
||||
"$mod+Alt, right, workspace, +1"
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
# repeatable bindings
|
||||
binde = [
|
||||
# Fn keys
|
||||
", XF86MonBrightnessDown, exec, brightnessctl set -5%"
|
||||
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
|
||||
", XF86MonBrightnessUp, exec, brightnessctl set +5%"
|
||||
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
@@ -122,6 +122,7 @@
|
||||
# # Fixes cursor themes in gnome apps under hyprland
|
||||
# "gsettings set org.gnome.desktop.interface cursor-theme '${config.home.pointerCursor.name}'"
|
||||
# "gsettings set org.gnome.desktop.interface cursor-size ${toString home.pointerCursor.size}"
|
||||
"${pkgs.owncloud-client}"
|
||||
];
|
||||
|
||||
general = {
|
||||
@@ -153,6 +154,11 @@
|
||||
};
|
||||
};
|
||||
|
||||
device = {
|
||||
name = "syna329a:00-06cb:cd4f-touchpad";
|
||||
sensitivity = 0.5;
|
||||
};
|
||||
|
||||
gestures = {
|
||||
workspace_swipe = true;
|
||||
workspace_swipe_fingers = 4;
|
||||
@@ -185,9 +191,11 @@
|
||||
};
|
||||
|
||||
monitor = [
|
||||
"eDP-1, 3840x2160, 0x0, 1.5" # the internal laptop monitor
|
||||
# Samsung monitor at irchel (matching the description)
|
||||
# "desc:Samsung Electric Company LS27D80xU HK7X800803, 3840x2160, auto-up, 1.5"
|
||||
"eDP-1, 3840x2160, 0x0, 1.666667" # the internal laptop monitor
|
||||
# Samsung monitors at irchel (matching the description)
|
||||
# "desc:Samsung Electric Company LS27D80xU HK7X800803, 3840x2160, auto-up, 1.8"
|
||||
"desc:Samsung Electric Company LS27D80xU HNAX600169, 2560x1440@59.95, auto-up, 1"
|
||||
|
||||
", preferred, auto-up, auto" # automatically add any newly detected monitor
|
||||
];
|
||||
|
||||
@@ -200,9 +208,9 @@
|
||||
"NIXOS_OZONE_WL, 1"
|
||||
"ELECTRON_OZONE_PLATFORM_HINT, wayland"
|
||||
# set the scale factor for GDK apps
|
||||
"GDK_SCALE, 1.5"
|
||||
"GDK_SCALE, 1.7"
|
||||
# set the scale factor for QT apps
|
||||
"QT_SCALE_FACTOR, 1.5"
|
||||
"QT_SCALE_FACTOR, 1.7"
|
||||
# set the scale factor for GTK apps
|
||||
];
|
||||
};
|
||||
|
@@ -3,6 +3,13 @@
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
|
||||
# prevent the screen being shown for a split second
|
||||
animations = {
|
||||
animation = "fadeIn, 0, 0, linear";
|
||||
};
|
||||
|
||||
general = {
|
||||
# immediately lock the screen
|
||||
grace = 0;
|
||||
|
@@ -58,6 +58,7 @@
|
||||
"format" = "{}";
|
||||
"rewrite" = {
|
||||
"(.*) — Mozilla Firefox" = "$1";
|
||||
"(.*) — Zen Browser" = "$1";
|
||||
"(.*) - fish" = "> [$1]";
|
||||
"(.*) - Visual Studio Code" = "$1";
|
||||
};
|
||||
@@ -193,7 +194,7 @@
|
||||
* {
|
||||
font-family: "FiraCode Nerd Font";
|
||||
font-weight: bold;
|
||||
font-size: 22px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
|
@@ -1,7 +1,6 @@
|
||||
{pkgs, ...}:
|
||||
{pkgs, ...}:
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.obsidian
|
||||
];
|
||||
|
||||
}
|
||||
|
20
modules/home-manager/ssh.nix
Normal file
20
modules/home-manager/ssh.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
programs.ssh.enable = true;
|
||||
programs.ssh.matchBlocks = {
|
||||
ela = lib.hm.dag.entryBefore ["eiger"] {
|
||||
hostname = "ela.cscs.ch";
|
||||
user = "rmoll";
|
||||
identityFile = "${config.home.homeDirectory}/.ssh/cscs-key";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
|
||||
eiger = {
|
||||
hostname = "eiger.cscs.ch";
|
||||
user = "rmoll";
|
||||
identityFile = "${config.home.homeDirectory}/.ssh/cscs-key";
|
||||
identitiesOnly = true;
|
||||
proxyJump = "ela";
|
||||
};
|
||||
};
|
||||
}
|
@@ -44,10 +44,10 @@
|
||||
};
|
||||
|
||||
sizes = {
|
||||
applications = 15;
|
||||
desktop = 15;
|
||||
applications = 12;
|
||||
desktop = 12;
|
||||
popups = 12;
|
||||
terminal = 15;
|
||||
terminal = 12;
|
||||
};
|
||||
};
|
||||
|
||||
|
@@ -10,10 +10,10 @@
|
||||
];
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = false;
|
||||
powerOnBoot = true;
|
||||
settings = {
|
||||
General = {
|
||||
Name = "Hello";
|
||||
Name = "Nixtre";
|
||||
ControllerMode = "dual";
|
||||
FastConnectable = "true";
|
||||
Experimental = "true";
|
||||
|
4
modules/nixos/ld.nix
Normal file
4
modules/nixos/ld.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{config, ...}:
|
||||
{
|
||||
programs.nix-ld.enable = true;
|
||||
}
|
@@ -16,9 +16,9 @@
|
||||
hardware.graphics.enable = lib.mkForce true;
|
||||
hardware.nvidia = lib.mkForce {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
# features not available for the old graphics card
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
# features not available for the old graphics card
|
||||
open = false;
|
||||
nvidiaSettings = false;
|
||||
|
||||
|
@@ -21,6 +21,44 @@
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
# services.superfreq = {
|
||||
# enable = true;
|
||||
# settings = {
|
||||
# charger = {
|
||||
# governor = "performance";
|
||||
# turbo = "auto";
|
||||
# epp = "performance";
|
||||
# epb = "balance_performance";
|
||||
# platform_profile = "performance";
|
||||
# };
|
||||
|
||||
# battery = {
|
||||
# governor = "powersave";
|
||||
# turbo = "auto";
|
||||
# epp = "power";
|
||||
# epb = "balance_power";
|
||||
# platform_profile = "low-power";
|
||||
# min_freq_mhz = 800;
|
||||
# max_freq_mhz = 2500;
|
||||
|
||||
# };
|
||||
|
||||
# daemon = {
|
||||
# poll_interval_sec = 10;
|
||||
# adaptive_interval = true;
|
||||
# min_poll_interval_sec = 1;
|
||||
# max_poll_interval_sec = 30;
|
||||
# throttle_on_battery = true;
|
||||
# };
|
||||
# battery_charge_thresholds = [50 90];
|
||||
# };
|
||||
|
||||
|
||||
# # logind.lidSwitchExternalPower = "ignore"; # prevent lid switch from triggering a suspend
|
||||
# };
|
||||
|
||||
systemd.sleep.extraConfig = ''
|
||||
AllowSuspend=yes
|
||||
AllowHibernation=yes
|
||||
|
Reference in New Issue
Block a user