hope this works

This commit is contained in:
TheCrazyInsanity
2026-04-11 21:37:28 -04:00
parent c696e8702f
commit 99b008305c
7 changed files with 110 additions and 1 deletions

24
flake.lock generated
View File

@@ -80,6 +80,29 @@
"type": "github" "type": "github"
} }
}, },
"glide": {
"inputs": {
"home-manager": [
"home-manager"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1773656868,
"narHash": "sha256-IvWd8A3MM2qASf2U5diOoYEc2dCxqR4BOhB5RuOQnZM=",
"owner": "glide-browser",
"repo": "glide.nix",
"rev": "1a3dd001865f6ac5a3562d2cb484388672ad6eaf",
"type": "github"
},
"original": {
"owner": "glide-browser",
"repo": "glide.nix",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -252,6 +275,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"glide": "glide",
"home-manager": "home-manager", "home-manager": "home-manager",
"impermanence": "impermanence", "impermanence": "impermanence",
"llm-agents": "llm-agents", "llm-agents": "llm-agents",

View File

@@ -11,6 +11,12 @@
# to avoid problems caused by different versions of nixpkgs. # to avoid problems caused by different versions of nixpkgs.
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
glide = {
url = "github:glide-browser/glide.nix";
# optionally: follow your flake's inputs
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
impermanence.url = "github:nix-community/impermanence"; impermanence.url = "github:nix-community/impermanence";
plasma-manager = { plasma-manager = {
url = "github:nix-community/plasma-manager"; url = "github:nix-community/plasma-manager";
@@ -29,6 +35,7 @@
impermanence, impermanence,
plasma-manager, plasma-manager,
llm-agents, llm-agents,
glide,
# nix-flatpak, # nix-flatpak,
}@inputs: }@inputs:
let let

View File

@@ -17,7 +17,7 @@
../../modules/development/default.nix ../../modules/development/default.nix
../../modules/fabrication/default.nix ../../modules/fabrication/default.nix
../../modules/gaming/default.nix ../../modules/gaming/default.nix
../../modules/kde/default.nix ../../modules/sway/default.nix
../../modules/virtualization/default.nix ../../modules/virtualization/default.nix
# ../../modules/vr/default.nix # ../../modules/vr/default.nix
# ../../global/eraseyourdarlings.nix # ../../global/eraseyourdarlings.nix

View File

@@ -14,6 +14,8 @@
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
# services.tlp.enable = true;
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [
"xhci_pci" "xhci_pci"
"thunderbolt" "thunderbolt"

View File

@@ -13,6 +13,7 @@
imports = [ imports = [
../../home/default.nix ../../home/default.nix
../../modules/kde/home.nix
# ../../modules/kde/home.nix # ../../modules/kde/home.nix
]; ];

43
modules/sway/default.nix Normal file
View File

@@ -0,0 +1,43 @@
{
config,
pkgs,
lib,
...
}:
{
environment.systemPackages = with pkgs; [
wl-clipboard # Copy/Paste functionality.
mako # Notification utility.
];
# Enables Gnome Keyring to store secrets for applications.
services.gnome.gnome-keyring.enable = true;
# Enable Sway.
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
extraPackages = [
pkgs.foot
pkgs.swayidle
pkgs.swaylock
pkgs.wmenu
pkgs.wl-clipboard
pkgs.mako
pkgs.kdePackages.spectacle
pkgs.kdePackages.kate
pkgs.kdePackages.filelight
inputs.glide.packages.${pkgs.stdenv.hostPlatform.system}.default
];
};
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd sway";
user = "laythe";
};
};
};
}

32
modules/sway/home.nix Normal file
View File

@@ -0,0 +1,32 @@
{ pkgs, ... }:
{
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true; # Fixes common issues with GTK 3 apps
config = rec {
modifier = "Mod4";
# Use kitty as default terminal
terminal = "foot";
keybindings = {
# Brightness Controls
"XF86MonBrightnessDown" = "exec light -U 10";
"XF86MonBrightnessUp" = "exec light -A 10";
# Volume Controls
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +1%";
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -1%";
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
};
input = {
"type:touchpad" = {
# Enables or disables tap for specified input device.
tap = "enabled";
# Enables or disables natural (inverted) scrolling for the specified input device.
natural_scroll = "enabled";
# Enables or disables disable-while-typing for the specified input device.
dwt = "enabled";
};
};
};
};
}