mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 20:03:55 -05:00
Aly Raffauf
97db653259
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / adjustor-build (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / hd-ui-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / pacifidlog-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* overlays: init with tablet overlays * flake: add overlays.tablet * overlays.tablet: document * pacifidlog: migrate to overlays.tablet * pacvifidlog: cleanup * overlays: add rofi-bluetooth * flake: output adjustor and hhd-ui * flake: reorg packages and overlays * flake.devShells.default: add nix-update * github: add adjustor and hhd-ui to ci * githuib: test builds * github: undo test change * pkgs: update descriptions * pkgs: reformat
95 lines
2.4 KiB
Nix
95 lines
2.4 KiB
Nix
# Framework Laptop 13 with AMD Ryzen 7640U, 32GB RAM, 1TB SSD.
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
self,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./home.nix
|
|
./secrets.nix
|
|
./stylix.nix
|
|
(import ./../../disko/luks-btrfs-subvolumes.nix {disks = ["/dev/nvme0n1"];})
|
|
self.nixosModules.common-auto-upgrade
|
|
self.nixosModules.common-base
|
|
self.nixosModules.common-locale
|
|
self.nixosModules.common-mauville-share
|
|
self.nixosModules.common-nix
|
|
self.nixosModules.common-pkgs
|
|
self.nixosModules.common-tailscale
|
|
self.nixosModules.common-wifi-profiles
|
|
self.nixosModules.hw-framework-13-amd-7000
|
|
];
|
|
|
|
boot = {
|
|
initrd.systemd.enable = true;
|
|
|
|
lanzaboote = {
|
|
enable = true;
|
|
pkiBundle = "/etc/secureboot";
|
|
};
|
|
|
|
loader = {
|
|
efi.canTouchEfiVariables = true;
|
|
systemd-boot.enable = lib.mkForce false;
|
|
};
|
|
};
|
|
|
|
environment.variables.GDK_SCALE = "2";
|
|
networking.hostName = "lavaridge";
|
|
|
|
services.udev.extraRules = let
|
|
hyprlandDynamicRes = pkgs.writeShellScript "hyprland-dynamic-resolution" ''
|
|
MON="eDP-1"
|
|
RES="2880x1920"
|
|
|
|
for dir in /run/user/*; do
|
|
for hypr_dir in "$dir/hypr/"*/; do
|
|
socket="''${hypr_dir}.socket.sock"
|
|
if [[ -S $socket ]]; then
|
|
monitor_info=$(echo -e "monitors" | ${lib.getExe pkgs.socat} - UNIX-CONNECT:"$socket")
|
|
|
|
if echo "$monitor_info" | grep -q "$MON"; then
|
|
echo -e "keyword monitor $MON, $RES@$1, 0x0, 2, vrr, $2" | ${lib.getExe pkgs.socat} - UNIX-CONNECT:"$socket"
|
|
fi
|
|
|
|
fi
|
|
done
|
|
done
|
|
'';
|
|
in ''
|
|
SUBSYSTEM=="power_supply", ATTR{online}=="1", ACTION=="change", RUN+="${hyprlandDynamicRes} 120 1"
|
|
SUBSYSTEM=="power_supply", ATTR{online}=="0", ACTION=="change", RUN+="${hyprlandDynamicRes} 60 0"
|
|
'';
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
ar = {
|
|
apps = {
|
|
firefox.enable = true;
|
|
podman.enable = true;
|
|
steam.enable = true;
|
|
virt-manager.enable = true;
|
|
};
|
|
|
|
desktop = {
|
|
greetd.enable = true;
|
|
hyprland.enable = true;
|
|
sway.enable = true;
|
|
};
|
|
|
|
laptopMode = true;
|
|
|
|
users.aly = {
|
|
enable = true;
|
|
password = "$y$j9T$NSS7QcEtN4yiigPyofwlI/$nxdgz0lpySa0heDMjGlHe1gX3BWf48jK6Tkfg4xMEs6";
|
|
syncthing = {
|
|
enable = true;
|
|
certFile = config.age.secrets.syncthingCert.path;
|
|
keyFile = config.age.secrets.syncthingKey.path;
|
|
};
|
|
};
|
|
};
|
|
}
|