chore: formatting

chore: formatting 2
This commit is contained in:
Alexandre Cavalheiro 2024-04-11 20:02:59 -03:00
parent 0085967b84
commit 66a3e23840
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
3 changed files with 25 additions and 20 deletions

View file

@ -2,7 +2,7 @@
description = "NixOS System Flake"; description = "NixOS System Flake";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
@ -18,25 +18,27 @@
outputs = { self, home-manager, hyprland, nixpkgs, ... }@inputs: outputs = { self, home-manager, hyprland, nixpkgs, ... }@inputs:
let system = "x86_64-linux"; let system = "x86_64-linux";
in { in {
nixosConfigurations."nixos" = let nixosConfigurations."nixos" =
specialArgs = inputs; let
modules = [ specialArgs = inputs;
./nixos.nix modules = [
./nixos.nix
hyprland.nixosModules.default hyprland.nixosModules.default
{ programs.hyprland.enable = true; } { programs.hyprland.enable = true; }
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs; home-manager.extraSpecialArgs = inputs;
home-manager.users.wizardlink = import ./home-manager.nix; home-manager.users.wizardlink = import ./home-manager.nix;
} }
]; ];
in nixpkgs.lib.nixosSystem { inherit system specialArgs modules; }; in
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
formatter."${system}" = nixpkgs.legacyPackages.${system}.nixfmt; formatter."${system}" = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
}; };
} }

View file

@ -2,9 +2,11 @@
let let
validFlavors = [ "Frappe" "Latte" "Macchiato" "Mocha" ]; validFlavors = [ "Frappe" "Latte" "Macchiato" "Mocha" ];
pname = "catppucin-qt5ct"; pname = "catppucin-qt5ct";
in lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ] in
lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ]
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation
{
inherit pname; inherit pname;
version = "unstable-2023-10-24"; version = "unstable-2023-10-24";

View file

@ -7,7 +7,8 @@ let
url = imgLink; url = imgLink;
sha256 = "sha256-lrQv8VAks86zMzRaF9VEZotp78O9M7/dV8jZNTRb6SY="; sha256 = "sha256-lrQv8VAks86zMzRaF9VEZotp78O9M7/dV8jZNTRb6SY=";
}; };
in pkgs.stdenv.mkDerivation { in
pkgs.stdenv.mkDerivation {
name = "sddm-theme"; name = "sddm-theme";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "MarianArlt"; owner = "MarianArlt";