mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Reformat with alejandra
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
imports = [
|
||||
./modules
|
||||
./hardware-configuration.nix
|
||||
@@ -123,16 +122,18 @@
|
||||
pkgs.libheif.out
|
||||
];
|
||||
|
||||
pathsToLink = [ "share/thumbnailers" ];
|
||||
pathsToLink = ["share/thumbnailers"];
|
||||
};
|
||||
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
package = pkgs.bluez.overrideAttrs (old: {
|
||||
configureFlags = old.configureFlags ++ [
|
||||
"--enable-sixaxis"
|
||||
];
|
||||
configureFlags =
|
||||
old.configureFlags
|
||||
++ [
|
||||
"--enable-sixaxis"
|
||||
];
|
||||
});
|
||||
|
||||
powerOnBoot = true;
|
||||
|
||||
@@ -14,72 +14,68 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
czkawka-src,
|
||||
naersk,
|
||||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
naersk-lib = pkgs.callPackage naersk { };
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
czkawka-src,
|
||||
naersk,
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
naersk-lib = pkgs.callPackage naersk {};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cargo
|
||||
cmake
|
||||
makeWrapper
|
||||
pkg-config
|
||||
rustc
|
||||
];
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cargo
|
||||
cmake
|
||||
makeWrapper
|
||||
pkg-config
|
||||
rustc
|
||||
];
|
||||
|
||||
runtimeLibs = with pkgs; [
|
||||
fontconfig
|
||||
libglvnd
|
||||
libX11
|
||||
libXcursor
|
||||
libXi
|
||||
libxkbcommon
|
||||
libXrandr
|
||||
wayland
|
||||
];
|
||||
in
|
||||
{
|
||||
packages.${system}.default = naersk-lib.buildPackage {
|
||||
pname = "krokiet";
|
||||
version = "master";
|
||||
src = czkawka-src;
|
||||
runtimeLibs = with pkgs; [
|
||||
fontconfig
|
||||
libglvnd
|
||||
libX11
|
||||
libXcursor
|
||||
libXi
|
||||
libxkbcommon
|
||||
libXrandr
|
||||
wayland
|
||||
];
|
||||
in {
|
||||
packages.${system}.default = naersk-lib.buildPackage {
|
||||
pname = "krokiet";
|
||||
version = "master";
|
||||
src = czkawka-src;
|
||||
|
||||
nativeBuildInputs = nativeBuildInputs;
|
||||
buildInputs = runtimeLibs;
|
||||
nativeBuildInputs = nativeBuildInputs;
|
||||
buildInputs = runtimeLibs;
|
||||
|
||||
cargoBuildOptions =
|
||||
x:
|
||||
x
|
||||
++ [
|
||||
"-p"
|
||||
"krokiet"
|
||||
];
|
||||
|
||||
buildAndCheckFeatures = [
|
||||
"winit_wayland"
|
||||
"winit_x11"
|
||||
cargoBuildOptions = x:
|
||||
x
|
||||
++ [
|
||||
"-p"
|
||||
"krokiet"
|
||||
];
|
||||
|
||||
RUSTFLAGS = "-C target-cpu=native";
|
||||
NIX_CFLAGS_COMPILE = "-march=native -mtune=native";
|
||||
buildAndCheckFeatures = [
|
||||
"winit_wayland"
|
||||
"winit_x11"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/krokiet \
|
||||
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath runtimeLibs}
|
||||
RUSTFLAGS = "-C target-cpu=native";
|
||||
NIX_CFLAGS_COMPILE = "-march=native -mtune=native";
|
||||
|
||||
install -Dm444 -t $out/share/applications data/io.github.qarmin.krokiet.desktop
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/krokiet \
|
||||
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath runtimeLibs}
|
||||
|
||||
install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/io.github.qarmin.krokiet.svg \
|
||||
install -Dm444 -t $out/share/applications data/io.github.qarmin.krokiet.desktop
|
||||
|
||||
install -Dm444 -t $out/share/metainfo data/io.github.qarmin.krokiet.metainfo.xml
|
||||
'';
|
||||
};
|
||||
install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/io.github.qarmin.krokiet.svg \
|
||||
|
||||
install -Dm444 -t $out/share/metainfo data/io.github.qarmin.krokiet.metainfo.xml
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,18 +6,15 @@
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
}:
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
in {
|
||||
packages.default = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "fet";
|
||||
version = "7.8.0";
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
"https://attic.awroo.fun/my-config"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
./attic.nix
|
||||
./flatpak.nix
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
services.flatpak = {
|
||||
enable = true;
|
||||
update.auto.enable = true;
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
environment = {
|
||||
gnome.excludePackages = with pkgs; [
|
||||
decibels
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
{lib, ...}: {
|
||||
dconf.settings = {
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = [ "qemu:///system" ];
|
||||
uris = [ "qemu:///system" ];
|
||||
autoconnect = ["qemu:///system"];
|
||||
uris = ["qemu:///system"];
|
||||
};
|
||||
|
||||
"org/gnome/Console" = {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
./apps.nix
|
||||
./extensions.nix
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
{lib, ...}: {
|
||||
dconf.settings = {
|
||||
"org/gnome/shell/extensions/user-theme" = {
|
||||
name = "Flat-Remix-Darkest-fullPanel";
|
||||
@@ -109,7 +108,7 @@
|
||||
blur = false;
|
||||
brightness = 1.0;
|
||||
opacity = 217;
|
||||
whitelist = [ "org.gnome.Console" ];
|
||||
whitelist = ["org.gnome.Console"];
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/coverflow-alt-tab" = {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
{lib, ...}: {
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
accent-color = "red";
|
||||
@@ -33,13 +32,13 @@
|
||||
};
|
||||
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
move-to-workspace-left = [ "<Shift><Control><Super>Left" ];
|
||||
move-to-workspace-right = [ "<Shift><Control><Super>Right" ];
|
||||
switch-to-workspace-left = [ "<Control><Super>Left" ];
|
||||
switch-to-workspace-right = [ "<Control><Super>Right" ];
|
||||
switch-windows = [ "<Alt>Tab" ];
|
||||
switch-windows-backward = [ "<Shift><Alt>Tab" ];
|
||||
toggle-fullscreen = [ "<Super>F11" ];
|
||||
move-to-workspace-left = ["<Shift><Control><Super>Left"];
|
||||
move-to-workspace-right = ["<Shift><Control><Super>Right"];
|
||||
switch-to-workspace-left = ["<Control><Super>Left"];
|
||||
switch-to-workspace-right = ["<Control><Super>Right"];
|
||||
switch-windows = ["<Alt>Tab"];
|
||||
switch-windows-backward = ["<Shift><Alt>Tab"];
|
||||
toggle-fullscreen = ["<Super>F11"];
|
||||
};
|
||||
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
@@ -89,7 +88,7 @@
|
||||
};
|
||||
|
||||
"org/gnome/desktop/app-folders" = {
|
||||
folder-children = [ ];
|
||||
folder-children = [];
|
||||
};
|
||||
|
||||
"org/gnome/desktop/datetime" = {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
./dconf
|
||||
./desktop-files.nix
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
xdg.dataFile."applications/clion.desktop".text = ''
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
{lib, ...}: {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
{config, ...}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
solaar-master,
|
||||
fet,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
@@ -153,12 +152,13 @@
|
||||
vkbasalt
|
||||
vlc
|
||||
(vscode.fhsWithPackages (
|
||||
ps: with ps; [
|
||||
python3
|
||||
zlib
|
||||
gcc
|
||||
gnumake
|
||||
]
|
||||
ps:
|
||||
with ps; [
|
||||
python3
|
||||
zlib
|
||||
gcc
|
||||
gnumake
|
||||
]
|
||||
))
|
||||
webp-pixbuf-loader
|
||||
wev
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
programs = {
|
||||
dconf.profiles.gdm.databases = [
|
||||
{
|
||||
@@ -79,7 +78,7 @@
|
||||
|
||||
nix-ld = {
|
||||
enable = true;
|
||||
libraries = with pkgs; [ ];
|
||||
libraries = with pkgs; [];
|
||||
};
|
||||
|
||||
steam = {
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
services = {
|
||||
sshd.enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user