mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
work setup done
This commit is contained in:
parent
638ef7093e
commit
9767be163b
7 changed files with 6034 additions and 2 deletions
5978
hosts/work/facter.json
Normal file
5978
hosts/work/facter.json
Normal file
File diff suppressed because it is too large
Load diff
20
hosts/work/monitors.nix
Normal file
20
hosts/work/monitors.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
_: {
|
||||||
|
monitors = [
|
||||||
|
{
|
||||||
|
name = "DP-4";
|
||||||
|
resolution = "1920x1200";
|
||||||
|
position = "1920x0";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "HDMI-A-5";
|
||||||
|
resolution = "1920x1080";
|
||||||
|
position = "0x0";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "DP-5";
|
||||||
|
resolution = "1920x1200";
|
||||||
|
position = "3840x0";
|
||||||
|
transform = 1;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -9,4 +9,13 @@ _: {
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
};
|
};
|
||||||
|
fireproof.home-manager.wayland.windowManager.hyprland.settings = {
|
||||||
|
env = [
|
||||||
|
"LIBVA_DRIVER_NAME,nvidia"
|
||||||
|
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||||
|
"NVD_BACKEND,direct"
|
||||||
|
];
|
||||||
|
|
||||||
|
cursor.no_hardware_cursors = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
modules/apps/slack.nix
Normal file
5
modules/apps/slack.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{pkgsUnstable, ...}: {
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgsUnstable.slack
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -15,6 +15,10 @@ with lib; let
|
||||||
inherit name;
|
inherit name;
|
||||||
kb_layout = "eu";
|
kb_layout = "eu";
|
||||||
};
|
};
|
||||||
|
mkMouse = name: sensitivity: {
|
||||||
|
inherit name;
|
||||||
|
sensitivity = sensitivity;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./hyprpolkitagent.nix
|
./hyprpolkitagent.nix
|
||||||
|
|
@ -74,7 +78,11 @@ in {
|
||||||
if m.position != null
|
if m.position != null
|
||||||
then m.position
|
then m.position
|
||||||
else "auto";
|
else "auto";
|
||||||
in "${name}, ${resolution}${refreshRate}, ${position}, 1"
|
transform =
|
||||||
|
if m.transform != null
|
||||||
|
then ", transform, ${builtins.toString m.transform}"
|
||||||
|
else "";
|
||||||
|
in "${name}, ${resolution}${refreshRate}, ${position}, 1${transform}"
|
||||||
)
|
)
|
||||||
config.monitors;
|
config.monitors;
|
||||||
|
|
||||||
|
|
@ -115,9 +123,13 @@ in {
|
||||||
|
|
||||||
# Names can be found with:
|
# Names can be found with:
|
||||||
# $ hyprctl devices -j | jq '.["keyboards"].[].name' -r | grep -vE "(system|consumer)-control"
|
# $ hyprctl devices -j | jq '.["keyboards"].[].name' -r | grep -vE "(system|consumer)-control"
|
||||||
device = map mkKeyboard [
|
device = [
|
||||||
|
# $ hyprctl devices -j | jq '.["mice"].[].name' -r
|
||||||
|
(mkMouse "logitech-usb-ps/2-optical-mouse" 0.2)
|
||||||
|
] ++ map mkKeyboard [
|
||||||
"splitkb-kyria-rev1"
|
"splitkb-kyria-rev1"
|
||||||
"zsa-technology-labs-inc-ergodox-ez-shine"
|
"zsa-technology-labs-inc-ergodox-ez-shine"
|
||||||
|
"mattia-dal-ben-redox_wireless"
|
||||||
"zsa-technology-labs-inc-ergodox-ez-shine-keyboard"
|
"zsa-technology-labs-inc-ergodox-ez-shine-keyboard"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,6 @@
|
||||||
./apps/spotify.nix
|
./apps/spotify.nix
|
||||||
./apps/firefox.nix
|
./apps/firefox.nix
|
||||||
./apps/ghostty.nix
|
./apps/ghostty.nix
|
||||||
|
./apps/slack.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,13 @@
|
||||||
default = 1.0;
|
default = 1.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
transform = lib.mkOption {
|
||||||
|
# https://wiki.hyprland.org/Configuring/Monitors/#rotating
|
||||||
|
type = lib.types.nullOr lib.types.int;
|
||||||
|
default = null;
|
||||||
|
example = 1;
|
||||||
|
};
|
||||||
|
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue