Compare commits
2 commits
b9d5f79703
...
f63a44bfa0
Author | SHA1 | Date | |
---|---|---|---|
f63a44bfa0 | |||
70b39e5e7f |
8 changed files with 56 additions and 53 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
config.modules.desktop.sway.enable = true;
|
||||||
config.modules.gaming.steam.enable = false;
|
config.modules.gaming.steam.enable = false;
|
||||||
config.modules.hardware.laptop.enable = true;
|
config.modules.hardware.laptop.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,6 +123,11 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Avoid pixelated effect for QT application with fractionnal scaling
|
||||||
|
home.sessionVariables = {
|
||||||
|
QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor";
|
||||||
|
};
|
||||||
|
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
platformTheme = "gnome";
|
platformTheme = "gnome";
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
_:
|
_:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./desktop/sway
|
||||||
./gaming/steam
|
./gaming/steam
|
||||||
./hardware/laptop
|
./hardware/laptop
|
||||||
];
|
];
|
||||||
|
|
35
modules/nixos/desktop/sway/default.nix
Normal file
35
modules/nixos/desktop/sway/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.desktop.sway;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.desktop.sway = {
|
||||||
|
enable = mkEnableOption "Enable Steam Platform";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
security.pam.services.swaylock = {};
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
};
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
wlr.enable = true;
|
||||||
|
# gtk portal needed to make gtk apps happy
|
||||||
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
|
config = {
|
||||||
|
common = {
|
||||||
|
default = [
|
||||||
|
"gtk"
|
||||||
|
];
|
||||||
|
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
|
||||||
|
"org.freedesktop.impl.portal.Screenshot" = "wlr";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,7 +1,6 @@
|
||||||
{ pkgs, lib, stateVersion, hostname, username, hostConfig, ... }:
|
{ pkgs, lib, stateVersion, hostname, username, hostConfig, ... }:
|
||||||
{
|
{
|
||||||
imports =
|
imports = [ # Include the results of the hardware scan.
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
../hosts/${hostname}/hardware-configuration.nix
|
../hosts/${hostname}/hardware-configuration.nix
|
||||||
../hosts/${hostname}/nixos-config.nix
|
../hosts/${hostname}/nixos-config.nix
|
||||||
../modules/nixos
|
../modules/nixos
|
||||||
|
@ -14,15 +13,7 @@
|
||||||
./includes/system/doas.nix
|
./includes/system/doas.nix
|
||||||
./includes/system/neovim.nix
|
./includes/system/neovim.nix
|
||||||
./includes/system/overlay.nix
|
./includes/system/overlay.nix
|
||||||
] ++ (
|
];
|
||||||
if hostConfig.desktop then
|
|
||||||
[
|
|
||||||
./includes/desktop/swaylock.nix
|
|
||||||
./includes/desktop/pipewire.nix
|
|
||||||
./includes/desktop/xdg-portal.nix
|
|
||||||
]
|
|
||||||
else []
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
_: {
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
_: {
|
|
||||||
security.pam.services.swaylock = {};
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
{ pkgs, ...}:
|
|
||||||
{
|
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
|
||||||
wlr.enable = true;
|
|
||||||
# gtk portal needed to make gtk apps happy
|
|
||||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
||||||
config = {
|
|
||||||
common = {
|
|
||||||
default = [
|
|
||||||
"gtk"
|
|
||||||
];
|
|
||||||
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
|
|
||||||
"org.freedesktop.impl.portal.Screenshot" = "wlr";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue