formate all stuff lol

This commit is contained in:
joygnu 2024-08-21 09:02:49 +02:00
parent 49ade3edf5
commit 61deb8951b
38 changed files with 656 additions and 650 deletions

View file

@ -15,8 +15,14 @@
};
};
outputs = { nixpkgs, home-manager, stylix, ... }@inputs: let
systemConfig = { modules }: nixpkgs.lib.nixosSystem {
outputs = {
nixpkgs,
home-manager,
stylix,
...
} @ inputs: let
systemConfig = {modules}:
nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = modules ++ [stylix.nixosModules.stylix];
};

View file

@ -1,7 +1,4 @@
{...}:
{
{...}: {
programs.ags = {
enable = true;
configDir = ./bar;

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
programs.alacritty = {
enable = true;
settings = {

View file

@ -1,7 +1,4 @@
{ inputs, ... }:
{
{inputs, ...}: {
imports = [
./zsh
./gtk

View file

@ -1,7 +1,4 @@
{ inputs, ... }:
{
{inputs, ...}: {
imports = [
./user.nix
];
@ -11,39 +8,91 @@
profiles.joy = {
search.engines = {
"4get" = {
urls = [{
urls = [
{
template = "https://4get.joygnu.org/web";
params = [
{ name = "s"; value = "{searchTerms}"; }
{
name = "s";
value = "{searchTerms}";
}
];
}
];
}];
definedAliases = ["@4get"];
};
};
search.force = true;
search.default = "4get";
bookmarks = [{
bookmarks = [
{
name = "Nix sites";
toolbar = true;
bookmarks = [
{ name = "Packages"; url = "https://search.nixos.org/packages?channel=unstable"; }
{ name = "Homemanager"; url = "https://nix-community.github.io/home-manager/options.xhtml"; }
{ name = "Stylix"; url = "https://stylix.danth.me/options/nixos.html"; }
{ name = "JOYGNU"; url = "https://joygnu.org/"; }
{ name = "Mail"; url = "https://mail.joygnu.org/"; }
{ name = "Server"; url = "https://avoro.eu/cp/clientarea.php?action=productdetails&id=27920"; }
{ name = "Domain"; url = "https://registrar.epik.com/domain-management/host-records"; }
{ name = "Translate"; url = "https://simplytranslate.org/"; }
{ name = "Syncthing"; url = "http://localhost:8384/"; }
{ name = "GitHub"; url = "https://github.com/"; }
{ name = "Codeberg"; url = "https://codeberg.org/"; }
{ name = "Zophar's Domain"; url = "https://www.zophar.net/music"; }
{ name = "Hyprland"; url = "https://wiki.hyprland.org/"; }
{ name = "Monkeytype"; url = "https://monkeytype.com/"; }
{ name = "piped"; url = "https://piped.video/feed/"; }
{
name = "Packages";
url = "https://search.nixos.org/packages?channel=unstable";
}
{
name = "Homemanager";
url = "https://nix-community.github.io/home-manager/options.xhtml";
}
{
name = "Stylix";
url = "https://stylix.danth.me/options/nixos.html";
}
{
name = "JOYGNU";
url = "https://joygnu.org/";
}
{
name = "Mail";
url = "https://mail.joygnu.org/";
}
{
name = "Server";
url = "https://avoro.eu/cp/clientarea.php?action=productdetails&id=27920";
}
{
name = "Domain";
url = "https://registrar.epik.com/domain-management/host-records";
}
{
name = "Translate";
url = "https://simplytranslate.org/";
}
{
name = "Syncthing";
url = "http://localhost:8384/";
}
{
name = "GitHub";
url = "https://github.com/";
}
{
name = "Codeberg";
url = "https://codeberg.org/";
}
{
name = "Zophar's Domain";
url = "https://www.zophar.net/music";
}
{
name = "Hyprland";
url = "https://wiki.hyprland.org/";
}
{
name = "Monkeytype";
url = "https://monkeytype.com/";
}
{
name = "piped";
url = "https://piped.video/feed/";
}
];
}
];
}];
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
ublock-origin
@ -65,8 +114,7 @@
"browser.shell.defaultBrowserCheckCount" = 1;
"privacy.trackingprotection.enabled" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.uiCustomization.state" =
''
"browser.uiCustomization.state" = ''
{
"placements": {
"widget-overflow-fixed-list": [],
@ -110,9 +158,7 @@
"newElementCount": 4
}
'';
};
};
};
}

View file

@ -1,11 +1,7 @@
{ ... } :
{
{...}: {
programs.firefox = {
enable = true;
profiles.joy = {
userChrome = ''
/*================== Gruvbox Theme for Firefox ==================

View file

@ -1,9 +1,6 @@
{ pkgs, ... }:
let
{pkgs, ...}: let
gruvboxPlus = import ./gruvbox-plus.nix {inherit pkgs;};
in
{
in {
home.file = {
".local/share/icons/GruvboxPlus".source = "${gruvboxPlus}";
};

View file

@ -1,9 +1,7 @@
{pkgs}:
let
{pkgs}: let
link = "https://github.com/SylEleuth/gruvbox-plus-icon-pack/releases/download/v3.1/gruvbox-plus-icon-pack-3.1.zip";
in
pkgs.stdenv.mkDerivation
{
name = "gruvbox-plus";

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.helix = {
enable = true;
defaultEditor = true;

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
services.hypridle = {
enable = true;
settings = {

View file

@ -1,5 +1,4 @@
{pkgs, ...}: {
home.packages = with pkgs; [
rofi-wayland
pwvucontrol
@ -34,7 +33,6 @@
"NIXOS_OZONE_WL = 1"
];
xwayland = {
force_zero_scaling = true;
};
@ -57,6 +55,7 @@
"float,title:^(Bluetooth)(.*)$"
"float,title:^(Clocks)(.*)$"
"float,title:^(Network Connections)(.*)$"
# "opacity 0.3, ^(alacritty)$"
];
gestures = {
@ -66,7 +65,6 @@
};
bind = [
# launch Apps
"$mod,TAB, exec, alacritty"
"$mod, E, exec, nemo"
@ -141,7 +139,6 @@
"$mod+Shift, 8, movetoworkspace, 8"
"$mod+Shift, 9, movetoworkspace, 9"
"$mod+Shift, 0, movetoworkspace, 10"
];
bindm = [
@ -185,9 +182,6 @@
name = "at-translated-set-2-keyboard";
repeat_rate = "50";
};
};
};
}

View file

@ -1,6 +1,4 @@
{ lib, ... }:
{
{lib, ...}: {
home = {
username = "joy";
homeDirectory = "/home/joy";

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
# programs.neomutt = {
# enable = true;
# sidebar.enable = true;

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
programs.newsboat = {
enable = true;
browser = "firefox";

View file

@ -1,6 +1,8 @@
{ pkgs, lib, ... }:
{
pkgs,
lib,
...
}: {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;

View file

@ -1,6 +1,4 @@
{ pkgs, ... } :
{
{pkgs, ...}: {
programs.zsh = {
enable = true;
syntaxHighlighting.enable = true;
@ -37,6 +35,5 @@
history.size = 1000000;
history.path = ".config/zsh/history";
};
}

View file

@ -1,5 +1,4 @@
{ inputs, ... }:
{
{inputs, ...}: {
networking.hostName = "desktop";
networking.networkmanager.enable = true;
boot.loader.systemd-boot.enable = true;

View file

@ -1,11 +1,15 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
@ -13,13 +17,13 @@
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/8c81ac04-9d75-4b58-8abe-3dfdd1b9e6ae";
fileSystems."/" = {
device = "/dev/disk/by-uuid/8c81ac04-9d75-4b58-8abe-3dfdd1b9e6ae";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/8810-3A12";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8810-3A12";
fsType = "vfat";
};

View file

@ -1,6 +1,10 @@
{ pkgs, lib, ... }:
{
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
pkgs,
lib,
...
}: {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam-original"
"steam"
"steam-run"

View file

@ -1,5 +1,8 @@
{ inputs, pkgs, ... }:
{
inputs,
pkgs,
...
}: {
networking.hostName = "laptop";
networking.networkmanager.enable = true;
boot.loader.systemd-boot.enable = true;

View file

@ -1,11 +1,15 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
@ -13,13 +17,13 @@
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/7bc13c8d-91dd-4022-b4a8-624970b94a78";
fileSystems."/" = {
device = "/dev/disk/by-uuid/7bc13c8d-91dd-4022-b4a8-624970b94a78";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/ABA5-ED78";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/ABA5-ED78";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
systemd.services.micmute = {
description = "Set microphone mute and normal mute LEDs to off";
wantedBy = ["multi-user.target"];

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
services.blueman.enable = true;
hardware.bluetooth.enable = true;
}

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
fonts.packages = with pkgs; [
font-awesome
(nerdfonts.override {fonts = ["FiraCode"];})

View file

@ -1,7 +1,4 @@
{ ... }:
{
{...}: {
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
@ -11,5 +8,4 @@
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
}

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;

View file

@ -1,6 +1,8 @@
{ inputs, pkgs, ... }:
{
inputs,
pkgs,
...
}: {
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
#hackerman
fastfetch

View file

@ -1,5 +1,4 @@
{ pkgs, ... } :
{
{pkgs, ...}: {
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
@ -16,4 +15,3 @@
};
};
}

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
services.devmon.enable = true;
services.udisks2.enable = true;
services.gvfs.enable = true;

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
services.openssh = {
enable = true;
settings = {

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
stylix = {
enable = true;

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
services = {
syncthing = {
enable = true;

View file

@ -1,7 +1,4 @@
{ inputs, ... }:
{
{inputs, ...}: {
system.autoUpgrade = {
enable = true;
flake = inputs.self.outPath;
@ -13,5 +10,4 @@
dates = "02:00";
randomizedDelaySec = "45min";
};
}

View file

@ -1,7 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.dconf.enable = true;
users.users.joy.extraGroups = ["libvirtd"];
@ -9,7 +6,8 @@
environment.systemPackages = with pkgs; [
virt-manager
virt-viewer
spice spice-gtk
spice
spice-gtk
spice-protocol
win-virtio
win-spice
@ -29,5 +27,4 @@
spiceUSBRedirection.enable = true;
};
services.spice-vdagentd.enable = true;
}