Compare commits
7 commits
0dbd1faaa6
...
8c35cda8e9
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c35cda8e9 | |||
| a0db9fdcde | |||
| a0e2825acd | |||
| a0221784e7 | |||
| bd85f36dda | |||
| 60b28ea218 | |||
| 94a87229f1 |
6 changed files with 59 additions and 23 deletions
|
|
@ -33,11 +33,22 @@
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
# Enable the pipewire sound server
|
/*# Enable the pipewire sound server
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
|
}; /*
|
||||||
|
|
||||||
|
/*
|
||||||
|
Pipewire's audio server seems to be broken for now, so I'm going to
|
||||||
|
temporarely use pulse as my audio server
|
||||||
|
*/
|
||||||
|
services.pipewire = {
|
||||||
|
audio.enable = false;
|
||||||
|
pulse.enable = false;
|
||||||
|
alsa.enable = false;
|
||||||
};
|
};
|
||||||
|
hardware.pulseaudio.enable = true;
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
# services.xserver.layout = "us";
|
# services.xserver.layout = "us";
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enabke support for the Xbox One wireless dongle
|
|
||||||
# Enable support for the Xbox One wireless dongle
|
# Enable support for the Xbox One wireless dongle
|
||||||
hardware.xone.enable = true;
|
hardware.xone.enable = true;
|
||||||
|
|
||||||
|
|
@ -40,17 +39,22 @@
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
/*
|
/*
|
||||||
Mount the root subvolume of the SSD
|
Mount the root subvolume of the SSD
|
||||||
This is helpful for getting things from
|
This is helpful for getting things from
|
||||||
my old Arch install, as well as for running btdu
|
my old Arch install, as well as for running btdu
|
||||||
*/
|
*/
|
||||||
fileSystems = {
|
|
||||||
"/mnt/ssd" = {
|
"/mnt/ssd" = {
|
||||||
device = config.fileSystems."/".device;
|
device = config.fileSystems."/".device;
|
||||||
fsType = config.fileSystems."/".fsType;
|
fsType = config.fileSystems."/".fsType;
|
||||||
options = [ "subvolid=5" "ro" ];
|
options = [ "subvolid=5" "ro" ];
|
||||||
};
|
};
|
||||||
|
"/home" = {
|
||||||
|
device = "/dev/disk/by-uuid/5322c217-b87b-4150-8b4c-a8fa17a899bf";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@home" "compress=zstd" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# System wide firefox settings
|
# System wide firefox settings
|
||||||
|
|
@ -24,6 +24,8 @@
|
||||||
"installation_mode" = "normal_installed";
|
"installation_mode" = "normal_installed";
|
||||||
"install_url" = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
|
"install_url" = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
|
||||||
};
|
};
|
||||||
|
# Uninstall the kde plasma integration extension if KDE is not installed
|
||||||
|
"plasma-browser-integration@kde.org"."installation_mode" = lib.mkDefault "blocked";
|
||||||
};
|
};
|
||||||
"Preferences" = {
|
"Preferences" = {
|
||||||
# Enable video hardware acceleration
|
# Enable video hardware acceleration
|
||||||
|
|
@ -35,20 +37,6 @@
|
||||||
"Value" = true;
|
"Value" = true;
|
||||||
"Status" = "locked";
|
"Status" = "locked";
|
||||||
};
|
};
|
||||||
# Make firefox use the kde file picker
|
|
||||||
"widget.use-xdg-desktop-portal.file-picker" = {
|
|
||||||
"Value" = 1;
|
|
||||||
"Status" = "default";
|
|
||||||
};
|
|
||||||
/*
|
|
||||||
https://wiki.archlinux.org/title/Firefox#KDE_integration tells me to enable this,
|
|
||||||
but strangely enough doing so makes firefox ask to be set as the default browser
|
|
||||||
every time you start it up, so I'll disable it
|
|
||||||
*/
|
|
||||||
"widget.use-xdg-desktop-portal.mime-handler" = {
|
|
||||||
"Value" = 0;
|
|
||||||
"Status" = "default";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"PromptForDownloadLocation" = true;
|
"PromptForDownloadLocation" = true;
|
||||||
# I use an external password manager, so the built in one just bothers me
|
# I use an external password manager, so the built in one just bothers me
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,5 @@
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
};
|
};
|
||||||
# Some linux native games (rise of the tomb raider) use alsa for sound
|
# Some linux native games (rise of the tomb raider) use alsa for sound
|
||||||
services.pipewire.alsa.enable = true;
|
services.pipewire.alsa.enable = if config.services.pipewire.pulse.enable == true then true else false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./kate.nix
|
./kate.nix
|
||||||
|
./firefox.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
32
roles/kde/programs/firefox.nix
Normal file
32
roles/kde/programs/firefox.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# KDE specific firefox settings
|
||||||
|
programs.firefox = {
|
||||||
|
policies = {
|
||||||
|
"ExtensionSettings" = {
|
||||||
|
# TODO: Install extensions the NUR instead of from AMO
|
||||||
|
"plasma-browser-integration@kde.org" = {
|
||||||
|
"installation_mode" = "normal_installed";
|
||||||
|
"install_url" = "https://addons.mozilla.org/firefox/downloads/latest/plasma-integration/latest.xpi";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"Preferences" = {
|
||||||
|
# Make firefox use the kde file picker
|
||||||
|
"widget.use-xdg-desktop-portal.file-picker" = {
|
||||||
|
"Value" = 1;
|
||||||
|
"Status" = "default";
|
||||||
|
};
|
||||||
|
/*
|
||||||
|
https://wiki.archlinux.org/title/Firefox#KDE_integration tells me to enable this,
|
||||||
|
but strangely enough doing so makes firefox ask to be set as the default browser
|
||||||
|
every time you start it up, so I'll disable it
|
||||||
|
*/
|
||||||
|
"widget.use-xdg-desktop-portal.mime-handler" = {
|
||||||
|
"Value" = 0;
|
||||||
|
"Status" = "default";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue