refactor(repo): reformat to nixfmt; relicense to 0BSD
This commit is contained in:
parent
035fb24038
commit
db2564d828
39 changed files with 451 additions and 318 deletions
|
@ -3,11 +3,11 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
environment = {
|
||||
systemPackages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
inherit (pkgs)
|
||||
nil
|
||||
statix
|
||||
deadnix
|
||||
|
@ -66,7 +66,7 @@
|
|||
wrapProgram $out/bin/nh \
|
||||
--set FLAKE "/home/artur/.config/nixos"
|
||||
'';
|
||||
meta = {inherit (pkgs.nh.meta) mainProgram;};
|
||||
meta = { inherit (pkgs.nh.meta) mainProgram; };
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -99,9 +99,9 @@
|
|||
xdg.mime = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"text/html" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||
"x-scheme-handler/http" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||
"x-scheme-handler/https" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||
"text/html" = [ "org.qutebrowser.qutebrowser.desktop" ];
|
||||
"x-scheme-handler/http" = [ "org.qutebrowser.qutebrowser.desktop" ];
|
||||
"x-scheme-handler/https" = [ "org.qutebrowser.qutebrowser.desktop" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./users/artur
|
||||
./hardware.nix
|
||||
|
@ -16,7 +17,7 @@
|
|||
|
||||
config = {
|
||||
boot = {
|
||||
initrd.systemd.additionalUpstreamUnits = ["systemd-boot.service"];
|
||||
initrd.systemd.additionalUpstreamUnits = [ "systemd-boot.service" ];
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = ["defaults"];
|
||||
mountOptions = [ "defaults" ];
|
||||
};
|
||||
};
|
||||
luks = {
|
||||
|
@ -28,7 +28,7 @@
|
|||
};
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = ["-f"];
|
||||
extraArgs = [ "-f" ];
|
||||
subvolumes = {
|
||||
"/@root" = {
|
||||
mountpoint = "/";
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
alqueva.system.fonts = {
|
||||
names = {
|
||||
sansSerif = ["Iosevka"];
|
||||
monospace = ["Iosevka"];
|
||||
serif = ["IBM Plex Serif"];
|
||||
emoji = ["Twitter Color Emoji"];
|
||||
sansSerif = [ "Iosevka" ];
|
||||
monospace = [ "Iosevka" ];
|
||||
serif = [ "IBM Plex Serif" ];
|
||||
emoji = [ "Twitter Color Emoji" ];
|
||||
};
|
||||
packages = {
|
||||
sansSerif = [pkgs.inter];
|
||||
monospace = [pkgs.iosevka];
|
||||
serif = [pkgs.ibm-plex];
|
||||
emoji = [pkgs.twemoji-color-font];
|
||||
sansSerif = [ pkgs.inter ];
|
||||
monospace = [ pkgs.iosevka ];
|
||||
serif = [ pkgs.ibm-plex ];
|
||||
emoji = [ pkgs.twemoji-color-font ];
|
||||
extra = [
|
||||
pkgs.noto-fonts
|
||||
pkgs.nerd-fonts.symbols-only
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{config, ...}: let
|
||||
{ config, ... }:
|
||||
let
|
||||
cfg = config.services.forgejo;
|
||||
srv = cfg.settings.server;
|
||||
in {
|
||||
in
|
||||
{
|
||||
services.nginx = {
|
||||
virtualHosts.${cfg.settings.server.DOMAIN} = {
|
||||
forceSSL = true;
|
||||
|
|
|
@ -6,15 +6,22 @@
|
|||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
boot.extraModulePackages = [];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
themes = {
|
||||
# gtk-theme = pkgs.everforest-gtk-theme;
|
||||
gtk-theme = pkgs.everforest-gtk-theme.overrideAttrs (finalAttrs: {
|
||||
|
@ -13,11 +14,9 @@
|
|||
rev = "43cbe4f1aeba8b46e41836de4c8ea7ac398db119";
|
||||
hash = "sha256-Z46i0Ihpzo4LhFvzKsvnzcHFzeYxJMvQmg2k6lmjGH0=";
|
||||
};
|
||||
nativeBuildInputs =
|
||||
(finalAttrs.nativeBuildInputs or [])
|
||||
++ [
|
||||
pkgs.sassc
|
||||
];
|
||||
nativeBuildInputs = (finalAttrs.nativeBuildInputs or [ ]) ++ [
|
||||
pkgs.sassc
|
||||
];
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p "$out"/share/{icons,themes}
|
||||
|
@ -31,7 +30,8 @@
|
|||
cursor-theme = pkgs.simp1e-cursors;
|
||||
};
|
||||
cfg = config.alqueva.system.dconf;
|
||||
in {
|
||||
in
|
||||
{
|
||||
alqueva.system.dconf = {
|
||||
enable = true;
|
||||
luminosity = "dark";
|
||||
|
|
|
@ -3,18 +3,22 @@
|
|||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
alqueva.users.artur = {
|
||||
shell = config.alqueva.shells.nushell.package;
|
||||
tmpfiles = [
|
||||
"L+ %h/.config/qutebrowser/config.py - - - - ${./configs/qutebrowser/config.py}"
|
||||
"L+ %h/.config/qutebrowser/theme - - - - ${./configs/qutebrowser/theme}"
|
||||
(let
|
||||
theme = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/deathbeam/base16-discord/refs/heads/main/themes/base16-nord.theme.css";
|
||||
hash = "sha256-LofqgsVl+XKisk/dmb/PpwuLEWdEgchIfIw4xZs6LQw=";
|
||||
};
|
||||
in "L+ %h/.config/vesktop/themes/theme.user.css - - - - ${theme}")
|
||||
(
|
||||
let
|
||||
theme = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/deathbeam/base16-discord/refs/heads/main/themes/base16-nord.theme.css";
|
||||
hash = "sha256-LofqgsVl+XKisk/dmb/PpwuLEWdEgchIfIw4xZs6LQw=";
|
||||
};
|
||||
in
|
||||
"L+ %h/.config/vesktop/themes/theme.user.css - - - - ${theme}"
|
||||
)
|
||||
"L+ %h/.config/vesktop/settings/quickCss.css - - - - ${./configs/vesktop/quickCss.css}"
|
||||
"L+ %h/.config/kanshi/ - - - - ${./configs/kanshi}"
|
||||
"L+ %h/.config/dunst/ - - - - ${./configs/dunst}"
|
||||
|
@ -25,8 +29,7 @@
|
|||
"L+ %h/.face.icon - - - - ${./.face.icon}"
|
||||
];
|
||||
packages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
inherit (pkgs)
|
||||
eww
|
||||
wget
|
||||
vesktop-electron32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue