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.mutableUsers = false;
users.users = { users.users = {
root.hashedPassword = user.root.hashedPassword; root.hashedPassword = user.root.hashedPassword;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -20,15 +20,42 @@
".mozilla" ".mozilla"
".nixos-config" ".nixos-config"
".ssh" ".ssh"
{ directory = "Documents"; method = "symlink"; } {
{ directory = "Downloads"; method = "symlink"; } directory = "Documents";
{ directory = "Music"; method = "symlink"; } method = "symlink";
{ directory = "Others"; method = "symlink"; } }
{ directory = "Pictures"; method = "symlink"; } {
{ directory = "Projects"; method = "symlink"; } directory = "Downloads";
{ directory = "Public"; method = "symlink"; } method = "symlink";
{ directory = "Templates"; method = "symlink"; } }
{ directory = "Videos"; 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 = [ files = [

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,8 @@
{ config, pkgs, ... }: { {
config,
pkgs,
...
}: {
programs.waybar = { programs.waybar = {
enable = true; enable = true;
package = pkgs.waybar.overrideAttrs (oldAttrs: { 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"; dbus-update-activation-environment = "${pkgs.dbus}/bin/dbus-update-activation-environment";
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl"; brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
grim = "${pkgs.grim}/bin/grim"; grim = "${pkgs.grim}/bin/grim";
@ -14,8 +17,7 @@ let
xdg-user-dir = "${pkgs.xdg-user-dirs}/bin/xdg-user-dir"; xdg-user-dir = "${pkgs.xdg-user-dirs}/bin/xdg-user-dir";
change-wallpaper = "${pkgs.scripts}/bin/chpaper \${HOME}/Pictures/Wallpapers"; change-wallpaper = "${pkgs.scripts}/bin/chpaper \${HOME}/Pictures/Wallpapers";
wallhaven-wallpaper = "${pkgs.scripts}/bin/wallhaven"; wallhaven-wallpaper = "${pkgs.scripts}/bin/wallhaven";
in in {
{
home.packages = with pkgs; [ home.packages = with pkgs; [
hyprland hyprland
]; ];

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,8 @@
{ lib, pkgs, ... }: { {
lib,
pkgs,
...
}: {
boot.bootspec.enable = true; boot.bootspec.enable = true;
boot.loader.systemd-boot.enable = lib.mkForce false; boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = { 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 = [ imports = [
./dbus.nix ./dbus.nix
./pipewire.nix ./pipewire.nix

View file

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

View file

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

View file

@ -1,13 +1,13 @@
{ lib {
, stdenvNoCC lib,
, fetchFromGitHub stdenvNoCC,
, gtk3 fetchFromGitHub,
, gnome gtk3,
, gnome-icon-theme gnome,
, hicolor-icon-theme gnome-icon-theme,
, panel ? "dark" hicolor-icon-theme,
, folder ? "default" panel ? "dark",
, folder ? "default",
}: }:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
pname = "newaita-icon-theme"; 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 { stdenvNoCC.mkDerivation {
pname = "scripts"; pname = "scripts";
version = "0.1"; version = "0.1";