Create minimal.linux and extract configs
This commit is contained in:
parent
a32f74e268
commit
b2f267d1f3
5 changed files with 44 additions and 26 deletions
5
profiles/desktop.darwin.nix
Normal file
5
profiles/desktop.darwin.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,12 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkForce mkIf;
|
||||
|
||||
sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
|
@ -15,19 +22,10 @@ in
|
|||
{
|
||||
environment = {
|
||||
inherit sessionVariables systemPackages;
|
||||
|
||||
etc = {
|
||||
"1password/custom_allowed_browsers" = {
|
||||
text = ''
|
||||
firefox
|
||||
brave
|
||||
'';
|
||||
mode = "0755";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fonts.fontconfig = {
|
||||
enable = true;
|
||||
antialias = true;
|
||||
hinting = {
|
||||
enable = true;
|
||||
|
|
@ -54,37 +52,49 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
hardware.bluetooth = {
|
||||
hardware.bluetooth = mkIf config.hardware.bluetooth.enable {
|
||||
settings = {
|
||||
General.Experimental = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
security.polkit.enable = true;
|
||||
programs.dconf.enable = config.programs.niri.enable;
|
||||
security.polkit.enable = config.programs.niri.enable;
|
||||
|
||||
programs._1password.enable = true;
|
||||
programs._1password-gui = {
|
||||
programs._1password-gui = mkIf config.programs._1password.enable {
|
||||
enable = true;
|
||||
polkitPolicyOwners = [ "pml" ];
|
||||
};
|
||||
|
||||
environment.etc = mkIf config.programs._1password-gui.enable {
|
||||
"1password/custom_allowed_browsers" = {
|
||||
text = ''
|
||||
firefox
|
||||
brave
|
||||
'';
|
||||
mode = "0755";
|
||||
};
|
||||
};
|
||||
|
||||
programs.niri.enable = true;
|
||||
|
||||
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";
|
||||
font_name = mkForce "SF Pro 16";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
security.rtkit.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
|
||||
services.pipewire = {
|
||||
security.rtkit.enable = config.services.pipewire.enable;
|
||||
|
||||
services.pipewire = mkIf config.services.pipewire.enable {
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
|
|
|
|||
7
profiles/minimal.linux.nix
Normal file
7
profiles/minimal.linux.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./minimal.nix ];
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue