[feat] Alejandra formatting
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
{ inputs, pkgs, device, osConfig, ... }: {
|
||||
imports = [ inputs.anyrun.nixosModules.home-manager ];
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
device,
|
||||
osConfig,
|
||||
...
|
||||
}: {
|
||||
imports = [inputs.anyrun.nixosModules.home-manager];
|
||||
programs.anyrun = {
|
||||
enable = true;
|
||||
config = {
|
||||
@@ -15,10 +21,10 @@
|
||||
symbols
|
||||
kidex
|
||||
];
|
||||
x = { fraction = 0.5; };
|
||||
y = { fraction = 0.3; };
|
||||
height = { absolute = 0; };
|
||||
width = { absolute = 1000; };
|
||||
x = {fraction = 0.5;};
|
||||
y = {fraction = 0.3;};
|
||||
height = {absolute = 0;};
|
||||
width = {absolute = 1000;};
|
||||
showResultsImmediately = true;
|
||||
maxEntries = 10;
|
||||
layer = "overlay";
|
||||
@@ -26,10 +32,12 @@
|
||||
|
||||
extraConfigFiles = {
|
||||
"nixos-options.ron".text = let
|
||||
nixos-options = pkgs.lib.optionalString device.isNix
|
||||
nixos-options =
|
||||
pkgs.lib.optionalString device.isNix
|
||||
osConfig.system.build.manual.optionsJSON
|
||||
+ "/share/doc/nixos/options.json";
|
||||
hm-options = inputs.home-manager.packages.${pkgs.system}.docs-json
|
||||
hm-options =
|
||||
inputs.home-manager.packages.${pkgs.system}.docs-json
|
||||
+ "/share/doc/home-manager/options.json";
|
||||
# or alternatively if you wish to read any other documentation options, such as home-manager
|
||||
# get the docs-json package from the home-manager flake
|
||||
@@ -41,8 +49,13 @@
|
||||
# ":nall" = [nixos-options hm-options some-other-option];
|
||||
# };
|
||||
options = builtins.toJSON ({
|
||||
":hm" = [ hm-options ];
|
||||
} // (if device.isNix then { ":nix" = [ nixos-options ]; } else { }));
|
||||
":hm" = [hm-options];
|
||||
}
|
||||
// (
|
||||
if device.isNix
|
||||
then {":nix" = [nixos-options];}
|
||||
else {}
|
||||
));
|
||||
in ''
|
||||
Config(
|
||||
options: ${options},
|
||||
@@ -56,7 +69,9 @@
|
||||
)
|
||||
'';
|
||||
"websearch.ron".text =
|
||||
/* ron */
|
||||
/*
|
||||
ron
|
||||
*/
|
||||
''
|
||||
Config(
|
||||
prefix: "?",
|
||||
@@ -85,12 +100,12 @@
|
||||
"rink.ron".text = ''
|
||||
Config(
|
||||
currency: Some("${
|
||||
builtins.toFile "currency.units" ''
|
||||
!category currencies "Currencies"
|
||||
usd USD
|
||||
inr INR
|
||||
''
|
||||
}"),
|
||||
builtins.toFile "currency.units" ''
|
||||
!category currencies "Currencies"
|
||||
usd USD
|
||||
inr INR
|
||||
''
|
||||
}"),
|
||||
)
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{ pkgs, device, nur, inputs, ... }: {
|
||||
{
|
||||
pkgs,
|
||||
device,
|
||||
nur,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../common/firefox.nix
|
||||
../linux/hyprland.nix
|
||||
@@ -9,7 +15,6 @@
|
||||
../linux/mpd.nix
|
||||
];
|
||||
|
||||
|
||||
services.kdeconnect.enable = true;
|
||||
services.kdeconnect.indicator = true;
|
||||
services.swayosd.enable = true;
|
||||
@@ -19,10 +24,10 @@
|
||||
};
|
||||
|
||||
systemd.user.services.spotify-player = {
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
Install = {WantedBy = ["graphical-session.target"];};
|
||||
Unit = {
|
||||
Description = "Spotify Player Daemon";
|
||||
After = [ "graphical-session.target" ];
|
||||
After = ["graphical-session.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.spotify-player}/bin/spotify_player -d";
|
||||
|
||||
@@ -1,17 +1,25 @@
|
||||
{ devices, inputs, overlays, home-manager, ... }:
|
||||
{
|
||||
devices,
|
||||
inputs,
|
||||
overlays,
|
||||
home-manager,
|
||||
...
|
||||
}:
|
||||
builtins.listToAttrs (builtins.map (device: {
|
||||
name = device.user;
|
||||
value = let
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit overlays;
|
||||
system = device.system;
|
||||
};
|
||||
in home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
inherit device;
|
||||
};
|
||||
modules = [ { nixpkgs.config.allowUnfree = true; } ../common/home.nix ];
|
||||
};
|
||||
}) devices)
|
||||
name = device.user;
|
||||
value = let
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit overlays;
|
||||
system = device.system;
|
||||
};
|
||||
in
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
inherit device;
|
||||
};
|
||||
modules = [{nixpkgs.config.allowUnfree = true;} ../common/home.nix];
|
||||
};
|
||||
})
|
||||
devices)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
programs.foot = {
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
server.enable = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
@@ -6,8 +6,8 @@
|
||||
package = pkgs.catppuccin-gtk.override {
|
||||
variant = "mocha";
|
||||
size = "standard";
|
||||
accents = [ "mauve" ];
|
||||
tweaks = [ "normal" ];
|
||||
accents = ["mauve"];
|
||||
tweaks = ["normal"];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
};
|
||||
|
||||
cursorTheme = {
|
||||
name = "Vanillay-DMZ";
|
||||
package = pkgs.vanilla-dmz;
|
||||
name = "Vanillay-DMZ";
|
||||
package = pkgs.vanilla-dmz;
|
||||
};
|
||||
|
||||
gtk3.extraConfig = { gtk-application-prefer-dark-theme = 1; };
|
||||
gtk4.extraConfig = { gtk-application-prefer-dark-theme = 1; };
|
||||
gtk3.extraConfig = {gtk-application-prefer-dark-theme = 1;};
|
||||
gtk4.extraConfig = {gtk-application-prefer-dark-theme = 1;};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
{ pkgs, inputs, ... }: {
|
||||
imports = [ ../modules/hyprpaper.nix inputs.hyprlock.homeManagerModules.hyprlock ];
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [../modules/hyprpaper.nix inputs.hyprlock.homeManagerModules.hyprlock];
|
||||
|
||||
programs.hyprpaper =
|
||||
let wallpapers = import ../utils/wallhaven.nix { inherit pkgs; };
|
||||
in {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
systemd.target = "hyprland-session.target";
|
||||
settings.preload = wallpapers.all;
|
||||
settings.wallpapers = {
|
||||
"DP-3" = wallpapers.frieren_3;
|
||||
"DP-1" = wallpapers.shapes;
|
||||
};
|
||||
programs.hyprpaper = let
|
||||
wallpapers = import ../utils/wallhaven.nix {inherit pkgs;};
|
||||
in {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
systemd.target = "hyprland-session.target";
|
||||
settings.preload = wallpapers.all;
|
||||
settings.wallpapers = {
|
||||
"DP-3" = wallpapers.frieren_3;
|
||||
"DP-1" = wallpapers.shapes;
|
||||
};
|
||||
};
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{ inputs, pkgs, ... }: {
|
||||
imports = [ inputs.ironbar.homeManagerModules.default ];
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [inputs.ironbar.homeManagerModules.default];
|
||||
programs.ironbar = {
|
||||
enable = true;
|
||||
config.monitors = {
|
||||
@@ -8,11 +12,11 @@
|
||||
start = [
|
||||
{
|
||||
type = "launcher";
|
||||
favourites = [ "firefox" "discord" ];
|
||||
favourites = ["firefox" "discord"];
|
||||
show_names = false;
|
||||
show_icons = true;
|
||||
}
|
||||
{ type = "focused"; }
|
||||
{type = "focused";}
|
||||
];
|
||||
end = [
|
||||
{
|
||||
@@ -25,7 +29,7 @@
|
||||
type = "music";
|
||||
player_type = "mpris";
|
||||
}
|
||||
{ type = "clock"; }
|
||||
{type = "clock";}
|
||||
];
|
||||
};
|
||||
DP-3 = {
|
||||
@@ -46,25 +50,27 @@
|
||||
# networks= 3;
|
||||
};
|
||||
}
|
||||
{ type = "tray"; }
|
||||
{type = "tray";}
|
||||
];
|
||||
start = [
|
||||
{
|
||||
type = "workspaces";
|
||||
name_map = {
|
||||
"1" = "icon:foot";
|
||||
"2" = "icon:code";
|
||||
"3" = "icon:firefox";
|
||||
"4" = "icon:slack";
|
||||
"5" = "icon:steam";
|
||||
"6" = "icon:misc";
|
||||
"7" = "icon:misc";
|
||||
"8" = "icon:firefox";
|
||||
"9" = "icon:discord";
|
||||
"10" = "icon:spotify";
|
||||
};
|
||||
favorites = ["1" "2" "3" "4" "5" "6" "7" "8" "9" "10"];
|
||||
all_monitors = true;
|
||||
}
|
||||
];
|
||||
start = [{
|
||||
type = "workspaces";
|
||||
name_map = {
|
||||
"1" = "icon:foot";
|
||||
"2" = "icon:code";
|
||||
"3" = "icon:firefox";
|
||||
"4" = "icon:slack";
|
||||
"5" = "icon:steam";
|
||||
"6" = "icon:misc";
|
||||
"7" = "icon:misc";
|
||||
"8" = "icon:firefox";
|
||||
"9" = "icon:discord";
|
||||
"10" = "icon:spotify";
|
||||
};
|
||||
favorites = [ "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" ];
|
||||
all_monitors = true;
|
||||
}];
|
||||
};
|
||||
};
|
||||
style = let
|
||||
@@ -79,6 +85,7 @@
|
||||
sha256 = "sha256-vfwfBE3iqIN1cGoItSssR7h0z6tuJAhNarkziGFlNBw";
|
||||
};
|
||||
mocha = builtins.readFile "${catppuccin}/mocha.css";
|
||||
in mocha + builtins.readFile ./ironbar.css;
|
||||
in
|
||||
mocha + builtins.readFile ./ironbar.css;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{ pkgs, config, ... }: {
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user