Working config for fw13 amd
This commit is contained in:
commit
e706230566
48 changed files with 1812 additions and 0 deletions
10
system/programs/default.nix
Normal file
10
system/programs/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
imports = [
|
||||
./fish.nix
|
||||
./fonts.nix
|
||||
./games.nix
|
||||
./home-manager.nix
|
||||
./hyprland.nix
|
||||
./xdg.nix
|
||||
];
|
||||
}
|
||||
3
system/programs/fish.nix
Normal file
3
system/programs/fish.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.fish.enable = true;
|
||||
}
|
||||
42
system/programs/fonts.nix
Normal file
42
system/programs/fonts.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{}
|
||||
# Migrated to home-manager stylix.
|
||||
# {pkgs, ...}: {
|
||||
# fonts = {
|
||||
# packages = with pkgs; [
|
||||
# # icon fonts
|
||||
# material-symbols
|
||||
#
|
||||
# # Sans(Serif) fonts
|
||||
# libertinus
|
||||
# noto-fonts
|
||||
# noto-fonts-cjk-sans
|
||||
# noto-fonts-emoji
|
||||
# roboto
|
||||
# (google-fonts.override {fonts = ["Inter"];})
|
||||
#
|
||||
# # monospace fonts
|
||||
# jetbrains-mono
|
||||
#
|
||||
# # nerdfonts
|
||||
# nerd-fonts.jetbrains-mono
|
||||
# nerd-fonts.symbols-only
|
||||
# ];
|
||||
#
|
||||
# # causes more issues than it solves
|
||||
# enableDefaultPackages = false;
|
||||
#
|
||||
# # user defined fonts
|
||||
# # the reason there's Noto Color Emoji everywhere is to override DejaVu's
|
||||
# # B&W emojis that would sometimes show instead of some Color emojis
|
||||
# fontconfig.defaultFonts = let
|
||||
# addAll = builtins.mapAttrs (_: v: v ++ ["Noto Color Emoji"]);
|
||||
# in
|
||||
# addAll {
|
||||
# serif = ["Libertinus Serif"];
|
||||
# sansSerif = ["Inter"];
|
||||
# monospace = ["JetBrains Mono Nerd Font"];
|
||||
# emoji = [];
|
||||
# };
|
||||
# };
|
||||
# }
|
||||
|
||||
22
system/programs/games.nix
Normal file
22
system/programs/games.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
programs = {
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
args = [
|
||||
"--rt"
|
||||
"--expose-wayland"
|
||||
];
|
||||
};
|
||||
|
||||
steam = {
|
||||
enable = true;
|
||||
|
||||
extraCompatPackages = [
|
||||
pkgs.proton-ge-bin
|
||||
];
|
||||
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
15
system/programs/home-manager.nix
Normal file
15
system/programs/home-manager.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{inputs, specialArgs, config, ...}: {
|
||||
imports = [
|
||||
inputs.hm.nixosModules.default
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = specialArgs;
|
||||
|
||||
users.jsw = import ../../home;
|
||||
};
|
||||
|
||||
programs.dconf.enable = true; # else gtk-managed stuff won't work
|
||||
}
|
||||
10
system/programs/hyprland.nix
Normal file
10
system/programs/hyprland.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}: {
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
};
|
||||
environment.systemPackages = [
|
||||
pkgs.kitty # This is the default config's terminal and also my main one.
|
||||
];
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # Makes electron apps use wayland.
|
||||
}
|
||||
14
system/programs/xdg.nix
Normal file
14
system/programs/xdg.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{pkgs, ...}: {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
config = {
|
||||
common.default = ["gtk"];
|
||||
hyprland.default = ["gtk" "hyprland"];
|
||||
};
|
||||
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue