This commit is contained in:
steveej 2023-11-23 17:52:21 +01:00
parent 563ffc4022
commit 93d6e2e39a
19 changed files with 185 additions and 188 deletions

View file

@ -9,7 +9,7 @@
...
}: let
# pkgsMaster = nodeFlake.inputs.nixpkgs-master.legacyPackages.${pkgs.system};
pkgsUnstableSmall = import nodeFlake.inputs.nixpkgs-unstable-small { inherit (pkgs) system config; };
pkgsUnstableSmall = import nodeFlake.inputs.nixpkgs-unstable-small {inherit (pkgs) system config;};
pkgs2211 = nodeFlake.inputs.nixpkgs-2211.legacyPackages.${pkgs.system};
in {
imports = [

View file

@ -72,7 +72,8 @@ in {
name = "switch-to-application-${toString (i + 1)}";
value = [];
})
numWorkspaces) ++ [
numWorkspaces)
++ [
{
name = "toggle-overview";
value = [];

View file

@ -43,7 +43,6 @@
# Vimium C
{id = "hfjbmagddngcpeloejdejnfgbamkjaeg";}
]);
in {
programs.chromium = {
enable = true;

View file

@ -1,7 +1,4 @@
{
pkgs,
...
}: {
{pkgs, ...}: {
services.espanso = {
# package = pkgs.espanso.overrideAttrs(_: {
# # src =
@ -17,7 +14,8 @@
playerctl = ''
${pkgs.coreutils}/bin/env DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(${pkgs.coreutils}/bin/id -u)/bus" ${pkgs.playerctl}/bin/playerctl'';
in {
default = { matches = [
default = {
matches = [
{
trigger = ":vpos";
replace = "{{output}}";

View file

@ -1,11 +1,20 @@
{lib, pkgs, config, ...}: {
home.packages = [
{
lib,
pkgs,
config,
...
}: {
home.packages =
[
pkgs.gcr
] ++
(if config.services.gpg-agent.pinentryFlavor == "gtk2" then [pkgs.pinentry-gtk2]
else if config.services.gpg-agent.pinentryFlavor == "gnome3" then [pkgs.pinentry-gnome]
else [])
;
]
++ (
if config.services.gpg-agent.pinentryFlavor == "gtk2"
then [pkgs.pinentry-gtk2]
else if config.services.gpg-agent.pinentryFlavor == "gnome3"
then [pkgs.pinentry-gnome]
else []
);
programs.gpg.enable = true;
services.gpg-agent = {

View file

@ -7,11 +7,9 @@
}:
# useful testing command:
# for i in `seq 0 10`; do nix shell nixpkgs#libnotify --command notify-send notifiiiiiii "$i"; sleep 1; done
let
inherit (import ../lib.nix {}) mkSimpleTrayService;
in
{
in {
home.packages = [
packages'.salut
];

View file

@ -1,8 +1,9 @@
# WARN: this file will get overwritten by $ cachix use <name>
{ pkgs, lib, ... }:
let
{
pkgs,
lib,
...
}: let
folder = ./cachix;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
@ -11,4 +12,3 @@ in {
inherit imports;
nix.settings.substituters = ["https://cache.nixos.org/"];
}

View file

@ -1,4 +1,3 @@
{
nix = {
settings.substituters = [
@ -9,4 +8,3 @@
];
};
}

View file

@ -9,8 +9,7 @@
nodeName,
system,
...
}: let
in {
}: {
disabledModules = [
# "services/networking/hostapd.nix"
];
@ -46,7 +45,7 @@ in {
};
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = ["nix-command" "flakes"];
boot = {
kernel = {
@ -132,7 +131,6 @@ in {
pkgs.hdparm
];
# home-manager.users.steveej = _: {
# imports = [
# ../../../home-manager/configuration/text-minimal.nix

View file

@ -24,40 +24,40 @@ in {
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
# CPU_ENERGY_PERF_POLICY_ON_AC="balance_power";
CPU_ENERGY_PERF_POLICY_ON_BAT="power";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
# SCHED_POWERSAVE_ON_AC="1";
SCHED_POWERSAVE_ON_BAT="1";
SCHED_POWERSAVE_ON_BAT = "1";
CPU_BOOST_ON_AC="0";
CPU_BOOST_ON_BAT="0";
CPU_BOOST_ON_AC = "0";
CPU_BOOST_ON_BAT = "0";
# RADEON_DPM_PERF_LEVEL_ON_AC="auto";
RADEON_DPM_PERF_LEVEL_ON_BAT="low";
RADEON_DPM_PERF_LEVEL_ON_BAT = "low";
# RADEON_DPM_STATE_ON_AC="balanced";
RADEON_DPM_STATE_ON_BAT="battery";
RADEON_DPM_STATE_ON_BAT = "battery";
# SOUND_POWER_SAVE_ON_AC="1";
SOUND_POWER_SAVE_ON_BAT="1";
SOUND_POWER_SAVE_ON_BAT = "1";
# # PLATFORM_PROFILE_ON_AC="low-power";
# # PLATFORM_PROFILE_ON_BAT="low-power";
# PLATFORM_PROFILE_ON_AC="balanced";
PLATFORM_PROFILE_ON_BAT="low-power";
PLATFORM_PROFILE_ON_BAT = "low-power";
# RUNTIME_PM_ON_AC = "auto";
RUNTIME_PM_ON_BAT = "auto";
# PCIE_ASPM_ON_AC="default";
PCIE_ASPM_ON_BAT="powersave";
PCIE_ASPM_ON_BAT = "powersave";
START_CHARGE_THRESH_BAT0 = "75";
STOP_CHARGE_THRESH_BAT0 = "80";
WOL_DISABLE="Y";
WOL_DISABLE = "Y";
# WIFI_PWR_ON_AC="on";
WIFI_PWR_ON_BAT="on";
DEVICES_TO_DISABLE_ON_STARTUP="wwan";
WIFI_PWR_ON_BAT = "on";
DEVICES_TO_DISABLE_ON_STARTUP = "wwan";
# #DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan";
# #DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan";
# #DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi";
@ -80,7 +80,6 @@ in {
];
};
# boot.initrd.availableKernelModules = stage1Modules;
boot.initrd.kernelModules = stage1Modules;
}

View file

@ -100,8 +100,7 @@ in {
enable = true;
package = lib.mkForce pkgs.gnome3.gvfs;
};
environment.systemPackages = with pkgs; [ lxqt.lxqt-policykit ]; # provides a default authentification client for policykit
environment.systemPackages = with pkgs; [lxqt.lxqt-policykit]; # provides a default authentification client for policykit
security.pki.certificateFiles = ["${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"];

View file

@ -36,7 +36,6 @@
};
};
# gnome, most of it is disabled and ideally it could live entirely in the user's home config
programs.gpaste.enable = false;
programs.gnome-terminal.enable = false;

View file

@ -18,7 +18,6 @@
services.resolved.enable = true;
# hardware related services
services.illum.enable = true;
services.pcscd.enable = true;

View file

@ -1,13 +1,13 @@
{ lib
, src
, rustPlatform
, libinput
, libxkbcommon
, mesa
, pango
, udev
{
lib,
src,
rustPlatform,
libinput,
libxkbcommon,
mesa,
pango,
udev,
}:
rustPlatform.buildRustPackage rec {
pname = "jay";
version = src.rev;
@ -31,6 +31,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/mahkoh/jay";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ dit7ya ];
maintainers = with maintainers; [dit7ya];
};
}

View file

@ -1,20 +1,20 @@
{ lib
, src
, craneLib
, pkg-config
, wayland
, libseat
, libinput
, libxkbcommon
, mesa
, pango
, udev
, dbus
, libGL
{
lib,
src,
craneLib,
pkg-config,
wayland,
libseat,
libinput,
libxkbcommon,
mesa,
pango,
udev,
dbus,
libGL,
}:
craneLib.buildPackage {inherit src;
craneLib.buildPackage {
inherit src;
pname = "magmawm";
version = src.rev;
@ -45,6 +45,6 @@ craneLib.buildPackage {inherit src;
homepage = "https://github.com/MagmaWM/MagmaWM";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [];
};
}