formatted everything with nixfmt

This commit is contained in:
Gabriella Bere 2024-10-23 21:59:06 +01:00
parent 3675fbdcc1
commit b42a379322
20 changed files with 343 additions and 240 deletions

View file

@ -1,3 +1,4 @@
{config, ... }:{
{ config, ... }:
{
programs.git.enable = true;
}

View file

@ -1,4 +1,10 @@
{ config, pkgs, lib, inputs, ... }:
{
config,
pkgs,
lib,
inputs,
...
}:
{
home.username = "blue";
@ -10,7 +16,7 @@
./swaync.nix
./flatpak.nix
./sober.nix
# ./librewolf.nix
# ./librewolf.nix
./zsh.nix
./eza.nix
./nixvim.nix
@ -22,31 +28,31 @@
# States home manager version that config was originally compatible with, do not change without reading all patch notes since this version and altering as needed
home.stateVersion = "24.05";
# services.pass-secret-service.enable = true; # for use with protonmail-bridge
# services.pass-secret-service.enable = true; # for use with protonmail-bridge
services.gnome-keyring.enable = true; # used for protonmail-bridge and nextcloud-client
# Cursor configuration that I hope to one day understand, currently has a scaling issue but thats probably my fault
# home.pointerCursor =
# let
# getFrom = url: hash: name: {
# gtk.enable = true;
# x11.enable = true;
# name = name;
# size = 24;
# package =
# pkgs.runCommand "moveUp" {} ''
# mkdir -p $out/share/icons
# ln -s ${pkgs.fetchzip {
# url = url;
# hash = hash;
# }} $out/share/icons/${name}
# '';
# };
# in
# getFrom
# "https://github.com/ful1e5/fuchsia-cursor/releases/download/v2.0.0/Fuchsia-Pop.tar.gz"
# "sha256-BvVE9qupMjw7JRqFUj1J0a4ys6kc9fOLBPx2bGaapTk="
# "Fuchsia-Pop";
# home.pointerCursor =
# let
# getFrom = url: hash: name: {
# gtk.enable = true;
# x11.enable = true;
# name = name;
# size = 24;
# package =
# pkgs.runCommand "moveUp" {} ''
# mkdir -p $out/share/icons
# ln -s ${pkgs.fetchzip {
# url = url;
# hash = hash;
# }} $out/share/icons/${name}
# '';
# };
# in
# getFrom
# "https://github.com/ful1e5/fuchsia-cursor/releases/download/v2.0.0/Fuchsia-Pop.tar.gz"
# "sha256-BvVE9qupMjw7JRqFUj1J0a4ys6kc9fOLBPx2bGaapTk="
# "Fuchsia-Pop";
# General use home packages that dont require a separate module
home.packages = with pkgs; [
@ -54,7 +60,7 @@
grimblast
powerline-fonts
nix-output-monitor
# bitwarden-desktop
# bitwarden-desktop
xwaylandvideobridge
virtualbox
wofi
@ -86,33 +92,33 @@
lines = 3;
columns = 200;
};
# font.normal = {
# family = "hack";
# };
# keyboard.bindings = [
# {
# key = "K";
# mods = "Control";
# chars = "\\u000c";
# }
# ];
# font.normal = {
# family = "hack";
# };
# keyboard.bindings = [
# {
# key = "K";
# mods = "Control";
# chars = "\\u000c";
# }
# ];
};
};
# programs.hyprpaper = {
# enable = true;
# settings = {
# ipc = "on";
# splash = false;
# splash_offset = 2.0;
# programs.hyprpaper = {
# enable = true;
# settings = {
# ipc = "on";
# splash = false;
# splash_offset = 2.0;
# preload = [ "~/Pictures/wallpaper.png" ];
# preload = [ "~/Pictures/wallpaper.png" ];
# wallpaper = [
# ",~/Pictures/wallpaper.png"
# ];
# };
# };
# wallpaper = [
# ",~/Pictures/wallpaper.png"
# ];
# };
# };
programs.hyprlock = {
enable = true;
settings = {
@ -142,8 +148,8 @@
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
# placeholder_text = "<span foreground="##cad3f5">Password...</span>";
# shadow_passes = 2;
# placeholder_text = "<span foreground="##cad3f5">Password...</span>";
# shadow_passes = 2;
}
];
};

View file

