specialisations
This commit is contained in:
@@ -13,9 +13,6 @@ let
|
||||
user = "matt";
|
||||
password = "$y$j9T$EkPXmsmIMFFZ.WRrBYCxS1$P0kwo6e4.WM5DsqUcEqWC3MrZp5KfCjxffraMFZWu06";
|
||||
hostname = "matt-nixos";
|
||||
gnome = false;
|
||||
plasma = true;
|
||||
cosmic = false;
|
||||
|
||||
resetNetworkScript = pkgs.writeScriptBin "reset-network" ''
|
||||
#!/usr/bin/env bash
|
||||
@@ -40,6 +37,66 @@ in
|
||||
../default.nix
|
||||
];
|
||||
|
||||
specialisation = {
|
||||
plasma.configuration = {
|
||||
apps.discover-wrapped.enable = false;
|
||||
|
||||
services = {
|
||||
# Enable Desktop Environment.
|
||||
displayManager = {
|
||||
sddm.enable = true;
|
||||
sddm.wayland.enable = true;
|
||||
sddm.theme = "breeze";
|
||||
defaultSession = "plasma";
|
||||
};
|
||||
|
||||
desktopManager.plasma6.enable = true;
|
||||
|
||||
# Enable Flatpak
|
||||
flatpak.enable = false;
|
||||
};
|
||||
|
||||
# xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
|
||||
};
|
||||
|
||||
gnome.configuration = {
|
||||
services = {
|
||||
xserver = {
|
||||
desktopManager.gnome.enable = true;
|
||||
|
||||
# Enable Desktop Environment.
|
||||
displayManager = {
|
||||
gdm.enable = true;
|
||||
gdm.wayland = true;
|
||||
defaultSession = "gnome";
|
||||
};
|
||||
};
|
||||
|
||||
# Enable Flatpak
|
||||
flatpak.enable = false;
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
gnome-tweaks
|
||||
gnomeExtensions.appindicator
|
||||
gnomeExtensions.arcmenu
|
||||
gnomeExtensions.dash-to-panel
|
||||
gnomeExtensions.tiling-assistant
|
||||
];
|
||||
};
|
||||
|
||||
# xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
};
|
||||
|
||||
cosmic.configuration = {
|
||||
services = {
|
||||
desktopManager.cosmic.enable = true;
|
||||
displayManager.cosmic-greeter.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
share.hardware.amd = {
|
||||
enable = true;
|
||||
lact.enable = true;
|
||||
@@ -47,34 +104,13 @@ in
|
||||
|
||||
share.gaming.enable = true;
|
||||
|
||||
apps.discover-wrapped.enable = plasma;
|
||||
|
||||
# Services configs
|
||||
services = {
|
||||
# Enable the X11 windowing system.
|
||||
xserver = {
|
||||
enable = true;
|
||||
|
||||
# Enable Desktop Environment.
|
||||
displayManager = {
|
||||
gdm.enable = gnome;
|
||||
};
|
||||
|
||||
desktopManager.gnome.enable = gnome;
|
||||
};
|
||||
|
||||
# Enable Desktop Environment.
|
||||
displayManager = {
|
||||
sddm.enable = plasma;
|
||||
sddm.wayland.enable = plasma;
|
||||
# defaultSession = if plasma then "plasma" else "gnome";
|
||||
};
|
||||
|
||||
desktopManager.plasma6.enable = plasma;
|
||||
|
||||
desktopManager.cosmic.enable = cosmic;
|
||||
displayManager.cosmic-greeter.enable = cosmic;
|
||||
|
||||
# enable auto discovery of printers
|
||||
avahi = {
|
||||
enable = true;
|
||||
@@ -82,9 +118,6 @@ in
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
# Enable Flatpak
|
||||
flatpak.enable = true;
|
||||
|
||||
borgbackup.jobs.home-matt = {
|
||||
encryption.mode = "repokey";
|
||||
encryption.passCommand = "cat /root/borg";
|
||||
@@ -155,9 +188,6 @@ in
|
||||
|
||||
programs.gamemode.enable = true;
|
||||
|
||||
# xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
|
||||
# xdg.portal.extraPortals = mkIf plasma [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
||||
# Configure environment
|
||||
environment = {
|
||||
# List packages installed in system profile. To search, run:
|
||||
|
||||
Reference in New Issue
Block a user