@hyprland +uwsm

This commit is contained in:
m3tam3re 2025-02-12 11:12:32 +01:00
parent bd97658bd2
commit e0dda1eb0a
8 changed files with 36 additions and 4 deletions

17
flake.lock generated
View File

@ -221,6 +221,22 @@
"type": "github"
}
},
"nixpkgs-80c8ffb": {
"locked": {
"lastModified": 1726604095,
"narHash": "sha256-4ipVsmZQiSdMx/8BqMurOUBIRCrKjjwTKLFNk3frrRs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "80c8ffb38e221c3c1b2ab81a9f9a1194f109a9ea",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"rev": "80c8ffb38e221c3c1b2ab81a9f9a1194f109a9ea",
"type": "github"
}
},
"nixpkgs-d016996": {
"locked": {
"lastModified": 1737074211,
@ -325,6 +341,7 @@
"home-manager": "home-manager_2",
"hyprpanel": "hyprpanel",
"nixpkgs": "nixpkgs_3",
"nixpkgs-80c8ffb": "nixpkgs-80c8ffb",
"nixpkgs-d016996": "nixpkgs-d016996",
"nixpkgs-master": "nixpkgs-master",
"nixpkgs-stable": "nixpkgs-stable",

View File

@ -73,6 +73,7 @@
ripgrep
rocmPackages.rocm-smi
rocmPackages.rocminfo
rocmPackages.rocm-runtime
tldr
trash-cli
unimatrix

View File

@ -31,7 +31,7 @@ in {
set -x FLAKE $HOME/p/nixos/nixos-config
if test (tty) = "/dev/tty1"
exec Hyprland &> /dev/null
exec uwsm start -S -F /run/current-system/sw/bin/Hyprland
end
if test (tty) = "/dev/tty2"
exec gamescope -O HDMI-A-1 -W 1920 -H 1080 --adaptive-sync --hdr-enabled --rt --steam -- steam -pipewire-dmabuf -tenfoot

View File

@ -1,5 +1,7 @@
{pkgs, ...}: {
home.packages = with pkgs; [
devpod
devpod-desktop
(python3.withPackages (ps:
with ps; [
# Scientific packages

View File

@ -12,6 +12,11 @@
inputs.home-manager.nixosModules.home-manager
];
environment.pathsToLink = [
"/share/xdg-desktop-portal"
"/share/applications"
];
home-manager = {
useUserPackages = true;
extraSpecialArgs = {inherit inputs outputs;};

View File

@ -7,15 +7,18 @@
with lib; let
cfg = config.extraServices.flatpak;
in {
options.extraServices.flatpak.enable = mkEnableOption "enable podman";
options.extraServices.flatpak.enable = mkEnableOption "enable flatpak";
config = mkIf cfg.enable {
services.flatpak.enable = true;
xdg.portal = {
# xdg desktop intergration (required for flatpak)
enable = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
wlr.enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
];
config.common.default = "*";
};
};

View File

@ -76,6 +76,9 @@
services.openssh = {
enable = true;
settings.PermitRootLogin = "no";
settings = {
PasswordAuthentication = false;
};
};
# [[Open ports in the firewall.

View File

@ -7,6 +7,7 @@
programs.hyprland = {
enable = true;
xwayland.enable = true;
withUWSM = true;
};
programs.gamescope = {
enable = true;