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";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
home-manager = {
url = "github:nix-community/home-manager";
@ -18,25 +18,27 @@
outputs = { self, home-manager, hyprland, nixpkgs, ... }@inputs:
let system = "x86_64-linux";
in {
nixosConfigurations."nixos" = let
specialArgs = inputs;
modules = [
./nixos.nix
nixosConfigurations."nixos" =
let
specialArgs = inputs;
modules = [
./nixos.nix
hyprland.nixosModules.default
{ programs.hyprland.enable = true; }
hyprland.nixosModules.default
{ programs.hyprland.enable = true; }
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs;
home-manager.users.wizardlink = import ./home-manager.nix;
}
];
in nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
home-manager.extraSpecialArgs = inputs;
home-manager.users.wizardlink = import ./home-manager.nix;
}
];
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
validFlavors = [ "Frappe" "Latte" "Macchiato" "Mocha" ];
pname = "catppucin-qt5ct";
in lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ]
in
lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ]
stdenvNoCC.mkDerivation {
stdenvNoCC.mkDerivation
{
inherit pname;
version = "unstable-2023-10-24";

View file

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