reformat with alejandra

This commit is contained in:
Adithya 2023-05-18 16:11:26 +05:30
parent 5a385fcedc
commit ccabc0d28a
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
76 changed files with 348 additions and 256 deletions

View file

@ -1,8 +1,10 @@
{ pkgs, secrets, ... }:
let
user = (import ../../secrets.nix).users;
in
{
pkgs,
secrets,
...
}: let
user = (import ../../secrets.nix).users;
in {
users.mutableUsers = false;
users.users = {
root.hashedPassword = user.root.hashedPassword;

View file

@ -26,11 +26,19 @@
};
};
outputs = { self, nixpkgs, home-manager, impermanence, lanzaboote, nixvim }@inputs: {
formatter."x86_64-linux" = nixpkgs.legacyPackages."x86_64-linux".nixpkgs-fmt;
nixosConfigurations = let user = (import ./secrets.nix).users; in {
outputs = {
self,
nixpkgs,
home-manager,
impermanence,
lanzaboote,
nixvim,
} @ inputs: {
formatter."x86_64-linux" = nixpkgs.legacyPackages."x86_64-linux".alejandra;
nixosConfigurations = let
user = (import ./secrets.nix).users;
in {
Skipper = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [

View file

@ -1,5 +1,4 @@
{...}: {
xdg.desktopEntries."btop" = {
name = "btop++";
exec = "btop";

View file

@ -1,8 +1,6 @@
{ ... }:
let
{...}: let
user = (import ../../../secrets.nix).users;
in
{
in {
programs.git = {
enable = true;
diff-so-fancy = {

View file

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

View file

@ -1,4 +1,8 @@
{ config, pkgs, ... }: {
{
config,
pkgs,
...
}: {
programs.zsh = {
enable = true;
defaultKeymap = "viins";

View file

@ -1,5 +1,8 @@
{ lib, pkgs, ... }:
let
{
lib,
pkgs,
...
}: let
gtkTheme = {
name = "Dracula";
package = pkgs.dracula-gtk;
@ -17,8 +20,7 @@ let
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
};
in
{
in {
gtk.enable = true;
gtk.theme = gtkTheme;
home.sessionVariables.GTK_THEME = gtkTheme.name;

View file

@ -20,15 +20,42 @@
".mozilla"
".nixos-config"
".ssh"
{ directory = "Documents"; method = "symlink"; }
{ directory = "Downloads"; method = "symlink"; }
{ directory = "Music"; method = "symlink"; }
{ directory = "Others"; method = "symlink"; }
{ directory = "Pictures"; method = "symlink"; }
{ directory = "Projects"; method = "symlink"; }
{ directory = "Public"; method = "symlink"; }
{ directory = "Templates"; method = "symlink"; }
{ directory = "Videos"; method = "symlink"; }
{
directory = "Documents";
method = "symlink";
}
{
directory = "Downloads";
method = "symlink";
}
{
directory = "Music";
method = "symlink";
}
{
directory = "Others";
method = "symlink";
}
{
directory = "Pictures";
method = "symlink";
}
{
directory = "Projects";
method = "symlink";
}
{
directory = "Public";
method = "symlink";
}
{
directory = "Templates";
method = "symlink";
}
{
directory = "Videos";
method = "symlink";
}
];
files = [

View file

@ -1,4 +1,8 @@
{ pkgs, osConfig, ... }: {
{
pkgs,
osConfig,
...
}: {
programs = {
firefox = {
enable = true;

View file

@ -1,13 +1,11 @@
{ pkgs, ... }:
let
{pkgs, ...}: let
dracula = pkgs.fetchFromGitHub {
owner = "dracula";
repo = "kitty";
rev = "87717a3f00e3dff0fc10c93f5ff535ea4092de70";
hash = "sha256-78PTH9wE6ktuxeIxrPp0ZgRI8ST+eZ3Ok2vW6BCIZkc=";
};
in
{
in {
programs.kitty = {
enable = true;
font.package = pkgs.nerdfonts.override {fonts = ["FiraCode"];};

View file

@ -1,4 +1,8 @@
{ config, pkgs, ... }: {
{
config,
pkgs,
...
}: {
programs.mpv = {
enable = true;
package = pkgs.mpv.override {youtubeSupport = true;};

View file

@ -1,4 +1,8 @@
{ config, pkgs, ... }: {
{
config,
pkgs,
...
}: {
programs.nixvim = {
enable = true;
vimAlias = true;

View file

@ -1,4 +1,8 @@
{ config, pkgs, ... }: {
{
config,
pkgs,
...
}: {
systemd.user.services.aria2c = {
Unit = {
Description = "Aria2c Download Manager";

View file

@ -1,9 +1,11 @@
{ config, pkgs, ... }:
let
{
config,
pkgs,
...
}: let
dmenu = "${config.programs.rofi.package}/bin/rofi -dmenu";
firefox = "${config.programs.firefox.package}/bin/firefox";
in
{
in {
services.dunst = {
enable = true;
iconTheme.name = config.gtk.iconTheme.name;

View file

@ -21,5 +21,4 @@
noDisplay = true;
};
};
}

View file

@ -1,9 +1,7 @@
{ pkgs, ... }:
let
{pkgs, ...}: let
swaylock = "${pkgs.swaylock}/bin/swaylock";
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
in
{
in {
services.swayidle = {
enable = true;
systemdTarget = "graphical-session.target";

View file

@ -1,4 +1,8 @@
{ config, pkgs, ... }: {
{
config,
pkgs,
...
}: {
programs.waybar = {
enable = true;
package = pkgs.waybar.overrideAttrs (oldAttrs: {

View file

@ -1,5 +1,8 @@
{ config, pkgs, ... }:
let
{
config,
pkgs,
...
}: let
dbus-update-activation-environment = "${pkgs.dbus}/bin/dbus-update-activation-environment";
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
grim = "${pkgs.grim}/bin/grim";
@ -14,8 +17,7 @@ let
xdg-user-dir = "${pkgs.xdg-user-dirs}/bin/xdg-user-dir";
change-wallpaper = "${pkgs.scripts}/bin/chpaper \${HOME}/Pictures/Wallpapers";
wallhaven-wallpaper = "${pkgs.scripts}/bin/wallhaven";
in
{
in {
home.packages = with pkgs; [
hyprland
];

View file

@ -1,5 +1,9 @@
{ config, lib, pkgs, ... }: {
{
config,
lib,
pkgs,
...
}: {
wayland.windowManager.sway = {
enable = true;
systemdIntegration = true;
@ -71,8 +75,7 @@
};
};
keybindings =
let
keybindings = let
modifier = config.wayland.windowManager.sway.config.modifier;
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";

View file

@ -1,5 +1,4 @@
{...}: {
imports = [
./hardware
./programs

View file

@ -1,5 +1,4 @@
{...}: {
fileSystems."/" = {
device = "/dev/disk/by-partlabel/NIXOS_ROOT";
fsType = "btrfs";

View file

@ -1,4 +1,8 @@
{ lib, pkgs, ... }: {
{
lib,
pkgs,
...
}: {
boot = {
initrd = {
availableKernelModules = [

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }: {
{
config,
lib,
pkgs,
...
}: {
imports = [
./hardware
./programs
@ -70,7 +75,6 @@
wireless.iwd.enable = true;
};
sound.enable = true;
time.timeZone = "Asia/Kolkata";

View file

@ -1,4 +1,9 @@
{ lib, pkgs, config, ... }: {
{
lib,
pkgs,
config,
...
}: {
imports = [./kernel.nix ./filesystem.nix];
boot = {
@ -26,7 +31,7 @@
KernelExperimental = true;
};
};
package = (pkgs.bluez.override { withExperimental = true; });
package = pkgs.bluez.override {withExperimental = true;};
};
cpu.intel.updateMicrocode = lib.mkDefault true;
enableRedistributableFirmware = true;

View file

@ -1,4 +1,8 @@
{ lib, pkgs, ... }: {
{
lib,
pkgs,
...
}: {
boot = {
consoleLogLevel = 3;
initrd = {

View file

@ -1,5 +1,4 @@
{...}: {
imports = [
./gnupg.nix
./neovim.nix

View file

@ -5,5 +5,4 @@
enableSSHSupport = true;
pinentryFlavor = "gnome3";
};
}

View file

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

View file

@ -1,4 +1,8 @@
{ lib, pkgs, ... }: {
{
lib,
pkgs,
...
}: {
boot.bootspec.enable = true;
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {

View file

@ -1,8 +1,10 @@
{ pkgs, secrets, ... }:
let
user = (import ../../../secrets.nix).users;
in
{
pkgs,
secrets,
...
}: let
user = (import ../../../secrets.nix).users;
in {
imports = [
./dbus.nix
./pipewire.nix

View file

@ -1,9 +1,9 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, pack ? "pack_1"
, theme ? "cuts"
,
{
lib,
stdenvNoCC,
fetchFromGitHub,
pack ? "pack_1",
theme ? "cuts",
}:
stdenvNoCC.mkDerivation {
pname = "adi1090x-plymouth";

View file

@ -1,10 +1,10 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, gtk3
, gnome-themes-extra
, gtk-engine-murrine
,
{
lib,
stdenvNoCC,
fetchFromGitHub,
gtk3,
gnome-themes-extra,
gtk-engine-murrine,
}:
stdenvNoCC.mkDerivation {
pname = "dracula-gtk";

View file

@ -1,13 +1,13 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, gtk3
, gnome
, gnome-icon-theme
, hicolor-icon-theme
, panel ? "dark"
, folder ? "default"
,
{
lib,
stdenvNoCC,
fetchFromGitHub,
gtk3,
gnome,
gnome-icon-theme,
hicolor-icon-theme,
panel ? "dark",
folder ? "default",
}:
stdenvNoCC.mkDerivation {
pname = "newaita-icon-theme";

View file

@ -1,5 +1,18 @@
{ lib, stdenvNoCC, makeWrapper, libnotify, rofi-wayland, tmux, kitty, imagemagick, sway, hyprland, swww, jq, curl }:
{
lib,
stdenvNoCC,
makeWrapper,
libnotify,
rofi-wayland,
tmux,
kitty,
imagemagick,
sway,
hyprland,
swww,
jq,
curl,
}:
stdenvNoCC.mkDerivation {
pname = "scripts";
version = "0.1";