switch to nixpkgs-fmt

This commit is contained in:
Adithya 2023-03-29 21:48:55 +05:30
parent 7cb7479433
commit 85645f37f9
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
43 changed files with 291 additions and 278 deletions

View file

@ -21,17 +21,20 @@
};
};
outputs = {
self,
nixpkgs,
home-manager,
impermanence,
lanzaboote,
} @ inputs: let
outputs =
{ self
, nixpkgs
, home-manager
, impermanence
, lanzaboote
,
} @ inputs:
let
system = "x86_64-linux";
lib = nixpkgs.lib;
in {
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
in
{
formatter.${system} = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
nixosConfigurations = {
Skipper = lib.nixosSystem {
specialArgs = inputs;

View file

@ -1,10 +1,11 @@
{
impermanence,
pkgs,
...
}: let
{ impermanence
, pkgs
, ...
}:
let
user = import ../users/user.nix;
in {
in
{
programs.fuse.userAllowOther = true;
fileSystems."/home/${user.primary.userName}" = {

View file

@ -1,6 +1,8 @@
{pkgs, ...}: let
{ pkgs, ... }:
let
user = import ../users/user.nix;
in {
in
{
imports = [
./nvim.nix
];

View file

@ -1,7 +1,6 @@
{
pkgs,
osConfig,
...
{ pkgs
, osConfig
, ...
}: {
programs = {
firefox = {

View file

@ -1,11 +1,13 @@
{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,11 +1,12 @@
{
osConfig,
pkgs,
...
}: let
{ osConfig
, pkgs
, ...
}:
let
notify-send = "${pkgs.libnotify}/bin/notify-send";
dmenu = "${pkgs.rofi-wayland}/bin/rofi -dmenu";
in {
in
{
xdg.configFile = {
"scripts/power_menu.sh" = {
executable = true;
@ -42,9 +43,11 @@ in {
'';
};
"scripts/volume_up.sh" = let
"scripts/volume_up.sh" =
let
wpctl = "${pkgs.wireplumber}/bin/wpctl";
in {
in
{
executable = true;
text = ''
#!/bin/sh
@ -56,10 +59,12 @@ in {
'';
};
"scripts/tmux_sessions.sh" = let
"scripts/tmux_sessions.sh" =
let
kitty = "${pkgs.kitty}/bin/kitty";
tmux = "${pkgs.tmux}/bin/tmux";
in {
in
{
executable = true;
text = ''
#!/bin/sh
@ -75,11 +80,13 @@ in {
;;
esac'';
};
"scripts/power_profile.sh" = let
"scripts/power_profile.sh" =
let
sudo = "/run/wrappers/bin/sudo";
cpupower = "${osConfig.boot.kernelPackages.cpupower}/bin/cpupower";
powerprofilesctl = "${pkgs.power-profiles-daemon}/bin/powerprofilesctl";
in {
in
{
executable = true;
text = ''
#!/bin/sh

View file

@ -1,8 +1,7 @@
{
config,
lib,
pkgs,
...
{ config
, lib
, pkgs
, ...
}: {
imports = [
./gnome-keyring.nix
@ -85,7 +84,8 @@
};
};
wayland.windowManager.sway.config.keybindings = let
wayland.windowManager.sway.config.keybindings =
let
modifier = config.wayland.windowManager.sway.config.modifier;
in
lib.mkOptionDefault {

View file

@ -1,11 +1,12 @@
{
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

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

View file

@ -1,7 +1,6 @@
{
config,
pkgs,
...
{ config
, pkgs
, ...
}: {
programs.waybar.enable = true;
programs.waybar.systemd.enable = true;
@ -90,9 +89,11 @@
"tray" = {
"spacing" = 4;
};
"custom/power_profile" = let
"custom/power_profile" =
let
script = "${config.xdg.configHome}/scripts/power_profile.sh";
in {
in
{
exec = "${script} icon";
on-click = "${script} toggle";
format = "{}";

View file

@ -1,7 +1,6 @@
{
config,
pkgs,
...
{ config
, pkgs
, ...
}: {
imports = [
./kitty.nix

View file

@ -1,7 +1,6 @@
{ pkgs, ... }: {
programs.tmux = {
enable = true;
shell = "${pkgs.zsh}/bin/zsh";
escapeTime = 0;
plugins = with pkgs; [
{

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,7 +1,7 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
{ lib
, stdenvNoCC
, fetchFromGitHub
,
}:
stdenvNoCC.mkDerivation {
pname = "catppuccin-wallpapers";

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,8 +1,7 @@
{
config,
lib,
pkgs,
...
{ config
, lib
, pkgs
, ...
}: {
imports = [
./filesystem.nix

View file

@ -1,8 +1,7 @@
{
lib,
pkgs,
config,
...
{ lib
, pkgs
, config
, ...
}: {
imports = [ ./disk.nix ./kernel.nix ];

View file

@ -1,7 +1,6 @@
{
lib,
pkgs,
...
{ lib
, pkgs
, ...
}: {
boot = {
initrd = {

View file

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

View file

@ -1,6 +1,8 @@
{pkgs, ...}: let
{ pkgs, ... }:
let
user = import ./user.nix;
in {
in
{
services.getty.autologinUser = user.primary.userName;
users.mutableUsers = false;
users.users = {