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 outputs = {
systemConfig = { modules }: nixpkgs.lib.nixosSystem { nixpkgs,
home-manager,
stylix,
...
} @ inputs: let
systemConfig = {modules}:
nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = modules ++ [stylix.nixosModules.stylix]; modules = modules ++ [stylix.nixosModules.stylix];
}; };

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,4 @@
{ inputs, ... }: {inputs, ...}: {
{
networking.hostName = "desktop"; networking.hostName = "desktop";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
boot.loader.systemd-boot.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 # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
@ -13,13 +17,13 @@
boot.kernelModules = ["kvm-intel"]; boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = []; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/8c81ac04-9d75-4b58-8abe-3dfdd1b9e6ae"; device = "/dev/disk/by-uuid/8c81ac04-9d75-4b58-8abe-3dfdd1b9e6ae";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/8810-3A12"; device = "/dev/disk/by-uuid/8810-3A12";
fsType = "vfat"; 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-original"
"steam" "steam"
"steam-run" "steam-run"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,4 @@
{ pkgs, ... } : {pkgs, ...}: {
{
systemd = { systemd = {
user.services.polkit-gnome-authentication-agent-1 = { user.services.polkit-gnome-authentication-agent-1 = {
description = "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.devmon.enable = true;
services.udisks2.enable = true; services.udisks2.enable = true;
services.gvfs.enable = true; services.gvfs.enable = true;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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