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