@ -10,18 +10,17 @@
systemd.enable = true;
settings = {
# Monitor config for home desk layout
monitor =
[
"eDP-2, 2560x1600@165, 0x0, auto" # main laptop monitor
"DP-2, 1920x1080@119.98, -960x-1080, auto" # left external monitor
"DP-3, 1920x1080@119.98, 960x-1080, auto" # right external monitor
];
monitor = [
"eDP-2, 2560x1600@165, 0x0, auto" # main laptop monitor
"DP-2, 1920x1080@119.98, -960x-1080, auto" # left external monitor
"DP-3, 1920x1080@119.98, 960x-1080, auto" # right external monitor
];
# Define SUPER key as mod key
"$mod" = "SUPER";
# Set keyboard layout
input = {
input = {
kb_layout = "gb";
follow_mouse = 1;
mouse_refocus = false;
@ -39,24 +38,23 @@
];
# Declare all keybinds
bind =
[
# Keybinds for starting programs
"$mod, F, exec, firefox"
"$mod, 1, exec, alacritty"
"$mod, D, exec, vesktop"
"$mod, space, exec, wofi --show drun, run"
bind = [
# Keybinds for starting programs
"$mod, F, exec, firefox"
"$mod, 1, exec, alacritty"
"$mod, D, exec, vesktop"
"$mod, space, exec, wofi --show drun, run"
# Screenshot tool
", Print, exec, grimblast copy area"
# Screenshot tool
", Print, exec, grimblast copy area"
# Screen locking tool
"$mod, l, exec, hyprlock"
# Screen locking tool
"$mod, l, exec, hyprlock"
# Window management
"$mod, x, killactive"
"$mod, tab, togglefloating"
];
# Window management
"$mod, x, killactive"
"$mod, tab, togglefloating"
];
# Prevent xwayland apps from looking pixellated, cursor scaling to compensate for this is defined in home.nix
xwayland = {

View file

@ -1,4 +1,9 @@
{ config, pkgs, stablepkgs, ... }:
{
config,
pkgs,
stablepkgs,
...
}:
{
programs.librewolf = {
enable = true;

View file

@ -1,4 +1,5 @@
{ config, pkgs, ... }: {
{ config, pkgs, ... }:
{
services.nextcloud-client = {
enable = true;
startInBackground = true;

View file

@ -1,7 +1,8 @@
{config, pkgs, ... }: {
{ config, pkgs, ... }:
{
programs.nixvim = {
enable = true;
# plugins.neotree.enable = true;
# plugins.neotree.enable = true;
};
}

View file

@ -3,7 +3,7 @@
services.flatpak = {
packages = [
"sober:/root/sober.flatpakref"
# https://sober.vinegarhq.org/sober.flatpakref
# https://sober.vinegarhq.org/sober.flatpakref
];
remotes = {
"sober" = "https://sober.vinegarhq.org/";

View file

@ -1,7 +1,8 @@
{ config, ... }: {
stylix = {
enable = true;
# base16Scheme = "${pkgs.base16-schemes}/share/themes/icy.yaml";
image = ./wallpaper.png;
{ config, ... }:
{
stylix = {
enable = true;
# base16Scheme = "${pkgs.base16-schemes}/share/themes/icy.yaml";
image = ./wallpaper.png;
};
}

View file

@ -1,4 +1,4 @@
{config, pkgs, ...}:
{ config, pkgs, ... }:
{
# Enables swaync and automatically includes systemd user service to auto-start on login, this cannot be disabled so I am using it instead of hyprland exec-once otherwise home-manager complains that the service failed to start
services.swaync = {

View file

@ -1,5 +1,11 @@
{ config, pkgs, lib, inputs, ... }:
{
{
config,
pkgs,
lib,
inputs,
...
}:
{
programs.waybar = {
enable = true;
systemd.enable = true; # using these instead of exec-once beacuse SOME packages (swaync) dont let you disable them
@ -14,17 +20,25 @@
"DP-3"
];
modules-left = [ "wlr/taskbar" ];
modules-center = [ "clock" "custom/swaync" ];
modules-right = [ "pulseaudio/slider" "backlight/slider" "battery" "tray" ];
modules-center = [
"clock"
"custom/swaync"
];
modules-right = [
"pulseaudio/slider"
"backlight/slider"
"battery"
"tray"
];
"clock" = {
"format" = "{:%A %d %b %T}";
# "tooltip" = true;
# "tooltip-format" = "{=%A; %d %B %Y}\n<tt>{calendar}</tt>";
# "tooltip" = true;
# "tooltip-format" = "{=%A; %d %B %Y}\n<tt>{calendar}</tt>";
"interval" = 1;
};
"custom/swaync" = {
"tooltip" = false;
"format"= "{icon} {}";
"format" = "{icon} {}";
"format-icons" = {
"notification" = "🔔<span foreground='red'><sup>🔔</sup></span>";
"none" = "🔔";

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
programs.zsh = {