mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 23:31:55 -05:00
99 lines
2.4 KiB
Nix
99 lines
2.4 KiB
Nix
# Lenovo Yoga 9i Convertible with Intel Core i7-1360P, 16GB RAM, 512GB SSD.
|
|
{
|
|
config,
|
|
lib,
|
|
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-overlays
|
|
self.nixosModules.common-pkgs
|
|
self.nixosModules.common-tailscale
|
|
self.nixosModules.common-wifi-profiles
|
|
self.nixosModules.hw-lenovo-yoga-9i-intel-13th
|
|
];
|
|
|
|
boot = {
|
|
initrd.systemd.enable = true;
|
|
extraModulePackages = with config.boot.kernelPackages; [acpi_call];
|
|
|
|
lanzaboote = {
|
|
enable = true;
|
|
pkiBundle = "/etc/secureboot";
|
|
};
|
|
|
|
loader = {
|
|
efi.canTouchEfiVariables = true;
|
|
systemd-boot.enable = lib.mkForce false;
|
|
};
|
|
};
|
|
|
|
environment.variables = {
|
|
FLAKE = lib.mkForce "github:alyraffauf/nixcfg/24.11";
|
|
GDK_SCALE = "2";
|
|
};
|
|
|
|
networking.hostName = "petalburg";
|
|
|
|
nixpkgs.overlays = [
|
|
(final: prev: {
|
|
brave = prev.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
|
|
|
|
obsidian = prev.obsidian.overrideAttrs (old: {
|
|
installPhase =
|
|
builtins.replaceStrings ["--ozone-platform=wayland"]
|
|
["--ozone-platform=wayland --enable-wayland-ime"]
|
|
old.installPhase;
|
|
});
|
|
|
|
vscodium = prev.vscodium.override {commandLineArgs = "--enable-wayland-ime";};
|
|
|
|
webcord = prev.webcord.overrideAttrs (old: {
|
|
installPhase =
|
|
builtins.replaceStrings ["--ozone-platform-hint=auto"]
|
|
["--ozone-platform-hint=auto --enable-wayland-ime"]
|
|
old.installPhase;
|
|
});
|
|
})
|
|
];
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
ar = {
|
|
apps = {
|
|
firefox.enable = true;
|
|
podman.enable = true;
|
|
steam.enable = true;
|
|
};
|
|
|
|
desktop = {
|
|
greetd.enable = true;
|
|
hyprland.enable = true;
|
|
sway.enable = true;
|
|
};
|
|
|
|
laptopMode = true;
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
users.aly = {
|
|
enable = true;
|
|
password = "$y$j9T$TitXX3J690cnK41XciNMg/$APKHM/os6FKd9H9aXGxaHaQ8zP5SenO9EO94VYafl43";
|
|
syncthing = {
|
|
enable = true;
|
|
certFile = config.age.secrets.syncthingCert.path;
|
|
keyFile = config.age.secrets.syncthingKey.path;
|
|
};
|
|
};
|
|
};
|
|
}
|