Compare commits
2 Commits
d1949310c5
...
7d793c45dc
| Author | SHA1 | Date | |
|---|---|---|---|
|
7d793c45dc
|
|||
|
5911da7f99
|
32
flake.nix
32
flake.nix
@@ -98,22 +98,22 @@
|
||||
};
|
||||
});
|
||||
})
|
||||
(
|
||||
final: prev:
|
||||
let
|
||||
system = prev.stdenv.hostPlatform.system;
|
||||
pkgs_gamescope = import inputs.nixpkgs-gamescope {
|
||||
inherit system;
|
||||
config = {
|
||||
allow_unfree = true;
|
||||
};
|
||||
};
|
||||
packageNix = "${inputs.nixpkgs-gamescope}/pkgs/by-name/ga/gamescope/package.nix";
|
||||
in
|
||||
{
|
||||
gamescope = pkgs_gamescope.callPackage packageNix { };
|
||||
}
|
||||
)
|
||||
# (
|
||||
# final: prev:
|
||||
# let
|
||||
# system = prev.stdenv.hostPlatform.system;
|
||||
# pkgs_gamescope = import inputs.nixpkgs-gamescope {
|
||||
# inherit system;
|
||||
# config = {
|
||||
# allow_unfree = true;
|
||||
# };
|
||||
# };
|
||||
# packageNix = "${inputs.nixpkgs-gamescope}/pkgs/by-name/ga/gamescope/package.nix";
|
||||
# in
|
||||
# {
|
||||
# gamescope = pkgs_gamescope.callPackage packageNix { };
|
||||
# }
|
||||
# )
|
||||
(self: super: {
|
||||
intel-npu-driver = super.intel-npu-driver.overrideAttrs (oldAttrs: rec {
|
||||
installPhase = ''
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{inputs, ...}:{imports = [inputs.disko.nixosModules.disko]; disko.devices = {
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.disko.nixosModules.disko ];
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
device = "/dev/nvme0n1";
|
||||
|
||||
@@ -44,8 +44,7 @@ in
|
||||
|
||||
PLATFORM_PROFILE_ON_AC = "balanced";
|
||||
PLATFORM_PROFILE_ON_BAT = "quiet";
|
||||
START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
|
||||
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
||||
STOP_CHARGE_THRESH_BAT0 = 80;
|
||||
};
|
||||
};
|
||||
services.thermald.enable = true;
|
||||
|
||||
@@ -61,6 +61,9 @@ in
|
||||
"doloro"
|
||||
];
|
||||
};
|
||||
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
hardware = {
|
||||
firmware = [ pkgs.intel-npu-driver ];
|
||||
cpu.intel = {
|
||||
@@ -149,6 +152,7 @@ in
|
||||
# tlp-pd
|
||||
brightnessctl
|
||||
nvtopPackages.intel
|
||||
seahorse
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
|
||||
@@ -31,6 +31,8 @@ in
|
||||
|
||||
services.resolved.enable = true;
|
||||
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "nodev";
|
||||
@@ -126,7 +128,6 @@ in
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Load nvidia driver for Xorg and Wayland
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
fileSystems."/mnt/2tb" = {
|
||||
@@ -234,7 +235,7 @@ in
|
||||
programs = {
|
||||
ssh = {
|
||||
# enable = true;
|
||||
startAgent = true;
|
||||
# startAgent = true;
|
||||
|
||||
};
|
||||
fish.enable = true;
|
||||
@@ -272,6 +273,7 @@ in
|
||||
wget
|
||||
killall
|
||||
sops
|
||||
seahorse
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
|
||||
@@ -37,8 +37,8 @@ in
|
||||
package = pkgs-unstable.mesa;
|
||||
|
||||
# if you also want 32-bit support (e.g for Steam)
|
||||
enable32Bit = true;
|
||||
package32 = pkgs-unstable.pkgsi686Linux.mesa;
|
||||
# enable32Bit = true;
|
||||
# package32 = pkgs-unstable.pkgsi686Linux.mesa;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,31 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
let
|
||||
config = pkgs.writeTextFile {
|
||||
name = "config";
|
||||
text = ''
|
||||
width = 100%
|
||||
height = 100%
|
||||
border-width = 0
|
||||
outline-width = 0
|
||||
padding-left = 35%
|
||||
padding-top = 35%
|
||||
result-spacing = 25
|
||||
num-results = 5
|
||||
font = monospace
|
||||
background-color = #000A
|
||||
'';
|
||||
};
|
||||
script = pkgs.writeShellScript "mreow" ''
|
||||
exec $(tofi-drun -c ${config})
|
||||
'';
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.kickoff
|
||||
pkgs.tofi
|
||||
];
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
bind = [
|
||||
"$mainMod, R, exec, kickoff"
|
||||
"$mainMod, R, exec, ${script}"
|
||||
];
|
||||
};
|
||||
# systemd.user.services.hyprlauncher-deamon = {
|
||||
|
||||
@@ -143,9 +143,9 @@ in
|
||||
];
|
||||
windowrule = [
|
||||
"match:class .*, suppress_event maximize"
|
||||
"match:class ^(gamescope)$, workspace 5"
|
||||
"match:class ^(gamescope)$, fullscreen true"
|
||||
"match:class ^(gamescope)$, immediate true"
|
||||
"match:class gamescope, workspace 5"
|
||||
"match:class gamescope, fullscreen true"
|
||||
"match:class gamescope, immediate true"
|
||||
"match:class ^(steam)$, workspace 6 silent"
|
||||
"match:class ^(vesktop)$, workspace 8 silent"
|
||||
"match:class ^(org.telegram.desktop)$, workspace 8 silent"
|
||||
|
||||
@@ -16,7 +16,7 @@ in
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
./plugins
|
||||
];
|
||||
config.home.packages = with pkgs; [
|
||||
extraPackages = with pkgs; [
|
||||
# formatters
|
||||
nixfmt
|
||||
rustfmt
|
||||
@@ -57,9 +57,6 @@ in
|
||||
nixd = {
|
||||
enable = true;
|
||||
};
|
||||
astro = {
|
||||
enable = true;
|
||||
};
|
||||
ts_ls = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user