This commit is contained in:
mjallen18
2024-03-24 19:06:20 -05:00
parent 38e9ca29cd
commit ef4d2a6ab0
7 changed files with 139 additions and 27 deletions

View File

@@ -8,6 +8,8 @@ let
password =
"$y$j9T$EkPXmsmIMFFZ.WRrBYCxS1$P0kwo6e4.WM5DsqUcEqWC3MrZp5KfCjxffraMFZWu06";
hostname = "matt-nixos";
gnome = true;
plasma = false;
in {
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
@@ -22,7 +24,7 @@ in {
share.gaming.enable = true;
apps.discover-wrapped.enable = true;
apps.discover-wrapped.enable = plasma;
chaotic = {
nyx.cache.enable = true;
@@ -70,14 +72,17 @@ in {
xserver = {
enable = true;
# Enable the Plasma 6 Desktop Environment.
# Enable Desktop Environment.
displayManager = {
sddm.enable = true;
defaultSession = "plasma";
gdm.enable = gnome;
sddm.enable = plasma;
defaultSession = if plasma then "plasma" else "gnome";
};
desktopManager.gnome.enable = gnome;
};
desktopManager.plasma6.enable = true;
desktopManager.plasma6.enable = plasma;
# enable auto discovery of printers
avahi = {
@@ -132,7 +137,7 @@ in {
time = { hardwareClockInLocalTime = true; };
# xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
# xdg.portal.extraPortals = mkIf plasma [ pkgs.xdg-desktop-portal-gtk ];
# Configure environment
environment = {
@@ -168,8 +173,7 @@ in {
# Configure nixpkgs
nixpkgs.config.permittedInsecurePackages = [
# allow insecure electron for etcher
"electron-19.1.9"
# ...
];
# Define a user account. Don't forget to set a password with passwd.