switch to gnome for usb config
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
networking.hostName = "nichts";
|
networking.hostName = "nichts";
|
||||||
|
|
||||||
userName = "remy";
|
userName = "remy";
|
||||||
|
gnome.enabled = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -13,11 +14,12 @@
|
|||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
# ../../modules/nixos/backup.nix
|
||||||
../../modules/nixos/bluetooth.nix
|
../../modules/nixos/bluetooth.nix
|
||||||
../../modules/nixos/flakes.nix
|
../../modules/nixos/flakes.nix
|
||||||
../../modules/nixos/flatpak.nix
|
../../modules/nixos/flatpak.nix
|
||||||
../../modules/nixos/fonts.nix
|
../../modules/nixos/fonts.nix
|
||||||
../../modules/nixos/hyprland.nix
|
../../modules/nixos/gnome.nix
|
||||||
../../modules/nixos/language.nix
|
../../modules/nixos/language.nix
|
||||||
../../modules/nixos/ld.nix
|
../../modules/nixos/ld.nix
|
||||||
../../modules/nixos/monitoring.nix
|
../../modules/nixos/monitoring.nix
|
||||||
@@ -27,12 +29,11 @@
|
|||||||
../../modules/nixos/podman.nix
|
../../modules/nixos/podman.nix
|
||||||
../../modules/nixos/power.nix
|
../../modules/nixos/power.nix
|
||||||
../../modules/nixos/stylix.nix
|
../../modules/nixos/stylix.nix
|
||||||
../../modules/nixos/usb_config.nix
|
|
||||||
../../modules/nixos/user.nix
|
../../modules/nixos/user.nix
|
||||||
|
|
||||||
|
|
||||||
../../utils/binary-cache.nix
|
../../utils/binary-cache.nix
|
||||||
../../utils/garbage-collection.nix
|
../../utils/garbage-collection.nix
|
||||||
../../utils/unfree.nix
|
../../utils/unfree.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
31
modules/nixos/gnome.nix
Normal file
31
modules/nixos/gnome.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.nix-config.gnome.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable GNOME desktop environment.";
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.nix-config.gnome.enable {
|
||||||
|
services = {
|
||||||
|
displayManager.gdm.enable = true;
|
||||||
|
desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
|
gnome = {
|
||||||
|
core-apps.enable = false;
|
||||||
|
core-developer-tools.enable = false;
|
||||||
|
games.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Exclude some packages to keep the installation lean
|
||||||
|
environment.gnome.excludePackages = with pkgs; [
|
||||||
|
gnome-tour
|
||||||
|
gnome-user-docs
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@@ -1,24 +1,24 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
virtualisation.containers.enable = true;
|
virtualisation.containers.enable = true;
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
podman = {
|
podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
dockerCompat = false;
|
dockerCompat = false;
|
||||||
|
|
||||||
# Required for containers under podman-compose to be able to talk to each other.
|
# Required for containers under podman-compose to be able to talk to each other.
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Useful other development tools
|
# Useful other development tools
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
podman-compose # start group of containers for dev
|
podman-compose # start group of containers for dev
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{ config, nixpkgs, nixpkgs-unstable, lib, ... }:
|
{ config, nixpkgs, lib, ... }:
|
||||||
with lib.hm.gvariant;
|
with lib.hm.gvariant;
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
|
Reference in New Issue
Block a user