loki - swich to framework and primary, book to not primary
This commit is contained in:
parent
97c172a0d0
commit
c249aff6a6
4 changed files with 8 additions and 6 deletions
|
|
@ -27,7 +27,7 @@
|
||||||
tlp.enable = true;
|
tlp.enable = true;
|
||||||
gnome-calendar.enable = true;
|
gnome-calendar.enable = true;
|
||||||
};
|
};
|
||||||
primary.enable = true;
|
primary.enable = false;
|
||||||
wm = {
|
wm = {
|
||||||
sway.enable = true;
|
sway.enable = true;
|
||||||
kde.enable = false;
|
kde.enable = false;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nixos-hardware.nixosModules.dell-xps-13-9310
|
inputs.nixos-hardware.nixosModules.framework-amd-ai-300-series
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# ../disko/nvme.nix
|
# ../disko/nvme.nix
|
||||||
../workstation
|
../workstation
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
auto-cpufreq.enable = true;
|
auto-cpufreq.enable = true;
|
||||||
gnome-calendar.enable = true;
|
gnome-calendar.enable = true;
|
||||||
};
|
};
|
||||||
primary.enable = false;
|
primary.enable = true;
|
||||||
wm = {
|
wm = {
|
||||||
sway.enable = true;
|
sway.enable = true;
|
||||||
kde.enable = false;
|
kde.enable = false;
|
||||||
|
|
|
||||||
|
|
@ -246,7 +246,7 @@ in {
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
allowUnfreePredicate = true;
|
allowUnfreePredicate = true;
|
||||||
permittedInsecurePackages = ["libsoup-2.74.3"];
|
permittedInsecurePackages = ["libsoup-2.74.3" "qtwebengine-5.15.19"];
|
||||||
allowInsecurePredicate = pkg:
|
allowInsecurePredicate = pkg:
|
||||||
builtins.elem (lib.getName pkg) ["broadcom-sta"];
|
builtins.elem (lib.getName pkg) ["broadcom-sta"];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,12 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
with lib; let
|
||||||
cfg = config.primary;
|
cfg = config.primary;
|
||||||
in {
|
in {
|
||||||
options.primary = mkIf cfg.enable {
|
options.primary = {enable = mkEnableOption "is primary host";};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
systemd = {
|
systemd = {
|
||||||
user = {
|
user = {
|
||||||
services = {
|
services = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue