Extract config related to Linux desktop machines
This commit is contained in:
parent
339a1d6853
commit
efecd38dbc
3 changed files with 67 additions and 60 deletions
|
|
@ -104,17 +104,11 @@ in
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
sbctl
|
|
||||||
|
|
||||||
libva-utils
|
|
||||||
vdpauinfo
|
|
||||||
|
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
gsettings-desktop-schemas
|
|
||||||
|
|
||||||
ddcutil
|
|
||||||
mesa-demos
|
mesa-demos
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.regreet.enable = true;
|
||||||
# BOOTLOADER
|
# BOOTLOADER
|
||||||
boot.bootspec.enable = true;
|
boot.bootspec.enable = true;
|
||||||
|
|
||||||
|
|
@ -186,27 +180,10 @@ in
|
||||||
VDPAU_DRIVER = "va_gl";
|
VDPAU_DRIVER = "va_gl";
|
||||||
};
|
};
|
||||||
|
|
||||||
# AUDIO
|
services.pipewire.enable = true;
|
||||||
security.rtkit.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
jack.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# BLUETOOTH
|
|
||||||
hardware.bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
General.Experimental = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# MISC
|
# MISC
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_6_17;
|
boot.kernelPackages = pkgs.linuxPackages_6_17;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
@ -223,38 +200,6 @@ in
|
||||||
trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ];
|
trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs._1password.enable = true;
|
|
||||||
programs._1password-gui = {
|
|
||||||
enable = true;
|
|
||||||
polkitPolicyOwners = [ "pml" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.etc = {
|
|
||||||
"1password/custom_allowed_browsers" = {
|
|
||||||
text = ''
|
|
||||||
firefox
|
|
||||||
brave
|
|
||||||
'';
|
|
||||||
mode = "0755";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable regreet
|
|
||||||
programs.regreet = {
|
|
||||||
enable = true;
|
|
||||||
font.name = "SF Pro";
|
|
||||||
font.size = 16;
|
|
||||||
font.package = pkgs.apple-fonts.sf-pro;
|
|
||||||
settings = {
|
|
||||||
GTK = {
|
|
||||||
font_name = lib.mkForce "SF Pro 16";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.niri.enable = true;
|
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
||||||
|
|
||||||
# FONTS
|
# FONTS
|
||||||
fonts.fontconfig = {
|
fonts.fontconfig = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,66 @@
|
||||||
{ pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
sessionVariables = {
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
ddcutil
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
libva-utils
|
||||||
|
sbctl
|
||||||
|
vdpauinfo
|
||||||
|
];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
environment = {
|
||||||
|
inherit sessionVariables systemPackages;
|
||||||
|
|
||||||
|
etc = {
|
||||||
|
"1password/custom_allowed_browsers" = {
|
||||||
|
text = ''
|
||||||
|
firefox
|
||||||
|
brave
|
||||||
|
'';
|
||||||
|
mode = "0755";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.bluetooth = {
|
||||||
|
settings = {
|
||||||
|
General.Experimental = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
|
programs._1password.enable = true;
|
||||||
|
programs._1password-gui = {
|
||||||
|
enable = true;
|
||||||
|
polkitPolicyOwners = [ "pml" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.niri.enable = true;
|
||||||
|
|
||||||
|
programs.regreet = {
|
||||||
|
font.name = "SF Pro";
|
||||||
|
font.size = 16;
|
||||||
|
font.package = pkgs.apple-fonts.sf-pro;
|
||||||
|
settings = {
|
||||||
|
GTK = {
|
||||||
|
font_name = lib.mkForce "SF Pro 16";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
services.pipewire = {
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,10 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
curl
|
||||||
git
|
git
|
||||||
vim
|
vim
|
||||||
|
wget
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.package = pkgs.lixPackageSets.stable.lix;
|
nix.package = pkgs.lixPackageSets.stable.lix;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue