formatted

This commit is contained in:
atagen 2023-04-21 01:58:39 +10:00
parent ba1684c8d4
commit 737ca01e49
24 changed files with 468 additions and 411 deletions

View file

@ -1,35 +1,37 @@
{ inputs, outputs, lib, config, pkgs, ... }:
let
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
wlogout_style_base = dots/wlogout/style.css;
wlogout_style = pkgs.runCommandLocal "wlogout_style_base" {wlogpath = lib.strings.escape ["/"] "${pkgs.wlogout}";} ''
cp ${wlogout_style_base} $out
sed -i "s/\/usr\/share\/wlogout/$wlogpath\/share\/wlogout/g" $out
sed -i "s/\/usr\/share\/wlogout/$wlogpath\/share\/wlogout/g" $out
sed -i "s/\/etc\/wlogout/$wlogpath\/etc\/wlogout/g" $out
'';
in
{
imports = [
in {
imports = [
inputs.hyprland.homeManagerModules.default
./programs/eww/default.nix
];
];
nixpkgs = {
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.unstable-pkgs
];
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
};
};
home.stateVersion = "22.11";
home.stateVersion = "22.11";
home.packages = with pkgs; [
home.packages = with pkgs; [
thunderbird
clementine
inkscape
@ -42,7 +44,7 @@ in
lazygit
fzf
zoxide
zellij
zellij
glib # for gsettings
grim
slurp
@ -60,13 +62,13 @@ in
swayosd
fuzzel
kdeconnect
kdeconnect
syncthing
keepassxc
git-credential-keepassxc
direnv
mpv
meslo-lgs-nf
@ -74,10 +76,10 @@ in
libsForQt5.qtstyleplugin-kvantum
gtk-engine-murrine
];
];
services.syncthing = {
enable = true;
enable = true;
};
wayland.windowManager.hyprland = {
@ -97,14 +99,14 @@ in
colors = builtins.readFile dots/eww/colors.scss;
};
systemd.user.startServices = "sd-switch";
systemd.user.startServices = "sd-switch";
systemd.user.services."hyprland-system76" = {
Unit = {
Description = "the hyprland process scheduler hook";
Requires = [ "dbus.service" ];
Requires = ["dbus.service"];
};
Install = {
WantedBy = [ "graphical-session.target" "default.target" ];
WantedBy = ["graphical-session.target" "default.target"];
};
Service = {
ExecStart = ''${pkgs.hyprland-system76-scheduler-integration}/bin/hyprland-system76-scheduler-hook.sh'';
@ -114,15 +116,19 @@ in
xresources.extraConfig = builtins.readFile ./dots/Xresources;
xdg.enable = true;
xdg.configFile = builtins.mapAttrs (name: value: { enable=true; text=builtins.readFile value; })
{
"wlogout/layout" = dots/wlogout/layout;
"wlogout/style.css" = wlogout_style;
"swaync/config.json" = dots/swaync/config.json;
"swaync/configSchema.json" = dots/swaync/configSchema.json;
"swaync/style.css" = dots/swaync/style.css;
"fuzzel/fuzzel.ini" = dots/fuzzel/fuzzel.ini;
};
xdg.configFile =
builtins.mapAttrs (name: value: {
enable = true;
text = builtins.readFile value;
})
{
"wlogout/layout" = dots/wlogout/layout;
"wlogout/style.css" = wlogout_style;
"swaync/config.json" = dots/swaync/config.json;
"swaync/configSchema.json" = dots/swaync/configSchema.json;
"swaync/style.css" = dots/swaync/style.css;
"fuzzel/fuzzel.ini" = dots/fuzzel/fuzzel.ini;
};
xdg.systemDirs.data = [
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
@ -151,9 +157,8 @@ in
enable = true;
};
};
programs.firefox =
{
programs.firefox = {
enable = true;
profiles.default = {
id = 0;
@ -174,7 +179,7 @@ in
programs.helix = {
enable = true;
# package = inputs.helix.packages.${pkgs.hostPlatform.system}.default;
# package = inputs.helix.packages.${pkgs.hostPlatform.system}.default;
settings = {
theme = "gruvbox_dark_hard";
editor.lsp.display-messages = true;
@ -288,6 +293,4 @@ in
}
];
};
}
}