fix: clean up comments, unused docker and podman, etc
configuration.nix 1. Removed stale NixOS boilerplate comments — all the default # Edit this configuration file..., # Bootloader., # Enable the X11 windowing system., # Define a user account..., commented-out options like # services.openssh.enable, firewall comments, and stateVersion comment 2. Removed Docker/docker-compose — virtualisation.docker block, users.groups.docker, "docker" from extraGroups, docker-compose from systemPackages 3. Removed vim from systemPackages 4. Removed environment.variables.EDITOR (helix defaultEditor = true in home.nix handles this) 5. Removed environment.sessionVariables.TERMINAL and environment.variables.RUSTICL_ENABLE (moved to home.nix) 6. Removed /tmp/nix-build tmpfs mount 7. Added networking.firewall.enable = true and # Required for Tailscale comment on checkReversePath 8. Separated v4l2loopback from the RAM section (moved # RAM optimizations comment to above boot.kernel.sysctl) 9. Fixed indentation — systemPackages, programs.appimage, imports, lists reformatted to one-item-per-line 10. Trailing whitespace cleanup throughout home.nix 1. Removed services.podman block 2. Added TERMINAL = "kitty" and RUSTICL_ENABLE = "radeonsi" to home.sessionVariables 3. Replaced 3 repetitive helix language blocks with a single map expression 4. Formatting fixes — function args split to one-per-line, trailing whitespace, list formatting (categories, urls, etc.) 5. Removed blank line before home.sessionVariables
This commit is contained in:
parent
3606cc7425
commit
a386763b86
2 changed files with 66 additions and 170 deletions
68
home.nix
68
home.nix
|
|
@ -1,4 +1,10 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ inputs.zen-browser.homeModules.default ];
|
||||
|
|
@ -105,12 +111,13 @@
|
|||
gnomeExtensions.wifi-qrcode
|
||||
];
|
||||
|
||||
|
||||
# Set environment variables for OpenCL
|
||||
home.sessionVariables = {
|
||||
OCL_ICD_VENDORS = "/etc/OpenCL/vendors";
|
||||
POCL_DEVICES = "cpu";
|
||||
BROWSER = "zen";
|
||||
TERMINAL = "kitty";
|
||||
RUSTICL_ENABLE = "radeonsi";
|
||||
};
|
||||
|
||||
programs.helix = {
|
||||
|
|
@ -125,32 +132,21 @@
|
|||
};
|
||||
};
|
||||
languages = {
|
||||
language = [
|
||||
{
|
||||
name = "rust";
|
||||
end-of-line-diagnostics = "hint";
|
||||
inline-diagnostics = {
|
||||
cursor-line = "hint";
|
||||
other-lines = "hint";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "typescript";
|
||||
end-of-line-diagnostics = "hint";
|
||||
inline-diagnostics = {
|
||||
cursor-line = "hint";
|
||||
other-lines = "hint";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "nix";
|
||||
end-of-line-diagnostics = "hint";
|
||||
inline-diagnostics = {
|
||||
cursor-line = "hint";
|
||||
other-lines = "hint";
|
||||
};
|
||||
}
|
||||
];
|
||||
language =
|
||||
map
|
||||
(name: {
|
||||
inherit name;
|
||||
end-of-line-diagnostics = "hint";
|
||||
inline-diagnostics = {
|
||||
cursor-line = "hint";
|
||||
other-lines = "hint";
|
||||
};
|
||||
})
|
||||
[
|
||||
"rust"
|
||||
"typescript"
|
||||
"nix"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -200,7 +196,7 @@
|
|||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
"dr" = "direnv reload";
|
||||
"dr" = "direnv reload";
|
||||
"da" = "direnv allow";
|
||||
"nfu" = "nix flake update";
|
||||
"c" = "claude";
|
||||
|
|
@ -343,7 +339,7 @@
|
|||
force = true;
|
||||
engines = {
|
||||
"SearXNG" = {
|
||||
urls = [{ template = "https://search.extremist.software/search?q={searchTerms}"; }];
|
||||
urls = [ { template = "https://search.extremist.software/search?q={searchTerms}"; } ];
|
||||
definedAliases = [ "@s" ];
|
||||
};
|
||||
};
|
||||
|
|
@ -358,7 +354,10 @@
|
|||
exec = "kitty --start-as=fullscreen";
|
||||
icon = "kitty";
|
||||
type = "Application";
|
||||
categories = ["System" "TerminalEmulator"];
|
||||
categories = [
|
||||
"System"
|
||||
"TerminalEmulator"
|
||||
];
|
||||
comment = "Fast, featureful, GPU based terminal emulator";
|
||||
};
|
||||
|
||||
|
|
@ -368,7 +367,7 @@
|
|||
exec = "file-roller --extract-here %U";
|
||||
icon = "file-roller";
|
||||
type = "Application";
|
||||
categories = ["Utility"];
|
||||
categories = [ "Utility" ];
|
||||
mimeType = [
|
||||
"application/zip"
|
||||
"application/x-tar"
|
||||
|
|
@ -421,9 +420,4 @@
|
|||
gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
|
||||
# Enable rootless Podman with Home Manager
|
||||
services.podman = {
|
||||
enable = true;
|
||||
autoUpdate.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue