Update formatting.

This commit is contained in:
CronyAkatsuki 2024-03-16 19:03:53 +01:00
parent 4f978540de
commit 49cacd8d9c
22 changed files with 146 additions and 144 deletions

View File

@ -30,11 +30,9 @@
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = {inherit inputs;};
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.users.crony = {
imports = [
./home-manager/home.nix
];
imports = [ ./home-manager/home.nix ];
};
}
];

View File

@ -1,5 +1,4 @@
{ inputs, ... }:
{
{ inputs, ... }: {
# Install alacritty
programs.alacritty.enable = true;

View File

@ -1,5 +1,4 @@
{ inputs, ... }:
{
{ inputs, ... }: {
# Btop settings
programs.btop = {
enable = true;

View File

@ -1,6 +1,6 @@
{ inputs, pkgs, ... }:
{
home.packages = with pkgs; [
{ inputs, pkgs, ... }: {
home.packages = with pkgs;
[
# My custom dmenu build
(dmenu.overrideAttrs (oldAttrs: rec {
src = builtins.fetchGit {

View File

@ -1,4 +1,4 @@
{ inputs, config, pkgs, ...}:
{ inputs, config, pkgs, ... }:
{
# gpg settings

View File

@ -1,5 +1,4 @@
{ inputs, ... }:
{
{ inputs, ... }: {
# Mangohud settings
programs.mangohud = {
enable = true;

View File

@ -1,18 +1,24 @@
{ inputs, pkgs, ... }:
{
{ inputs, pkgs, ... }: {
# Mpv settings
programs.mpv = {
enable = true;
config = {
ytdl-format="bestvideo[height<=?1080][fps<=?60][vcodec!=?vp9]+bestaudio/best";
ytdl-raw-options="extractor-args=youtube:player-client=android";
fs=true;
force-window="immediate";
screenshot-template="%F - [%P]v%#01n";
sub-file-paths="Subs;subs";
sub-auto="all";
slang="english,eng,en";
ytdl-format =
"bestvideo[height<=?1080][fps<=?60][vcodec!=?vp9]+bestaudio/best";
ytdl-raw-options = "extractor-args=youtube:player-client=android";
fs = true;
force-window = "immediate";
screenshot-template = "%F - [%P]v%#01n";
sub-file-paths = "Subs;subs";
sub-auto = "all";
slang = "english,eng,en";
};
scripts = with pkgs.mpvScripts; [ mpris sponsorblock uosc thumbfast quality-menu ];
scripts = with pkgs.mpvScripts; [
mpris
sponsorblock
uosc
thumbfast
quality-menu
];
};
}

View File

@ -1,12 +1,7 @@
{ inputs, pkgs, ... }:
{
{ inputs, pkgs, ... }: {
# Install newsboat
home.packages = [
pkgs.newsboat
];
home.packages = [ pkgs.newsboat ];
# Setup my config file
home.file = {
".config/newsboat/config".source = ./confs/newsboat;
};
home.file = { ".config/newsboat/config".source = ./confs/newsboat; };
}

View File

@ -1,12 +1,38 @@
{ inputs, pkgs, ... }:
{
{ inputs, pkgs, ... }: {
# NNN Settings
programs.nnn = {
enable = true;
package = pkgs.nnn.override ({ withNerdIcons = true; });
bookmarks = { d = "~/Documents"; D = "~/Downloads"; p = "~/Pictures"; v = "~/Videos";};
extraPackages = with pkgs; [ pmount ffmpegthumbnailer mediainfo ueberzugpp poppler_utils gnome-epub-thumbnailer nsxiv ];
plugins.mappings = { u = "nmount"; c = "chksum"; r = "gitroot"; v = "imgview"; m = "mtpmount"; d = "xdgdefault"; x = "togglex"; p = "preview-tui"; };
plugins.src = (pkgs.fetchFromGitHub { owner = "jarun"; repo = "nnn"; rev = "v4.9"; sha256 = "sha256-g19uI36HyzTF2YUQKFP4DE2ZBsArGryVHhX79Y0XzhU=";}) + "/plugins";
bookmarks = {
d = "~/Documents";
D = "~/Downloads";
p = "~/Pictures";
v = "~/Videos";
};
extraPackages = with pkgs; [
pmount
ffmpegthumbnailer
mediainfo
ueberzugpp
poppler_utils
gnome-epub-thumbnailer
nsxiv
];
plugins.mappings = {
u = "nmount";
c = "chksum";
r = "gitroot";
v = "imgview";
m = "mtpmount";
d = "xdgdefault";
x = "togglex";
p = "preview-tui";
};
plugins.src = (pkgs.fetchFromGitHub {
owner = "jarun";
repo = "nnn";
rev = "v4.9";
sha256 = "sha256-g19uI36HyzTF2YUQKFP4DE2ZBsArGryVHhX79Y0XzhU=";
}) + "/plugins";
};
}

View File

@ -1,8 +1,10 @@
{ pkgs, ... }:
{
{ pkgs, ... }: {
home.packages = [
pkgs.catppuccin-cursors.frappeRosewater
pkgs.catppuccin-gtk
(pkgs.catppuccin-papirus-folders.override { flavor = "frappe"; accent = "pink"; })
(pkgs.catppuccin-papirus-folders.override {
flavor = "frappe";
accent = "pink";
})
];
}

View File

@ -1,5 +1,4 @@
{ inputs, pkgs, ... }:
{
{ inputs, pkgs, ... }: {
##-- Restic Timers And Services --##
# Restic backup
@ -8,14 +7,12 @@
Unit.Description = "Restic backup service";
Service = {
Type = "oneshot";
ExecStart = toString (
pkgs.writeShellScript "restic-backup" ''
ExecStart = toString (pkgs.writeShellScript "restic-backup" ''
. /etc/restic/local
restic backup --files-from /home/crony/.config/restic/list --verbose && restic forget --keep-last 10 --keep-daily 7 --keep-weekly 5 --keep-monthly 12
. /etc/restic/online
restic backup --files-from /home/crony/.config/restic/list --verbose && restic forget --keep-last 10 --keep-daily 7 --keep-weekly 5 --keep-monthly 12
''
);
'');
};
};
};
@ -36,23 +33,19 @@
Unit.Description = "Restic check service";
Service = {
Type = "oneshot";
ExecStart = toString (
pkgs.writeShellScript "restic-check" ''
ExecStart = toString (pkgs.writeShellScript "restic-check" ''
. /etc/restic/local
restic check --read-data-subset=10%
. /etc/restic/online
restic check --read-data-subset=10%
''
);
'');
};
};
};
systemd.user.timers = {
restic_check = {
Unit.Description = "Restic check timer";
Timer = {
OnCalendar="Thu *-*-* 18:00:00";
};
Timer = { OnCalendar = "Thu *-*-* 18:00:00"; };
Install.WantedBy = [ "timers.target" ];
};
};
@ -63,23 +56,19 @@
Unit.Description = "Restic prune service";
Service = {
Type = "oneshot";
ExecStart = toString (
pkgs.writeShellScript "restic-prune" ''
ExecStart = toString (pkgs.writeShellScript "restic-prune" ''
. /etc/restic/local
restic prune
. /etc/restic/online
restic prune
''
);
'');
};
};
};
systemd.user.timers = {
restic_prune = {
Unit.Description = "Restic prune timer";
Timer = {
OnCalendar="Fri *-*-* 18:00:00";
};
Timer = { OnCalendar = "Fri *-*-* 18:00:00"; };
Install.WantedBy = [ "timers.target" ];
};
};

View File

@ -1,5 +1,4 @@
{ inputs, config, ... }:
{
{ inputs, config, ... }: {
# But we all know I love zsh
programs.zsh = {
enable = true;

View File

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{ pkgs, ... }: {
# Enable qt
qt.enable = true;
@ -21,7 +20,10 @@
gtk.theme.name = "Catppuccin-Frappe-Standard-Blue-Dark";
# Gtk icon theme
gtk.iconTheme.package = (pkgs.catppuccin-papirus-folders.override { flavor = "frappe"; accent = "pink"; });
gtk.iconTheme.package = (pkgs.catppuccin-papirus-folders.override {
flavor = "frappe";
accent = "pink";
});
gtk.iconTheme.name = "Papirus-Dark";
# Font name

View File

@ -1,5 +1,4 @@
{ inputs, pkgs, ... }:
{
{ inputs, pkgs, ... }: {
programs.tmux = {
enable = true;
disableConfirmationPrompt = true;

View File

@ -1,5 +1,4 @@
{ inputs, pkgs, ... }:
{
{ inputs, pkgs, ... }: {
# Install tofi
home.packages = with pkgs; [
tofi
@ -9,7 +8,5 @@
];
# Setup my config file
home.file = {
".config/tofi/config".source = ./confs/tofi;
};
home.file = { ".config/tofi/config".source = ./confs/tofi; };
}

View File

@ -1,8 +1,5 @@
{ inputs, pkgs, ... }:
{
home.packages = with pkgs; [
vkbasalt
];
{ inputs, pkgs, ... }: {
home.packages = with pkgs; [ vkbasalt ];
home.file = {
".config/vkBasalt/vkBasalt.conf".source = ./confs/vkBasalt.conf;

View File

@ -18,10 +18,10 @@
boot.kernelPackages = pkgs.linuxPackages;
# Enable gsp
# boot.kernelParams = [
# "nouveau.config=NvGspRM=1"
# "nouveau.debug=info,VBIOS=info,gsp=debug"
# ];
# boot.kernelParams = [
# "nouveau.config=NvGspRM=1"
# "nouveau.debug=info,VBIOS=info,gsp=debug"
# ];
# load amdgpu and nouveau at boot
boot.initrd.kernelModules = [ "amdgpu" ];

View File

@ -4,22 +4,21 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/35fda926-38bd-4da4-984e-054f768e2e95";
fileSystems."/" = {
device = "/dev/disk/by-uuid/35fda926-38bd-4da4-984e-054f768e2e95";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7BBE-9699";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/7BBE-9699";
fsType = "vfat";
};
@ -34,5 +33,6 @@
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@ -1,5 +1,4 @@
{ ... }:
{
{ ... }: {
# Disable hibernation, sleep and other friends
systemd.targets = {
sleep = {

View File

@ -1,5 +1,4 @@
{ ... }:
{
{ ... }: {
### --- Enabling DNS Over HTTPS --- ###
# make network manager not set a default dns
@ -20,7 +19,8 @@
"https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
];
cache_file = "/var/lib/dnscrypt-proxy2/public-resolvers.md";
minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";
minisign_key =
"RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";
};
# use mullvad dns server
server_names = [ "mullvad-doh" ];

View File

@ -1,5 +1,4 @@
{ config, ... }:
{
{ config, ... }: {
services.xserver.videoDrivers = [ "nvidia" ];
# Nvidia settings

View File

@ -1,8 +1,5 @@
{ config, ... }:
{
{ config, ... }: {
# Setup correct modules for tplink wifi dongle and disable builtin wifi card.
boot.blacklistedKernelModules = [ "rtl8xxxu" "iwlwifi" ];
boot.extraModulePackages = with config.boot.kernelPackages; [
rtl8192eu
];
boot.extraModulePackages = with config.boot.kernelPackages; [ rtl8192eu ];
}