Create minimal.linux and extract configs

This commit is contained in:
monologiq 2025-12-24 15:33:51 +01:00
parent a32f74e268
commit b2f267d1f3
5 changed files with 44 additions and 26 deletions

View file

@ -3,6 +3,7 @@
{ {
imports = [ imports = [
../profiles/minimal.nix ../profiles/minimal.nix
../profiles/desktop.darwin.nix
]; ];
environment.darwinConfig = "/Users/${config.system.primaryUser}/Development/systems"; environment.darwinConfig = "/Users/${config.system.primaryUser}/Development/systems";

View file

@ -16,7 +16,7 @@ in
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
./persephone/hardware.nix ./persephone/hardware.nix
./persephone/networking.nix ./persephone/networking.nix
../profiles/minimal.nix ../profiles/minimal.linux.nix
../profiles/desktop.linux.nix ../profiles/desktop.linux.nix
]; ];
@ -108,7 +108,6 @@ in
mesa-demos mesa-demos
]; ];
programs.regreet.enable = true;
# BOOTLOADER # BOOTLOADER
boot.bootspec.enable = true; boot.bootspec.enable = true;
@ -145,7 +144,6 @@ in
}; };
# CPU # CPU
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
# GPU # GPU
@ -200,7 +198,6 @@ in
trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ]; trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ];
}; };
fonts.fontconfig.enable = true;
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
apple-fonts.sf-pro apple-fonts.sf-pro
noto-fonts-cjk-sans noto-fonts-cjk-sans
@ -246,9 +243,7 @@ in
}) })
]; ];
# USERSPACE programs._1password.enable = true;
programs.zsh.enable = true;
users.users.pml = { users.users.pml = {
isNormalUser = true; isNormalUser = true;

View file

@ -0,0 +1,5 @@
{ ... }:
{
}

View file

@ -1,5 +1,12 @@
{ lib, pkgs, ... }: {
config,
lib,
pkgs,
...
}:
let let
inherit (lib) mkForce mkIf;
sessionVariables = { sessionVariables = {
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
}; };
@ -15,19 +22,10 @@ in
{ {
environment = { environment = {
inherit sessionVariables systemPackages; inherit sessionVariables systemPackages;
etc = {
"1password/custom_allowed_browsers" = {
text = ''
firefox
brave
'';
mode = "0755";
};
};
}; };
fonts.fontconfig = { fonts.fontconfig = {
enable = true;
antialias = true; antialias = true;
hinting = { hinting = {
enable = true; enable = true;
@ -54,37 +52,49 @@ in
}; };
}; };
hardware.bluetooth = { hardware.bluetooth = mkIf config.hardware.bluetooth.enable {
settings = { settings = {
General.Experimental = true; General.Experimental = true;
}; };
}; };
programs.dconf.enable = true; programs.dconf.enable = config.programs.niri.enable;
security.polkit.enable = true; security.polkit.enable = config.programs.niri.enable;
programs._1password.enable = true; programs._1password-gui = mkIf config.programs._1password.enable {
programs._1password-gui = {
enable = true; enable = true;
polkitPolicyOwners = [ "pml" ]; polkitPolicyOwners = [ "pml" ];
}; };
environment.etc = mkIf config.programs._1password-gui.enable {
"1password/custom_allowed_browsers" = {
text = ''
firefox
brave
'';
mode = "0755";
};
};
programs.niri.enable = true; programs.niri.enable = true;
programs.regreet = { programs.regreet = {
enable = true;
font.name = "SF Pro"; font.name = "SF Pro";
font.size = 16; font.size = 16;
font.package = pkgs.apple-fonts.sf-pro; font.package = pkgs.apple-fonts.sf-pro;
settings = { settings = {
GTK = { 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.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;

View file

@ -0,0 +1,7 @@
{ config, lib, ... }:
{
imports = [ ./minimal.nix ];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}