mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-23 15:13:12 +01:00
Added apple silicon support
This commit is contained in:
parent
630685be73
commit
0831dde384
@ -2,14 +2,11 @@
|
|||||||
lib,
|
lib,
|
||||||
username,
|
username,
|
||||||
host,
|
host,
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
hyprplugins = inputs.hyprland-plugins.packages.${pkgs.system};
|
|
||||||
inherit (import ../hosts/${host}/variables.nix)
|
inherit (import ../hosts/${host}/variables.nix)
|
||||||
browser
|
browser
|
||||||
terminal
|
terminal
|
||||||
@ -23,9 +20,6 @@ with lib;
|
|||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
# plugins = [
|
|
||||||
# hyprplugins.hyprtrails
|
|
||||||
# ];
|
|
||||||
extraConfig =
|
extraConfig =
|
||||||
let
|
let
|
||||||
modifier = "SUPER";
|
modifier = "SUPER";
|
||||||
@ -69,8 +63,9 @@ with lib;
|
|||||||
kb_options = caps:super
|
kb_options = caps:super
|
||||||
follow_mouse = 1
|
follow_mouse = 1
|
||||||
touchpad {
|
touchpad {
|
||||||
natural_scroll = false
|
natural_scroll = true
|
||||||
disable_while_typing = true
|
disable_while_typing = true
|
||||||
|
scroll_factor = 0.8
|
||||||
}
|
}
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
accel_profile = flat
|
accel_profile = flat
|
||||||
|
18
flake.lock
18
flake.lock
@ -186,11 +186,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722630065,
|
"lastModified": 1723015306,
|
||||||
"narHash": "sha256-QfM/9BMRkCmgWzrPDK+KbgJOUlSJnfX4OvsUupEUZvA=",
|
"narHash": "sha256-jQnFEtH20/OsDPpx71ntZzGdRlpXhUENSQCGTjn//NA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "afc892db74d65042031a093adb6010c4c3378422",
|
"rev": "b3d5ea65d88d67d4ec578ed11d4d2d51e3de525e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -223,11 +223,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722421184,
|
"lastModified": 1722813957,
|
||||||
"narHash": "sha256-/DJBI6trCeVnasdjUo9pbnodCLZcFqnVZiLUfqLH4jA=",
|
"narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9f918d616c5321ad374ae6cb5ea89c9e04bf3e58",
|
"rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -276,11 +276,11 @@
|
|||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722295291,
|
"lastModified": 1722946882,
|
||||||
"narHash": "sha256-3XpT9GMw50NCGT1Gd2YAwEjrEcFtDqnuQ7sRUcuU/Pc=",
|
"narHash": "sha256-mxtnMye8gs82tdQbVC+g6v3aPOZlH150f9WyntHIkTg=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "feb2973dfa8232c07efbd2b48f11a5cfa2276570",
|
"rev": "5853f1a8bd072f2ebabfc3de3973084353cf6f1e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -12,10 +12,10 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/apple-silicon-support
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
../../modules/amd-drivers.nix
|
../../modules/amd-drivers.nix
|
||||||
|
../../modules/apple-silicon-support
|
||||||
../../modules/nvidia-drivers.nix
|
../../modules/nvidia-drivers.nix
|
||||||
../../modules/nvidia-prime-drivers.nix
|
../../modules/nvidia-prime-drivers.nix
|
||||||
../../modules/intel-drivers.nix
|
../../modules/intel-drivers.nix
|
||||||
@ -113,6 +113,9 @@ in
|
|||||||
drivers.intel.enable = false;
|
drivers.intel.enable = false;
|
||||||
vm.guest-services.enable = false;
|
vm.guest-services.enable = false;
|
||||||
local.hardware-clock.enable = false;
|
local.hardware-clock.enable = false;
|
||||||
|
# Apple Hardware
|
||||||
|
hardware.asahi.useExperimentalGPUDriver = true;
|
||||||
|
hardware.asahi.peripheralFirmwareDirectory = ../../modules/firmware;
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.wireless.iwd = {
|
networking.wireless.iwd = {
|
||||||
@ -403,10 +406,6 @@ in
|
|||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
|
|
||||||
# Apple Hardware
|
|
||||||
hardware.asahi.useExperimentalGPUDriver = true;
|
|
||||||
hardware.asahi.peripheralFirmwareDirectory = ./firmware;
|
|
||||||
|
|
||||||
# Security / Polkit
|
# Security / Polkit
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
@ -24,6 +24,7 @@ in
|
|||||||
ignoreShellProgramCheck = true;
|
ignoreShellProgramCheck = true;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
webcord
|
webcord
|
||||||
|
zeroad
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# "newuser" = {
|
# "newuser" = {
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
gitEmail = "tylerzanekelley@gmail.com";
|
gitEmail = "tylerzanekelley@gmail.com";
|
||||||
|
|
||||||
# Hyprland Settings
|
# Hyprland Settings
|
||||||
extraMonitorSettings = "";
|
extraMonitorSettings = "
|
||||||
|
monitor=eDP-1,2560x1600@60,0x0,1.25
|
||||||
|
";
|
||||||
|
|
||||||
# Waybar Settings
|
# Waybar Settings
|
||||||
clock24h = false;
|
clock24h = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user