diff options
Diffstat (limited to 'profiles/laptop.nix')
-rw-r--r-- | profiles/laptop.nix | 142 |
1 files changed, 63 insertions, 79 deletions
diff --git a/profiles/laptop.nix b/profiles/laptop.nix index d34baea..9409a77 100644 --- a/profiles/laptop.nix +++ b/profiles/laptop.nix @@ -1,16 +1,19 @@ -# helium laptop +# helium / boron laptops { pkgs, lib, ... }: { imports = [ + ../lib/calendars.nix ../lib/common.nix - ../lib/urxvt.nix - ../lib/linux.nix ../lib/emacs.nix - ../lib/ssh.nix + ../lib/email.nix + ../lib/linux.nix ../lib/packages.nix - # ../lib/email.nix + # ../lib/polybar.nix + ../lib/ssh.nix + ../lib/urxvt.nix ]; + nixpkgs.config = import ../lib/config.nix; home = { packages = with pkgs; [ @@ -22,63 +25,68 @@ ]; }; - services.polybar.enable = true; + services.polybar.enable = false; services.polybar.script = "polybar top &"; services.polybar.config."bar/top".monitor = "\${env:MONITOR:HDMI-2}"; services.polybar.config."bar/top".monitor-fallback = "\${env:MONITOR:eDP-1}"; - programs.autorandr.enable = true; - - programs.autorandr.hooks.postswitch = { - "restart-polybar" = "systemctl --user restart polybar.service"; - }; - - programs.autorandr.profiles = let - fingerprint = { - # get fingerprints with `autorandr --fingerprint` - eDP-1 = "00ffffffffffff000daea814000000002c170104951f11780237459e55539229125054000000010101010101010101010101010101015e358096703814402c1c240034ad10000018000000fe004e3134304847452d4541310a20000000fe00434d4e0a202020202020202020000000fe004e3134304847452d4541310a20001f"; - HDMI-2 = "00ffffffffffff0006b3ca28305f010025200103803e22782aad65ad50459f250e50542308008140818081c081009500b300d1c001014dd000a0f0703e80303035006d552100001a565e00a0a0a02950302035006d552100001e000000fd00283c1ea03c000a202020202020000000fc0041535553205647323839513141012b02034df154010304121305141f1007060260610e0f15161d1e2309070783010000e200d567030c001000383c67d85dc401788003681a00000101283ef0e305e301e40f003000e606070159521c023a801871382d40582c45006d552100001e00000000000000000000000000000000000000000000000000000000000000009e"; - }; - - externalMonitor = rotate: { - enable = true; - primary = true; - position = "0x0"; - mode = "2560x1440"; - dpi = 221; - rate = "60.00"; - inherit rotate; - }; - - laptopScreen = { - enable = true; - primary = true; - position = "0x0"; - mode = "1920x1080"; - rate = "60.00"; - dpi = 156; + # https://github.com/nix-community/home-manager/issues/3263#issuecomment-1328664060 + xdg.configFile."autostart/gnome-keyring-ssh.desktop".text = '' + [Desktop Entry] + Type=Application + Hidden=true + ''; + + programs.autorandr = { + enable = true; + hooks.postswitch = { + "restart-polybar" = "systemctl --user restart polybar.service"; }; + profiles = let + fingerprint = { + # get fingerprints with `autorandr --fingerprint` + eDP-1 = "00ffffffffffff000daea814000000002c170104951f11780237459e55539229125054000000010101010101010101010101010101015e358096703814402c1c240034ad10000018000000fe004e3134304847452d4541310a20000000fe00434d4e0a202020202020202020000000fe004e3134304847452d4541310a20001f"; + HDMI-2 = "00ffffffffffff0006b3ca28305f010025200103803e22782aad65ad50459f250e50542308008140818081c081009500b300d1c001014dd000a0f0703e80303035006d552100001a565e00a0a0a02950302035006d552100001e000000fd00283c1ea03c000a202020202020000000fc0041535553205647323839513141012b02034df154010304121305141f1007060260610e0f15161d1e2309070783010000e200d567030c001000383c67d85dc401788003681a00000101283ef0e305e301e40f003000e606070159521c023a801871382d40582c45006d552100001e00000000000000000000000000000000000000000000000000000000000000009e"; + }; + externalMonitor = rotate: { + enable = true; + primary = true; + position = "0x0"; + mode = "2560x1440"; + dpi = 221; + rate = "60.00"; + inherit rotate; + }; + laptopScreen = { + enable = true; + primary = true; + position = "0x0"; + mode = "1920x1080"; + rate = "60.00"; + dpi = 156; + }; - in { - #docked-portrait = { - # fingerprint = { inherit (fingerprint) HDMI-2; }; - # config = { - # eDP-1.enable = false; - # HDMI-2 = externalMonitor "right"; - # }; - #}; - docked = { - inherit fingerprint; - config = { - eDP-1.enable = false; - HDMI-2 = externalMonitor "normal"; + in { + #docked-portrait = { + # fingerprint = { inherit (fingerprint) HDMI-2; }; + # config = { + # eDP-1.enable = false; + # HDMI-2 = externalMonitor "right"; + # }; + #}; + docked = { + inherit fingerprint; + config = { + eDP-1.enable = false; + HDMI-2 = externalMonitor "normal"; + }; }; - }; - laptop = { - fingerprint = { inherit (fingerprint) eDP-1; }; - config = { - HDMI-2.enable = false; - eDP-1 = laptopScreen; + laptop = { + fingerprint = { inherit (fingerprint) eDP-1; }; + config = { + HDMI-2.enable = false; + eDP-1 = laptopScreen; + }; }; }; }; @@ -89,7 +97,6 @@ enable = false; backend = "glx"; vSync = true; - # Transparency/Opacity inactiveOpacity = 0.70; activeOpacity = 0.95; @@ -98,16 +105,13 @@ "100:class_g *?= 'Deadd-notification-center'" "100:class_g *?= 'Rofi'" ]; - # Fading fade = true; fadeDelta = 5; - # Shadows shadowExclude = [ "class_g = 'eww-topbar-btw'" ]; - settings = { # Blur blur-method = "dual_kawase"; @@ -115,7 +119,6 @@ blur-backgroud-exclude = [ "class_g = 'eww-topbar-btw'" ]; - # Radius corner-radius = 10; round-borders = 1; @@ -124,23 +127,4 @@ ]; }; }; - - # this doesn't have an 'enable' option?? - #services.muchsync = { - # remotes = { - # lithium = { - # frequency = "*:0/05"; - # upload = true; - # remote = { - # host = "dev.simatime.com"; - # checkForModifiedFiles = true; - # importNew = true; - # }; - # local = { - # checkForModifiedFiles = true; - # importNew = true; - # }; - # }; - # }; - #}; } |