fixes and formatting
This commit is contained in:
parent
a6c96c23ae
commit
80cf48f1e8
71 changed files with 746 additions and 1110 deletions
|
|
@ -2,14 +2,17 @@
|
|||
dirUtils,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
age = {
|
||||
identityPaths = [
|
||||
"/home/quadradical/.ssh/id_ed25519"
|
||||
];
|
||||
secrets = lib.listToAttrs (map (path: {
|
||||
name = lib.last (builtins.split "/" (toString path));
|
||||
value.file = path;
|
||||
}) (dirUtils.dirFiles ".age" ../../secrets));
|
||||
secrets = lib.listToAttrs (
|
||||
map (path: {
|
||||
name = lib.last (builtins.split "/" (toString path));
|
||||
value.file = path;
|
||||
}) (dirUtils.dirFiles ".age" ../../secrets)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
{inputs, ...}: {environment.etc."backup".source = inputs.self;}
|
||||
{ inputs, ... }:
|
||||
{
|
||||
environment.etc."backup".source = inputs.self;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,4 +2,7 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {environment.shellAliases.cat = "${lib.getExe pkgs.bat} --theme Nord";}
|
||||
}:
|
||||
{
|
||||
environment.shellAliases.cat = "${lib.getExe pkgs.bat} --theme Nord";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
services.dnsproxy = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
upstream = ["https://base.dns.mullvad.net/dns-query"];
|
||||
listen-addrs = ["127.0.0.1"];
|
||||
fallback = ["1.1.1.1"];
|
||||
upstream = [ "https://base.dns.mullvad.net/dns-query" ];
|
||||
listen-addrs = [ "127.0.0.1" ];
|
||||
fallback = [ "1.1.1.1" ];
|
||||
bootstrap = fallback;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1 +1,6 @@
|
|||
{nix.settings.experimental-features = ["nix-command" "flakes"];}
|
||||
{
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,4 +2,7 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {environment.shellAliases.ls = "${lib.getExe pkgs.eza} --all --icons --hyperlink --group-directories-first --color=always";}
|
||||
}:
|
||||
{
|
||||
environment.shellAliases.ls = "${lib.getExe pkgs.eza} --all --icons --hyperlink --group-directories-first --color=always";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,97 +2,102 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
environment.shellAliases.neofetch = let
|
||||
color = "#4E94E4";
|
||||
in "${lib.getExe pkgs.fastfetch} --config ${pkgs.writers.writeJSON "fastfetch.json" {
|
||||
logo = {
|
||||
height = 18;
|
||||
type = "chafa";
|
||||
source = ../../logo.png;
|
||||
};
|
||||
display = {
|
||||
separator = " ";
|
||||
color.keys = color;
|
||||
};
|
||||
modules = [
|
||||
"break"
|
||||
}:
|
||||
{
|
||||
environment.shellAliases.neofetch =
|
||||
let
|
||||
color = "#4E94E4";
|
||||
in
|
||||
"${lib.getExe pkgs.fastfetch} --config ${
|
||||
pkgs.writers.writeJSON "fastfetch.json" {
|
||||
logo = {
|
||||
height = 18;
|
||||
type = "chafa";
|
||||
source = ../../logo.png;
|
||||
};
|
||||
display = {
|
||||
separator = " ";
|
||||
color.keys = color;
|
||||
};
|
||||
modules = [
|
||||
"break"
|
||||
|
||||
{
|
||||
type = "custom";
|
||||
format = "{#${color}}┌─────────{#} Hardware Information {#${color}}──────────";
|
||||
}
|
||||
{
|
||||
type = "cpu";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "gpu";
|
||||
key = "├─";
|
||||
}
|
||||
{
|
||||
type = "board";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "{#${color}}┌─────────{#} Hardware Information {#${color}}──────────";
|
||||
}
|
||||
{
|
||||
type = "cpu";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "gpu";
|
||||
key = "├─";
|
||||
}
|
||||
{
|
||||
type = "board";
|
||||
key = "├";
|
||||
}
|
||||
|
||||
{
|
||||
type = "custom";
|
||||
format = "{#${color}}├─────────{#} Software Information {#${color}}──────────";
|
||||
}
|
||||
{
|
||||
type = "os";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "memory";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "disk";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "de";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "shell";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "font";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "wmtheme";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "icons";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "cursor";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "packages";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "{#${color}}└────────────────────────────────────────";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "{#${color}}├─────────{#} Software Information {#${color}}──────────";
|
||||
}
|
||||
{
|
||||
type = "os";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "memory";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "disk";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "de";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "shell";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "font";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "wmtheme";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "icons";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "cursor";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "packages";
|
||||
key = "├";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "{#${color}}└────────────────────────────────────────";
|
||||
}
|
||||
|
||||
"break"
|
||||
];
|
||||
}}";
|
||||
"break"
|
||||
];
|
||||
}
|
||||
}";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
|
|
@ -7,6 +8,6 @@
|
|||
'';
|
||||
};
|
||||
|
||||
environment.shells = [pkgs.fish];
|
||||
environment.shells = [ pkgs.fish ];
|
||||
users.defaultUserShell = pkgs.fish;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
{pkgs, ...}: {environment.shellAliases.free = "${pkgs.procps}/bin/free -h";}
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.shellAliases.free = "${pkgs.procps}/bin/free -h";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
config = {
|
||||
|
|
@ -12,9 +13,9 @@
|
|||
signingKey = builtins.elemAt (import ../../secrets/keys.nix) 0;
|
||||
};
|
||||
url = {
|
||||
"git@github.com:".insteadOf = ["https://github.com"];
|
||||
"git@codeberg.org:".insteadOf = ["https://codeberg.org"];
|
||||
"git@git.federated.nexus:".insteadOf = ["https://git.federated.nexus"];
|
||||
"git@github.com:".insteadOf = [ "https://github.com" ];
|
||||
"git@codeberg.org:".insteadOf = [ "https://codeberg.org" ];
|
||||
"git@git.federated.nexus:".insteadOf = [ "https://git.federated.nexus" ];
|
||||
};
|
||||
init.defaultBranch = "main";
|
||||
commit.gpgsign = true;
|
||||
|
|
@ -23,16 +24,18 @@
|
|||
};
|
||||
};
|
||||
environment = {
|
||||
systemPackages = [pkgs.gh];
|
||||
shellAliases = let
|
||||
gitExe = lib.meta.getExe pkgs.git;
|
||||
ghExe = lib.meta.getExe pkgs.gh;
|
||||
in {
|
||||
clone = "${ghExe} repo clone";
|
||||
create = "${ghExe} repo create";
|
||||
systemPackages = [ pkgs.gh ];
|
||||
shellAliases =
|
||||
let
|
||||
gitExe = lib.meta.getExe pkgs.git;
|
||||
ghExe = lib.meta.getExe pkgs.gh;
|
||||
in
|
||||
{
|
||||
clone = "${ghExe} repo clone";
|
||||
create = "${ghExe} repo create";
|
||||
|
||||
push = "${gitExe} push";
|
||||
commit = "${gitExe} commit -am";
|
||||
};
|
||||
push = "${gitExe} push";
|
||||
commit = "${gitExe} commit -am";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment = {
|
||||
systemPackages = [pkgs.micro];
|
||||
systemPackages = [ pkgs.micro ];
|
||||
sessionVariables.EDITOR = "micro";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
fd
|
||||
glib
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{system.stateVersion = "23.11";}
|
||||
{ system.stateVersion = "23.11"; }
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
{pkgs, ...}: {environment.shellAliases.rm = "${pkgs.glib}/bin/gio trash";}
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.shellAliases.rm = "${pkgs.glib}/bin/gio trash";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{config, ...}: {
|
||||
{ config, ... }:
|
||||
{
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users = {
|
||||
|
|
@ -7,7 +8,7 @@
|
|||
isNormalUser = true;
|
||||
hashedPasswordFile = config.age.secrets."password.age".path;
|
||||
description = "QuadRadical";
|
||||
extraGroups = ["wheel"];
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
services.udev.packages = [pkgs.android-udev-rules];
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.udev.packages = [ pkgs.android-udev-rules ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@
|
|||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
kernelParams = ["sysrq_always_enabled=1"];
|
||||
kernelParams = [ "sysrq_always_enabled=1" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
fonts = {
|
||||
packages = with pkgs; [twitter-color-emoji];
|
||||
fontconfig.defaultFonts.emoji = ["Twitter Color Emoji"];
|
||||
packages = with pkgs; [ twitter-color-emoji ];
|
||||
fontconfig.defaultFonts.emoji = [ "Twitter Color Emoji" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{environment.etc."launch-rl.bat".source = ./launch-rl.bat;}
|
||||
{ environment.etc."launch-rl.bat".source = ./launch-rl.bat; }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment = {
|
||||
systemPackages = [pkgs.mangohud];
|
||||
systemPackages = [ pkgs.mangohud ];
|
||||
sessionVariables.MANGOHUD_CONFIGFILE = ./mangohud.conf;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{programs.noisetorch.enable = true;}
|
||||
{ programs.noisetorch.enable = true; }
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [obs-pipewire-audio-capture];
|
||||
plugins = with pkgs.obs-studio-plugins; [ obs-pipewire-audio-capture ];
|
||||
enableVirtualCamera = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
gimp
|
||||
gale
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.ratbagd.enable = true;
|
||||
environment.systemPackages = [pkgs.piper];
|
||||
environment.systemPackages = [ pkgs.piper ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,20 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
hardware.keyboard.qmk.enable = true;
|
||||
environment.systemPackages = [
|
||||
(pkgs.qmk.overrideAttrs (oldAttrs: {
|
||||
propagatedBuildInputs = (oldAttrs.propagatedBuildInputs or []) ++ [pkgs.python3.pkgs.appdirs];
|
||||
propagatedBuildInputs = (oldAttrs.propagatedBuildInputs or [ ]) ++ [ pkgs.python3.pkgs.appdirs ];
|
||||
}))
|
||||
];
|
||||
|
||||
users.users.quadradical.maid.file.xdg_config."qmk/qmk.ini".source = toString ((pkgs.formats.ini {}).generate "qmk.ini" {
|
||||
user = {
|
||||
qmk_home = "/home/quadradical/Documents/Code/qmk_firmware";
|
||||
overlay_dir = "/home/quadradical/Documents/Code/qmk_userspace";
|
||||
keyboard = "keychron/v1_max/ansi_encoder";
|
||||
keymap = "default";
|
||||
};
|
||||
});
|
||||
users.users.quadradical.maid.file.xdg_config."qmk/qmk.ini".source = toString (
|
||||
(pkgs.formats.ini { }).generate "qmk.ini" {
|
||||
user = {
|
||||
qmk_home = "/home/quadradical/Documents/Code/qmk_firmware";
|
||||
overlay_dir = "/home/quadradical/Documents/Code/qmk_userspace";
|
||||
keyboard = "keychron/v1_max/ansi_encoder";
|
||||
keymap = "default";
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
extraCompatPackages = [pkgs.proton-ge-bin];
|
||||
extraCompatPackages = [ pkgs.proton-ge-bin ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
programs.virt-manager.enable = true;
|
||||
environment.systemPackages = [pkgs.quickemu];
|
||||
environment.systemPackages = [ pkgs.quickemu ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,13 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
(vscode-with-extensions.override {
|
||||
vscode = vscodium;
|
||||
vscodeExtensions = with vscode-extensions;
|
||||
vscodeExtensions =
|
||||
with vscode-extensions;
|
||||
[
|
||||
mkhl.direnv
|
||||
eamodio.gitlens
|
||||
|
|
@ -39,7 +41,7 @@
|
|||
|
||||
users.users.quadradical.maid.file.xdg_config = {
|
||||
"VSCodium/User/settings.json".text = builtins.toJSON {
|
||||
"arb-editor.suppressedWarnings" = ["missing_metadata_for_key"];
|
||||
"arb-editor.suppressedWarnings" = [ "missing_metadata_for_key" ];
|
||||
"dart.debugExternalPackageLibraries" = true;
|
||||
"dart.debugSdkLibraries" = true;
|
||||
"redhat.telemetry.enabled" = false;
|
||||
|
|
@ -67,7 +69,7 @@
|
|||
"window.menuBarVisibility" = "compact";
|
||||
"git.confirmSync" = false;
|
||||
"editor.detectIndentation" = false;
|
||||
"errorLens.enabledDiagnosticLevels" = ["error"];
|
||||
"errorLens.enabledDiagnosticLevels" = [ "error" ];
|
||||
"git.mergeEditor" = true;
|
||||
"terminal.integrated.shellIntegration.enabled" = false;
|
||||
"gitlens.currentLine.enabled" = false;
|
||||
|
|
@ -101,10 +103,12 @@
|
|||
"nix.serverPath" = lib.meta.getExe pkgs.nil;
|
||||
"nix.serverSettings" = {
|
||||
"nil" = {
|
||||
"formatting" = {"command" = [(lib.getExe pkgs.nixfmt)];};
|
||||
"formatting" = {
|
||||
"command" = [ (lib.getExe pkgs.nixfmt) ];
|
||||
};
|
||||
};
|
||||
};
|
||||
"indentRainbow.ignoreErrorLanguages" = ["*"];
|
||||
"indentRainbow.ignoreErrorLanguages" = [ "*" ];
|
||||
"dart.runPubGetOnPubspecChanges" = "never";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = [pkgs.adw-gtk3];
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [ pkgs.adw-gtk3 ];
|
||||
users.users.quadradical.maid.gsettings.settings.org.gnome.desktop.interface.gtk-theme = "adw-gtk3";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,14 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
fonts = {
|
||||
packages = with pkgs; [inter nerd-fonts.fira-code];
|
||||
packages = with pkgs; [
|
||||
inter
|
||||
nerd-fonts.fira-code
|
||||
];
|
||||
fontconfig.defaultFonts = rec {
|
||||
serif = ["Inter"];
|
||||
serif = [ "Inter" ];
|
||||
sansSerif = serif;
|
||||
monospace = ["FiraCode Nerd Font"];
|
||||
monospace = [ "FiraCode Nerd Font" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,11 @@
|
|||
users.users.quadradical.maid.gsettings.settings.org.gnome = {
|
||||
desktop = {
|
||||
wm.preferences.focus-mode = "mouse";
|
||||
search-providers.sort-order = ["org.gnome.Contacts.desktop" "org.gnome.Documents.desktop" "org.gnome.Nautilus.desktop"];
|
||||
search-providers.sort-order = [
|
||||
"org.gnome.Contacts.desktop"
|
||||
"org.gnome.Documents.desktop"
|
||||
"org.gnome.Nautilus.desktop"
|
||||
];
|
||||
|
||||
background = rec {
|
||||
picture-uri = "file://${./background.jpg}";
|
||||
|
|
@ -41,11 +45,15 @@
|
|||
|
||||
shell = {
|
||||
remember-mount-password = true;
|
||||
favorite-apps = ["librewolf.desktop" "org.gnome.Geary.desktop" "org.gnome.Nautilus.desktop"];
|
||||
favorite-apps = [
|
||||
"librewolf.desktop"
|
||||
"org.gnome.Geary.desktop"
|
||||
"org.gnome.Nautilus.desktop"
|
||||
];
|
||||
};
|
||||
|
||||
mutter.edge-tiling = false;
|
||||
system.location.enabled = true;
|
||||
settings-daemon.plugins.media-keys.calculator-static = [];
|
||||
settings-daemon.plugins.media-keys.calculator-static = [ ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
environment = {
|
||||
systemPackages = with pkgs.gnomeExtensions; [
|
||||
valent
|
||||
|
|
@ -102,8 +103,8 @@
|
|||
allow-zero-brightness = true;
|
||||
button-location = 1;
|
||||
ddcutil-binary-path = lib.meta.getExe pkgs.ddcutil;
|
||||
decrease-brightness-shortcut = ["XF86MonBrightnessDown"];
|
||||
increase-brightness-shortcut = ["XF86MonBrightnessUp"];
|
||||
decrease-brightness-shortcut = [ "XF86MonBrightnessDown" ];
|
||||
increase-brightness-shortcut = [ "XF86MonBrightnessUp" ];
|
||||
hide-system-indicator = true;
|
||||
only-all-slider = true;
|
||||
position-system-menu = 3.0;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{hardware.graphics.enable = true;}
|
||||
{ hardware.graphics.enable = true; }
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
config,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
environment.etc."librewolf/policies/policies.json".source = config.environment.etc."firefox/policies/policies.json".source;
|
||||
}:
|
||||
{
|
||||
environment.etc."librewolf/policies/policies.json".source =
|
||||
config.environment.etc."firefox/policies/policies.json".source;
|
||||
|
||||
users.users.quadradical.maid.file.home = {
|
||||
".librewolf/profiles.ini".source = (pkgs.formats.ini {}).generate "profiles.ini" {
|
||||
".librewolf/profiles.ini".source = (pkgs.formats.ini { }).generate "profiles.ini" {
|
||||
General = {
|
||||
StartWithLastProfile = 1;
|
||||
};
|
||||
|
|
@ -20,31 +22,37 @@
|
|||
};
|
||||
};
|
||||
|
||||
".librewolf/quadradical/chrome".source =
|
||||
toString
|
||||
(pkgs.symlinkJoin {
|
||||
".librewolf/quadradical/chrome".source = toString (
|
||||
pkgs.symlinkJoin {
|
||||
name = "firefox-gnome-theme";
|
||||
paths = [./. inputs.firefox-gnome-theme];
|
||||
});
|
||||
paths = [
|
||||
./.
|
||||
inputs.firefox-gnome-theme
|
||||
];
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.librewolf;
|
||||
|
||||
autoConfig = lib.concatStringsSep "\n" (lib.mapAttrsToList (pref: value: "lockPref(\"${pref}\", ${builtins.toJSON value});") {
|
||||
"webgl.disabled" = false;
|
||||
"browser.tabs.groups.enabled" = false;
|
||||
"media.peerconnection.enabled" = true;
|
||||
"media.webrtc.hw.h264.enabled" = false;
|
||||
"privacy.resistFingerprinting" = false;
|
||||
"privacy.fingerprintingProtection" = true;
|
||||
"browser.discovery.containers.enabled" = false;
|
||||
"svg.context-properties.content.enabled" = true;
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"privacy.fingerprintingProtection.overrides" = "+AllTargets,-CSSPrefersColorScheme,-JSDateTimeUTC";
|
||||
"browser.uiCustomization.state" = "{\"placements\":{\"widget-overflow-fixed-list\":[],\"unified-extensions-area\":[],\"nav-bar\":[\"back-button\",\"forward-button\",\"stop-reload-button\",\"urlbar-container\",\"downloads-button\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"new-tab-button\",\"alltabs-button\"],\"PersonalToolbar\":[\"personal-bookmarks\"]},\"seen\":[\"save-to-pocket-button\",\"developer-button\"],\"dirtyAreaCache\":[\"nav-bar\",\"PersonalToolbar\",\"toolbar-menubar\",\"TabsToolbar\"],\"currentVersion\":19}";
|
||||
});
|
||||
autoConfig = lib.concatStringsSep "\n" (
|
||||
lib.mapAttrsToList (pref: value: "lockPref(\"${pref}\", ${builtins.toJSON value});") {
|
||||
"webgl.disabled" = false;
|
||||
"browser.tabs.groups.enabled" = false;
|
||||
"media.peerconnection.enabled" = true;
|
||||
"media.webrtc.hw.h264.enabled" = false;
|
||||
"privacy.resistFingerprinting" = false;
|
||||
"privacy.fingerprintingProtection" = true;
|
||||
"browser.discovery.containers.enabled" = false;
|
||||
"svg.context-properties.content.enabled" = true;
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"privacy.fingerprintingProtection.overrides" = "+AllTargets,-CSSPrefersColorScheme,-JSDateTimeUTC";
|
||||
"browser.uiCustomization.state" =
|
||||
"{\"placements\":{\"widget-overflow-fixed-list\":[],\"unified-extensions-area\":[],\"nav-bar\":[\"back-button\",\"forward-button\",\"stop-reload-button\",\"urlbar-container\",\"downloads-button\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"new-tab-button\",\"alltabs-button\"],\"PersonalToolbar\":[\"personal-bookmarks\"]},\"seen\":[\"save-to-pocket-button\",\"developer-button\"],\"dirtyAreaCache\":[\"nav-bar\",\"PersonalToolbar\",\"toolbar-menubar\",\"TabsToolbar\"],\"currentVersion\":19}";
|
||||
}
|
||||
);
|
||||
|
||||
policies = {
|
||||
ShowHomeButton = false;
|
||||
|
|
@ -115,29 +123,35 @@
|
|||
Locked = true;
|
||||
};
|
||||
|
||||
ExtensionSettings = lib.mkForce (lib.listToAttrs (map (id: {
|
||||
name = id;
|
||||
value = {
|
||||
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${id}/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
};
|
||||
}) [
|
||||
"historyblock@kain"
|
||||
"uBlock0@raymondhill.net"
|
||||
"sponsorBlocker@ajay.app"
|
||||
"firefox-addon@pronoundb.org"
|
||||
"jid1-MnnxcxisBPnSXQ@jetpack" # Privacy Badger
|
||||
"frankerfacez@frankerfacez.com"
|
||||
"7esoorv3@alefvanoon.anonaddy.me" # LibRedirect
|
||||
"{de621c74-2aa6-4c91-a2da-28d445b66bab}" # YouTube Livestreams Theater Mode
|
||||
"{cf3dba12-a848-4f68-8e2d-f9fadc0721de}" # Google Lighthouse
|
||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}" # Bitwarden
|
||||
"{4ce83447-8255-43c2-b8f7-e02eb8c2cc39}" # Draw on Page
|
||||
"{ac34afe8-3a2e-4201-b745-346c0cf6ec7d}" # Better Youtube Shorts
|
||||
"{2327d818-55d3-441d-aea2-8b44aa2cb9aa}" # Toggle Website Colors
|
||||
"{a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}" # User-Agent Switcher and Manager
|
||||
"enhancerforyoutube@maximerf.addons.mozilla.org"
|
||||
]));
|
||||
ExtensionSettings = lib.mkForce (
|
||||
lib.listToAttrs (
|
||||
map
|
||||
(id: {
|
||||
name = id;
|
||||
value = {
|
||||
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${id}/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
};
|
||||
})
|
||||
[
|
||||
"historyblock@kain"
|
||||
"uBlock0@raymondhill.net"
|
||||
"sponsorBlocker@ajay.app"
|
||||
"firefox-addon@pronoundb.org"
|
||||
"jid1-MnnxcxisBPnSXQ@jetpack" # Privacy Badger
|
||||
"frankerfacez@frankerfacez.com"
|
||||
"7esoorv3@alefvanoon.anonaddy.me" # LibRedirect
|
||||
"{de621c74-2aa6-4c91-a2da-28d445b66bab}" # YouTube Livestreams Theater Mode
|
||||
"{cf3dba12-a848-4f68-8e2d-f9fadc0721de}" # Google Lighthouse
|
||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}" # Bitwarden
|
||||
"{4ce83447-8255-43c2-b8f7-e02eb8c2cc39}" # Draw on Page
|
||||
"{ac34afe8-3a2e-4201-b745-346c0cf6ec7d}" # Better Youtube Shorts
|
||||
"{2327d818-55d3-441d-aea2-8b44aa2cb9aa}" # Toggle Website Colors
|
||||
"{a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}" # User-Agent Switcher and Manager
|
||||
"enhancerforyoutube@maximerf.addons.mozilla.org"
|
||||
]
|
||||
)
|
||||
);
|
||||
|
||||
SearchEngines = {
|
||||
Default = "Federated Nexus Search";
|
||||
|
|
@ -191,7 +205,11 @@
|
|||
Alias = "hm";
|
||||
}
|
||||
];
|
||||
Remove = ["Bing" "LibRedirect" "Wikipedia (en)"];
|
||||
Remove = [
|
||||
"Bing"
|
||||
"LibRedirect"
|
||||
"Wikipedia (en)"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{networking.networkmanager.wifi.macAddress = "random";}
|
||||
{ networking.networkmanager.wifi.macAddress = "random"; }
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{environment.sessionVariables.NIXOS_OZONE_WL = "1";}
|
||||
{ environment.sessionVariables.NIXOS_OZONE_WL = "1"; }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
services.xserver.excludePackages = [pkgs.xterm];
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.xserver.excludePackages = [ pkgs.xterm ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
tuba
|
||||
gradia
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.ptyxis
|
||||
];
|
||||
|
|
@ -10,7 +11,7 @@
|
|||
|
||||
users.users.quadradical.maid.gsettings.settings.org.gnome.Ptyxis = rec {
|
||||
default-profile-uuid = "quadradical";
|
||||
profile-uuids = [default-profile-uuid];
|
||||
profile-uuids = [ default-profile-uuid ];
|
||||
Profiles.${default-profile-uuid}.palette = "nord";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{nixpkgs.config.allowBroken = true;}
|
||||
{ nixpkgs.config.allowBroken = true; }
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{documentation.man.generateCaches = false;}
|
||||
{ documentation.man.generateCaches = false; }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{crossPkgs, ...}: {
|
||||
{ crossPkgs, ... }:
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
gnome-shell = crossPkgs.gnome-shell;
|
||||
|
|
|
|||
|
|
@ -5,10 +5,12 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
efiArch = pkgs.stdenv.hostPlatform.efiArch;
|
||||
in {
|
||||
imports = ["${modulesPath}/image/repart.nix"];
|
||||
in
|
||||
{
|
||||
imports = [ "${modulesPath}/image/repart.nix" ];
|
||||
boot.loader.grub.enable = false;
|
||||
|
||||
systemd.repart = {
|
||||
|
|
@ -41,9 +43,15 @@ in {
|
|||
partitions = {
|
||||
"20-esp" = {
|
||||
contents = {
|
||||
"/EFI/EDK2-UEFI-SHELL/SHELL.EFI".source = "${crossPkgs.edk2-uefi-shell.overrideAttrs {env.NIX_CFLAGS_COMPILE = "-Wno-error=maybe-uninitialized";}}/shell.efi";
|
||||
"/EFI/BOOT/BOOT${lib.toUpper efiArch}.EFI".source = "${pkgs.systemd}/lib/systemd/boot/efi/systemd-boot${efiArch}.efi";
|
||||
"/EFI/Linux/${config.system.boot.loader.ukiFile}".source = "${config.system.build.uki}/${config.system.boot.loader.ukiFile}";
|
||||
"/EFI/EDK2-UEFI-SHELL/SHELL.EFI".source = "${
|
||||
crossPkgs.edk2-uefi-shell.overrideAttrs {
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-error=maybe-uninitialized";
|
||||
}
|
||||
}/shell.efi";
|
||||
"/EFI/BOOT/BOOT${lib.toUpper efiArch}.EFI".source =
|
||||
"${pkgs.systemd}/lib/systemd/boot/efi/systemd-boot${efiArch}.efi";
|
||||
"/EFI/Linux/${config.system.boot.loader.ukiFile}".source =
|
||||
"${config.system.build.uki}/${config.system.boot.loader.ukiFile}";
|
||||
"/loader/loader.conf".source = crossPkgs.writeText "loader.conf" ''
|
||||
timeout 5
|
||||
console-mode keep
|
||||
|
|
@ -63,8 +71,8 @@ in {
|
|||
};
|
||||
};
|
||||
"30-root" = {
|
||||
storePaths = [config.system.build.toplevel];
|
||||
contents."/boot".source = crossPkgs.runCommand "boot" {} "mkdir $out";
|
||||
storePaths = [ config.system.build.toplevel ];
|
||||
contents."/boot".source = crossPkgs.runCommand "boot" { } "mkdir $out";
|
||||
repartConfig = {
|
||||
Type = "root";
|
||||
Format = "ext4";
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{imports = [../server/ssh.nix];}
|
||||
{ imports = [ ../server/ssh.nix ]; }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
{modulesPath, ...}: {
|
||||
imports = [(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/profiles/qemu-guest.nix")];
|
||||
{ modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{inputs, ...}: {
|
||||
imports = [inputs.disko.nixosModules.disko];
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.disko.nixosModules.disko ];
|
||||
disko.devices.disk.main = {
|
||||
type = "disk";
|
||||
device = "/dev/sda";
|
||||
|
|
@ -17,7 +18,7 @@
|
|||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = ["umask=0077"];
|
||||
mountOptions = [ "umask=0077" ];
|
||||
};
|
||||
};
|
||||
root = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
btop
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
let
|
||||
port = 2222;
|
||||
in {
|
||||
networking.firewall.allowedTCPPorts = [port];
|
||||
in
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [ port ];
|
||||
users.users.quadradical.openssh.authorizedKeys.keys = import ../../secrets/keys.nix;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [port];
|
||||
ports = [ port ];
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
AllowUsers = ["quadradical"];
|
||||
AllowUsers = [ "quadradical" ];
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{nix.settings.trusted-users = ["quadradical"];}
|
||||
{ nix.settings.trusted-users = [ "quadradical" ]; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue