some fuckery with wezterm and stuff i dunno anymore and i really need to sleep honk shoooooo

This commit is contained in:
xqtc161 2024-03-19 22:08:38 +01:00
parent 7c617d7a0f
commit 5e4a1b08c5
6 changed files with 92 additions and 33 deletions

View file

@ -7,7 +7,7 @@
}: { }: {
#nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"]; #nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"];
nix.settings = { nix.settings = {
trusted-users = [ "xqtc" ]; trusted-users = ["xqtc"];
substituters = [ substituters = [
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
]; ];

View file

@ -227,11 +227,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710714957, "lastModified": 1710796387,
"narHash": "sha256-eZCxuF58YWgaJMMRrn8oRkwRhxooe5kBS/s2wRVr9PA=", "narHash": "sha256-ve/vpbby+4LPJrlNGqGyuzZMLL7zHUZhvvKu1StsaC8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "7b3fca5adcf6c709874a8f2e0c364fe9c58db989", "rev": "baf7659448ffa6ab6870dba1ca681a4868c3068a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -249,11 +249,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710281778, "lastModified": 1710714957,
"narHash": "sha256-bvWr9vvBrAxb44kHM3H3cY/uQg+4pYP1BM/Nu3e/7V8=", "narHash": "sha256-eZCxuF58YWgaJMMRrn8oRkwRhxooe5kBS/s2wRVr9PA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "49a266d2ca59df8a03249550e73a54626181b65d", "rev": "7b3fca5adcf6c709874a8f2e0c364fe9c58db989",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -270,11 +270,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710281379, "lastModified": 1710717205,
"narHash": "sha256-uFo9hxt982L3nFJeweW4Gip2esiGrIQlbvEGrNTh4AY=", "narHash": "sha256-Wf3gHh5uV6W1TV/A8X8QJf99a5ypDSugY4sNtdJDe0A=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "d9ea313bc4851670dc99c5cc979cb79750e7d670", "rev": "bcc8afd06e237df060c85bad6af7128e05fd61a3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -285,11 +285,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1710622004, "lastModified": 1710783728,
"narHash": "sha256-6zR642tXcZzzk3C8BHxlCrR0yh8z8zMXLiuXpWDIpX0=", "narHash": "sha256-eIsfu3c9JUBgm3cURSKTXLEI9Dlk1azo+MWKZVqrmkc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "968952f950a59dee9ed1e8799dda38c6dfa1bad3", "rev": "1e679b9a9970780cd5d4dfe755a74a8f96d33388",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -317,11 +317,11 @@
}, },
"nixpkgs-master": { "nixpkgs-master": {
"locked": { "locked": {
"lastModified": 1710743772, "lastModified": 1710797693,
"narHash": "sha256-u2DncftQZEZElNeJIHkRHkq+1e/+z4c1bKCGan0LVcg=", "narHash": "sha256-TvIMBhgfDlYDC7CAmO8oLU4OLqVTGf1ePv50HFoKWTY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b3fd69b2616bf555b1de1b5e4585c125951ee018", "rev": "cf0327ca4ddb15907d25f7dc5b9e6663ff8df4cb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -376,11 +376,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1710634405, "lastModified": 1710790872,
"narHash": "sha256-e+EHQGqqjpvkln6vYmiAcafFKbTaze3XF7DEjDZyXGY=", "narHash": "sha256-Y461cP8iiWycPCREOGb5zhz3bj57PNb0Uc4cwygOMKM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "939530edca29b44e65d8bd606ef3485346510ebe", "rev": "303b9ca2c0c043ccd0e33aae0960d26f24cf5088",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -21,6 +21,11 @@ config.keys = {
mods = 'CTRL', mods = 'CTRL',
action = wezterm.action.SpawnTab 'DefaultDomain', action = wezterm.action.SpawnTab 'DefaultDomain',
}, },
{
key = 's',
mods = 'CTRL | SHIFT',
action = wezterm.action.PaneSelect
},
{ {
key = "LeftArrow", key = "LeftArrow",
mods = 'CTRL | SHIFT', mods = 'CTRL | SHIFT',
@ -60,6 +65,24 @@ for i = 1, 8 do
}) })
end end
wezterm.on('update-status', function(window, pane)
local date = wezterm.strftime '%a %b %-d %H:%M:%S |'
local bat = ''
for _, b in ipairs(wezterm.battery_info()) do
bat = '|🔋 ' .. string.format('%.0f%%', b.state_of_charge * 100) .. ' | '
end
window:set_right_status(wezterm.format {
{ Text = bat .. date },
})
end)
wezterm.on('update-status', function(window, pane)
window:set_left_status(wezterm.format {
{ Text = '| λ |' },
})
end)
config.hide_tab_bar_if_only_one_tab = true config.hide_tab_bar_if_only_one_tab = true
config.use_fancy_tab_bar = false config.use_fancy_tab_bar = false
config.text_background_opacity = .4 config.text_background_opacity = .4

View file

@ -22,5 +22,16 @@
variant = "mocha"; variant = "mocha";
}; };
}; };
#gtk3.extraConfig = {
# Settings = ''
# gtk-application-prefer-dark-theme=1
# '';
#};
gtk4.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
}; };
home.sessionVariables.GTK_THEME = "palenight";
} }

View file

@ -11,7 +11,6 @@
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
#./apple-silicon-support
inputs.apple-silicon.nixosModules.apple-silicon-support inputs.apple-silicon.nixosModules.apple-silicon-support
../../../common ../../../common
#../../antivirus.nix #../../antivirus.nix
@ -21,7 +20,9 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
hardware.asahi.peripheralFirmwareDirectory = ./firmware; hardware.asahi.peripheralFirmwareDirectory = ./firmware;
hardware.asahi.useExperimentalGPUDriver = true; hardware.asahi.useExperimentalGPUDriver = true;
hardware.asahi.experimentalGPUInstallMode = "overlay"; # TODO: this is UGLY
# only builds with `--impure` which SUCKS I HATE THIS RAAAH
hardware.asahi.experimentalGPUInstallMode = "replace";
hardware.asahi.withRust = true; hardware.asahi.withRust = true;
hardware.opengl.enable = true; hardware.opengl.enable = true;
hardware.opengl.driSupport = true; hardware.opengl.driSupport = true;
@ -40,7 +41,7 @@
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone. # Set your time zone.
# time.timeZone = "Europe/Amsterdam"; time.timeZone = "Europe/Berlin";
# Configure network proxy if necessary # Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";
@ -56,8 +57,9 @@
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;
services.xserver.desktopManager.plasma6.enable = true; services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.sddm.enable = true; services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11 # Configure keymap in X11
# services.xserver.xkb.layout = "us"; # services.xserver.xkb.layout = "us";
@ -67,16 +69,27 @@
# services.printing.enable = true; # services.printing.enable = true;
# Enable sound. # Enable sound.
# sound.enable = true; sound.enable = true;
# hardware.pulseaudio.enable = true; # hardware.pulseaudio.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
security.polkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
jack.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.xqtc = { users.users.xqtc = {
isNormalUser = true; isNormalUser = true;
extraGroups = ["wheel"]; # Enable sudo for the user. extraGroups = ["wheel" "audio"]; # Enable sudo for the user.
packages = with pkgs; [ packages = with pkgs; [
tree tree
]; ];
@ -102,18 +115,25 @@
wl-clipboard wl-clipboard
xclip xclip
gnomeExtensions.appindicator
gnomeExtensions.tray-icons-reloaded
gnomeExtensions.blur-my-shell
jellyfin jellyfin
jellyfin-web jellyfin-web
jellyfin-ffmpeg jellyfin-ffmpeg
]; ];
services.udev.packages = with pkgs; [gnome.gnome-settings-daemon];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; programs.mtr.enable = true;
# programs.gnupg.agent = { programs.gnupg.agent = {
# enable = true; enable = true;
# enableSSHSupport = true; enableSSHSupport = true;
# }; };
services.resolved.enable = true;
programs.dconf.enable = true; programs.dconf.enable = true;
# List services that you want to enable: # List services that you want to enable:

View file

@ -27,7 +27,12 @@
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = []; swapDevices = [
{
device = "/var/lib/swapfile";
size = 8 * 1024;
}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's