From 7480f29b2d3af58dbdeb40bf557b6bca41cdd584 Mon Sep 17 00:00:00 2001 From: joy Date: Sun, 1 Sep 2024 21:55:50 +0200 Subject: [PATCH] formating --- flake.nix | 1 - hosts/laptop/default.nix | 5 +---- modules/hypr/hypridle/default.nix | 11 +++++++---- modules/hypr/hyprland/default.nix | 8 +++++--- modules/system/homemanger/default.nix | 2 +- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/flake.nix b/flake.nix index 6bfc71f..e61e12f 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,6 @@ }; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; - }; outputs = { diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 859f1f1..789cc82 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -1,7 +1,4 @@ -{ - inputs, - ... -}: { +{inputs, ...}: { networking.hostName = "laptop"; networking.networkmanager.enable = true; boot.loader.systemd-boot.enable = true; diff --git a/modules/hypr/hypridle/default.nix b/modules/hypr/hypridle/default.nix index e2c67f7..6bf20e9 100644 --- a/modules/hypr/hypridle/default.nix +++ b/modules/hypr/hypridle/default.nix @@ -1,8 +1,12 @@ -{lib,config,...}: { - options = { +{ + lib, + config, + ... +}: { + options = { hypridle.enable = lib.mkEnableOption "Enables kitty"; }; - + config = lib.mkIf config.hypridle.enable { home-manager.users.joy.services.hypridle = { enable = true; @@ -22,5 +26,4 @@ }; }; }; - } diff --git a/modules/hypr/hyprland/default.nix b/modules/hypr/hyprland/default.nix index 47ecab9..d89dce2 100644 --- a/modules/hypr/hyprland/default.nix +++ b/modules/hypr/hyprland/default.nix @@ -1,4 +1,8 @@ -{pkgs,inputs, ...}: { +{ + pkgs, + inputs, + ... +}: { home-manager.users.joy.home.packages = with pkgs; [ rofi-wayland pwvucontrol @@ -18,13 +22,11 @@ portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; }; - nix.settings = { substituters = ["https://hyprland.cachix.org"]; trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="]; }; - home-manager.users.joy.services.cliphist.enable = true; home-manager.users.joy.wayland.windowManager.hyprland = { diff --git a/modules/system/homemanger/default.nix b/modules/system/homemanger/default.nix index b247667..d16acee 100644 --- a/modules/system/homemanger/default.nix +++ b/modules/system/homemanger/default.nix @@ -8,7 +8,7 @@ "video/jpg" = ["mpv.desktop"]; "video/*" = ["mpv.desktop"]; }; - + home-manager.backupFileExtension = "backup"; home-manager.users.joy.home = { username = "joy";