feat: adapt home-manager-only config for changes

This commit is contained in:
Swarsel 2024-07-25 18:23:47 +02:00
parent 2db79465da
commit 00983d787e
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
36 changed files with 165 additions and 364 deletions

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
xdg.desktopEntries = {

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
programs.direnv = {
enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
home.sessionVariables = {
EDITOR = "bash ~/.dotfiles/scripts/editor.sh";

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
programs.eza = {
enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
programs.fuzzel = {
enable = true;

View file

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

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
services.gnome-keyring = {
enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
services.kdeconnect = {
enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
programs.kitty = {
enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
services.mako = {
enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
programs = {
bottom.enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
programs.ssh = {
enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
programs.starship = {
enable = true;

View file

@ -1,16 +1,16 @@
{ config, pkgs, lib, ... }: with lib;
let
monitors = config.swarselsystems.monitors;
inherit (config.swarselsystems) monitors;
eachMonitor = _name: monitor: {
name = monitor.name;
inherit (monitor) name;
value = builtins.removeAttrs monitor [ "workspace" "name" "output" ];
};
eachOutput = _name: monitor: {
name = monitor.name;
inherit (monitor) name;
value = builtins.removeAttrs monitor [ "mode" "name" "scale" "position" ];
};
workplaceSets = (mapAttrs' eachOutput monitors);
workplaceOutputs = (map (key: getAttr key workplaceSets) (attrNames workplaceSets));
workplaceSets = mapAttrs' eachOutput monitors;
workplaceOutputs = map (key: getAttr key workplaceSets) (attrNames workplaceSets);
in
{
wayland.windowManager.sway = {
@ -113,7 +113,7 @@ in
};
};
defaultWorkspace = "workspace 1:";
output = (mapAttrs' eachMonitor monitors);
output = mapAttrs' eachMonitor monitors;
input = config.swarselsystems.standardinputs;
workspaceOutputAssign = workplaceOutputs;
startup = config.swarselsystems.startup ++ [

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
home.file = {
"init.el" = {

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
services.blueman.enable = true;
}

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
nix.gc = {
automatic = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
services.gvfs.enable = true;
}

View file

@ -9,7 +9,7 @@
trackpoint = lib.mkIf config.swarselsystems.trackpoint.isAvailable {
enable = true;
device = config.swarselsystems.trackpoint.device;
inherit (config.swarselsystems.trackpoint) device;
};
pulseaudio = {

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
security.polkit.enable = true;
}

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
services.power-profiles-daemon.enable = true;
}

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
programs = {
dconf.enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
nix.optimise = {
automatic = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
services.syncthing = {
enable = true;

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
# systemd
systemd.extraConfig = ''

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
time = {
timeZone = "Europe/Vienna";

View file

@ -1,4 +1,4 @@
{ ... }:
_:
{
services.xserver = {
xkb = {