Run formatter

This commit is contained in:
2023-05-16 22:35:01 +01:00
parent 65583b9494
commit 1e4e09d40d
10 changed files with 31 additions and 32 deletions

View File

@@ -42,16 +42,16 @@
// {
i3utils = i3utils.packages.${system}.default;
hyprland = hyprland.packages."x86_64-linux".default.overrideAttrs (finalAttrs: previousAttrs: {
buildInputs = previousAttrs.buildInputs ++ [pkgs.makeWrapper];
postInstall = ''
ls -lar $out
wrapProgram $out/bin/Hyprland \
--set LIBVA_DRIVER_NAME nvidia \
--set XDG_SESSION_TYPE wayland \
--set __GLX_VENDOR_LIBRARY_NAME nvidia \
--set WLR_NO_HARDWARE_CURSORS 1
'';
});
buildInputs = previousAttrs.buildInputs ++ [pkgs.makeWrapper];
postInstall = ''
ls -lar $out
wrapProgram $out/bin/Hyprland \
--set LIBVA_DRIVER_NAME nvidia \
--set XDG_SESSION_TYPE wayland \
--set __GLX_VENDOR_LIBRARY_NAME nvidia \
--set WLR_NO_HARDWARE_CURSORS 1
'';
});
};
lib = nixpkgs.lib;

View File

@@ -4,7 +4,10 @@
lib,
...
}: let
mkUser = {userName, uid}: {
mkUser = {
userName,
uid,
}: {
isNormalUser = true;
home = "/home/${userName}";
initialPassword = "password";
@@ -18,7 +21,6 @@
userName = "daniel";
uid = 1000;
};
in {
# Use the systemd-boot EFI boot loader.
boot.kernelPackages = pkgs.linuxPackages_latest;
@@ -79,6 +81,7 @@ in {
git
htop
helix
jq
nnn
ripgrep
wget

View File

@@ -31,7 +31,7 @@
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
(nerdfonts.override {fonts = ["Iosevka"]; })
(nerdfonts.override {fonts = ["Iosevka"];})
ubuntu_font_family
];
@@ -61,8 +61,8 @@
)
];
extraRules = ''
# Raspberry Pi Picoprobe
SUBSYSTEM="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE="0666"
# Raspberry Pi Picoprobe
SUBSYSTEM="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE="0666"
'';
};

View File

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

View File

@@ -1,5 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
services.gitea = {
enable = true;
appName = "The Broccoli Patch"; # Give the site a name

View File

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

View File

@@ -1,14 +1,13 @@
{ config, ... }:
{
{config, ...}: {
virtualisation.oci-containers = {
backend = "docker";
containers = {
"livebook" = {
image = "ghcr.io/livebook-dev/livebook";
ports = [ "8080:8080" "8081:8081" ];
volumes = [ "/home/daniel/livebook/data:/data" ];
ports = ["8080:8080" "8081:8081"];
volumes = ["/home/daniel/livebook/data:/data"];
user = "${toString config.users.users."daniel".uid}:${toString config.users.groups."users".gid}";
environmentFiles = [ "/home/daniel/.livebook_env" ];
environmentFiles = ["/home/daniel/.livebook_env"];
};
};
};

View File

@@ -7,7 +7,6 @@
./waybar
];
home.file = {
".age/age.txt" = {
source = config.lib.file.mkOutOfStoreSymlink "/run/agenix/age_identity";

View File

@@ -1,6 +1,4 @@
{...}:
{
{...}: {
programs.neovim.enable = true;
home.file = {

View File

@@ -153,8 +153,8 @@ in {
enable = true;
settings = {
gui.theme = {
selectedLineBgColor = [ "reverse" ];
selectedRangeBgColor = [ "reverse" ];
selectedLineBgColor = ["reverse"];
selectedRangeBgColor = ["reverse"];
};
};
};