added nixfmt-tree as formatter

also ran it, which is why so many files were modified
This commit is contained in:
Gabriella Bere 2025-06-03 16:10:04 +01:00
parent e8487933ec
commit f482d6f06b
14 changed files with 125 additions and 108 deletions

View file

@ -52,7 +52,8 @@
musnix.url = "github:musnix/musnix";
};
outputs = {
outputs =
{
self,
nixpkgs-stable,
nixpkgs,
@ -60,11 +61,14 @@
nur,
home-manager,
...
} @ inputs: let
}@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {allowUnfree = true;};
config = {
allowUnfree = true;
};
overlays = [
overlay-stable
overlay-master
@ -100,16 +104,15 @@
config.allowUnfree = true;
};
};
in {
in
{
nixosConfigurations.gabbielaptop = nixpkgs.lib.nixosSystem {
inherit system;
inherit pkgs;
specialArgs = {
inherit inputs;
};
modules =
genericModules
++ [
modules = genericModules ++ [
# Import nixos modules here
./hosts/gabbielaptop/configuration.nix
./modules/nh.nix
@ -129,9 +132,7 @@
nixosConfigurations.biggerpi = nixpkgs.lib.nixosSystem {
inherit system;
inherit pkgs;
modules =
genericModules
++ [
modules = genericModules ++ [
inputs.disko.nixosModules.disko
inputs.satisfactory-server.nixosModules.satisfactory
./hosts/biggerpi/configuration.nix
@ -153,5 +154,6 @@
inputs.nix-flatpak.homeManagerModules.nix-flatpak
];
};
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-tree;
};
}

View file

@ -1,4 +1,5 @@
{config, ...}: {
{ ... }:
{
programs.direnv = {
enable = true;
enableZshIntegration = true;

View file

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

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
programs.floorp = {
enable = true;
profiles.blue = {

View file

@ -2,7 +2,8 @@
pkgs,
lib,
...
}: {
}:
{
home.username = "blue";
home.homeDirectory = "/home/blue";

View file

@ -1,4 +1,5 @@
{...}: {
{ ... }:
{
# Enable Hyprland compositor
wayland.windowManager.hyprland = {
enable = true;

View file

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

View file

@ -2,7 +2,8 @@
config,
pkgs,
...
}: {
}:
{
programs.nvf = {
enable = true;
settings = {

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/heetch.yaml";

View file

@ -1,4 +1,5 @@
{config, ...}: {
{ config, ... }:
{
programs.waybar = {
enable = true;
systemd.enable = true; # using these instead of exec-once beacuse SOME packages (swaync) dont let you disable them

View file

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

View file

@ -3,7 +3,8 @@
pkgs,
config,
...
}: {
}:
{
imports = [
./hardware-configuration.nix
];
@ -72,7 +73,10 @@
};
programs.regreet = {
enable = true;
cageArgs = ["-m" "last"];
cageArgs = [
"-m"
"last"
];
};
# Enable the Hyprland WM functionality for NixOS (xdg portals etc.)

View file

@ -1,7 +1,8 @@
{
pkgs,
...
}: {
}:
{
# All system packages required from nixos-unstable by default
environment.systemPackages = with pkgs; [
wineWowPackages.stable