new formatter

This commit is contained in:
Glen Goodwin 2023-11-06 02:01:49 -05:00
parent 85aa90c2ac
commit 9fa59c1ba2
39 changed files with 556 additions and 405 deletions

View file

@ -1,50 +1,35 @@
{ inputs
, pkgs
, ...
{
inputs,
pkgs,
...
}: {
gtk = {
cursorTheme = {
name = "Catppuccin-Mocha-Dark-Cursors";
package = pkgs.catppuccin-cursors.mochaDark;
};
enable = true;
iconTheme = {
package = pkgs.catppuccin-papirus-folders.override {
flavor = "mocha";
accent = "blue";
};
name = "Papirus-Dark";
};
theme = {
package = pkgs.catppuccin-gtk.override {
size = "compact";
variant = "mocha";
};
name = "Catppuccin-Mocha-Compact-Blue-Dark";
};
};
}

View file

@ -1,9 +1,14 @@
{ config, lib, pkgs, system, inputs, ... }:
let
exec = "exec Hyprland";
in
{
imports = [ ../../programs/waybar.nix ];
config,
lib,
pkgs,
system,
inputs,
...
}: let
exec = "exec Hyprland";
in {
imports = [../../programs/waybar.nix];
environment = {
loginShellInit = ''
@ -55,7 +60,6 @@ in
xdg.portal = {
# Required for flatpak with window managers and for file browsing
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
extraPortals = [pkgs.xdg-desktop-portal-gtk];
};
}

View file

@ -1,6 +1,8 @@
{ pkgs, config, ... }:
let
{
pkgs,
config,
...
}: let
hyprlandConf = ''
monitor=,preferred,auto,1
#monitor=,preferred,auto,auto
@ -153,8 +155,7 @@ let
exec-once=${pkgs.blueman}/bin/blueman-applet
exec-once=${pkgs.swaybg}/bin/swaybg -m fill -i $HOME/.config/wall
'';
in
{
in {
xdg.configFile."hypr/hyprland.conf".text = hyprlandConf;
programs.swaylock.settings = {
@ -186,11 +187,20 @@ in
services.swayidle = {
enable = true;
events = [
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock -f"; }
{ event = "lock"; command = "lock"; }
{
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock -f";
}
{
event = "lock";
command = "lock";
}
];
timeouts = [
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -f"; }
{
timeout = 300;
command = "${pkgs.swaylock}/bin/swaylock -f";
}
];
systemdTarget = "xdg-desktop-portal-hyprland.service";
};
@ -198,7 +208,7 @@ in
home.packages = [
(pkgs.writeShellApplication {
name = "displayswitch";
runtimeInputs = [ ];
runtimeInputs = [];
text = builtins.readFile ./displayswitch.sh;
})
];

View file

@ -1,11 +1,14 @@
{ config, pkgs, user, ... }:
{
config,
pkgs,
user,
...
}: {
virtualisation = {
docker.enable = true;
};
users.groups.docker.members = [ "${user}" ];
users.groups.docker.members = ["${user}"];
#environment = {
# interactiveShellInit = ''
@ -19,4 +22,3 @@
kind
];
}

View file

@ -1,9 +1,11 @@
{ config, pkgs, user, ... }:
{
boot.kernelModules = [ "kvm-amd" ];
environment.systemPackages = with pkgs; [ virt-manager ];
config,
pkgs,
user,
...
}: {
boot.kernelModules = ["kvm-amd"];
environment.systemPackages = with pkgs; [virt-manager];
virtualisation.libvirtd.enable = true;
users.extraGroups.libvirtd.members = [ "${user}" ];
users.extraGroups.libvirtd.members = ["${user}"];
}

View file

@ -1,12 +1,13 @@
{ config, pkgs, user, ... }:
{
config,
pkgs,
user,
...
}: {
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [ "${user}" ];
users.extraGroups.vboxusers.members = ["${user}"];
virtualisation.virtualbox.host.enableExtensionPack = true;
#environment = {
# interactiveShellInit = ''
# alias rtmp='docker start nginx-rtmp'
@ -17,4 +18,3 @@
vagrant
];
}