update
This commit is contained in:
30
modules/laptop/home-manager.nix
Normal file
30
modules/laptop/home-manager.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ lib, customConfig, ... }:
|
||||
|
||||
let
|
||||
username = customConfig.username;
|
||||
dotconfigPath = ../../dotconfig;
|
||||
dotconfigEntries = lib.filterAttrs (name: _: !(lib.hasPrefix "." name)) (builtins.readDir dotconfigPath);
|
||||
|
||||
mkConfigEntry = name: type:
|
||||
lib.nameValuePair name (
|
||||
{
|
||||
source = dotconfigPath + "/${name}";
|
||||
force = true;
|
||||
}
|
||||
// lib.optionalAttrs (type == "directory") {
|
||||
recursive = true;
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.backupFileExtension = "hm-backup";
|
||||
|
||||
home-manager.users.${username} = {
|
||||
home.stateVersion = "24.05";
|
||||
xdg.enable = true;
|
||||
|
||||
xdg.configFile = lib.mapAttrs' mkConfigEntry dotconfigEntries;
|
||||
};
|
||||
}
|
||||
@@ -50,8 +50,11 @@
|
||||
];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.dejavu-sans-mono
|
||||
nerd-fonts.droid-sans-mono
|
||||
nerd-fonts.dejavu-sans-mono
|
||||
nerd-fonts.droid-sans-mono
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-color-emoji
|
||||
];
|
||||
|
||||
programs.gnupg.agent = {
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
updatescreen = pkgs.writeShellScript "updatescreens.sh" ''
|
||||
#!/bin/sh
|
||||
i3-msg restart
|
||||
feh --bg-fill --no-xinerama Downloads/fire1.png
|
||||
'';
|
||||
in
|
||||
{
|
||||
services.xserver.enable = true;
|
||||
services.xserver.windowManager.i3.enable = true;
|
||||
@@ -20,13 +27,72 @@
|
||||
xss-lock
|
||||
dex
|
||||
rofi
|
||||
# i3status
|
||||
# i3blocks
|
||||
polybar
|
||||
polybarFull
|
||||
oh-my-posh
|
||||
picom
|
||||
playerctl
|
||||
zscroll
|
||||
feh
|
||||
glances
|
||||
arandr
|
||||
nautilus
|
||||
brightnessctl
|
||||
busybox
|
||||
];
|
||||
|
||||
services.autorandr = {
|
||||
enable = true;
|
||||
|
||||
hooks.postswitch = {
|
||||
"desktop-refresh" = builtins.readFile updatescreen;
|
||||
};
|
||||
|
||||
profiles = {
|
||||
listriple = {
|
||||
fingerprint = {
|
||||
eDP-1 = "00ffffffffffff0006af9cd400000000141f0104a522167803f225915758952a1f505400000001010101010101010101010101010101863d80c870b026406c30aa0058d7100000180000000f0000000000000000000000000020000000fd00283c4b4b10010a202020202020000000fe004231363055414e30332e32200a0091";
|
||||
HDMI-1 = "00ffffffffffff0010ac16f04c574e300615010380342078ea1ec5ae4f34b1260e5054a54b008180a940d100714f0101010101010101283c80a070b023403020360006442100001a000000ff00463532354d313231304e574c0a000000fc0044454c4c2055323431300a2020000000fd00384c1e5111000a2020202020200150020329f15090050403020716011f121314201511062309070767030c001000382d83010000e3050301023a801871382d40582c450006442100001e011d8018711c1620582c250006442100009e011d007251d01e206e28550006442100001e8c0ad08a20e02d10103e960006442100001800000000000000000000000000003e";
|
||||
DP-1 = "00ffffffffffff0010ac16f04c3952331314010380342078ea1ec5ae4f34b1260e5054a54b008180a940d100714f0101010101010101283c80a070b023403020360006442100001a000000ff00463532354d3035363352394c0a000000fc0044454c4c2055323431300a2020000000fd00384c1e5111000a202020202020016b020329f15090100403020404011f1f1313131313132309070767030c001000002d83010000e3050000023a801871382d40582c450006442100001e011d007251d01e206e28550006442100001e011d007251d01e206e28550006442100001e011d007251d01e206e285500064421000018000000000000000000000000000077";
|
||||
};
|
||||
|
||||
config = {
|
||||
eDP-1 = {
|
||||
enable = true;
|
||||
primary = true;
|
||||
position = "1200x1020";
|
||||
mode = "1920x1200";
|
||||
rotate = "normal";
|
||||
};
|
||||
DP-1 = {
|
||||
enable = true;
|
||||
position = "3120x563";
|
||||
mode = "1920x1200";
|
||||
rotate = "normal";
|
||||
};
|
||||
HDMI-1 = {
|
||||
enable = true;
|
||||
position = "0x0";
|
||||
mode = "1920x1200";
|
||||
rotate = "left";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
default = {
|
||||
fingerprint = {
|
||||
eDP-1 = "00ffffffffffff0006af9cd400000000141f0104a522167803f225915758952a1f505400000001010101010101010101010101010101863d80c870b026406c30aa0058d7100000180000000f0000000000000000000000000020000000fd00283c4b4b10010a202020202020000000fe004231363055414e30332e32200a0091";
|
||||
};
|
||||
|
||||
config = {
|
||||
eDP-1 = {
|
||||
enable = true;
|
||||
primary = true;
|
||||
position = "0x0";
|
||||
mode = "1920x1200";
|
||||
rotate = "normal";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user