mirror of
https://github.com/morten-olsen/nixos-config.git
synced 2026-02-08 00:36:27 +01:00
init
This commit is contained in:
36
desktop/gnome/default.nix
Normal file
36
desktop/gnome/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Enable the GNOME Desktop Environment.
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.desktopManager.gnome.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
layout = "dk";
|
||||
xkbVariant = "";
|
||||
xkbOptions = "caps:swapescape";
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
# services.printing.enable = true;
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
|
||||
ubuntu_font_family
|
||||
];
|
||||
enableDefaultPackages = true;
|
||||
fontconfig = {
|
||||
defaultFonts = {
|
||||
serif = [ "Ubuntu" ];
|
||||
sansSerif = [ "Ubuntu" ];
|
||||
monospace = [ "Ubuntu" ];
|
||||
};
|
||||
};
|
||||
fontDir.enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
31
desktop/hyprland/default.nix
Normal file
31
desktop/hyprland/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./environment.nix
|
||||
];
|
||||
environment.systemPackages = [
|
||||
pkgs.hyprland
|
||||
pkgs.eww
|
||||
pkgs.wofi
|
||||
pkgs.swaylock-effects
|
||||
pkgs.swayidle
|
||||
];
|
||||
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
|
||||
ubuntu_font_family
|
||||
];
|
||||
enableDefaultPackages = true;
|
||||
fontconfig = {
|
||||
defaultFonts = {
|
||||
serif = [ "Ubuntu" ];
|
||||
sansSerif = [ "Ubuntu" ];
|
||||
monospace = [ "Ubuntu" ];
|
||||
};
|
||||
};
|
||||
fontDir.enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
23
desktop/hyprland/environment.nix
Normal file
23
desktop/hyprland/environment.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
BROWSER = "firefox";
|
||||
TERMINAL = "kitty";
|
||||
#GBM_BACKEND= "nvidia-drm";
|
||||
#__GLX_VENDOR_LIBRARY_NAME= "nvidia";
|
||||
#LIBVA_DRIVER_NAME= "nvidia"; # hardware acceleration
|
||||
__GL_VRR_ALLOWED="1";
|
||||
WLR_NO_HARDWARE_CURSORS = "1";
|
||||
WLR_RENDERER_ALLOW_SOFTWARE = "1";
|
||||
CLUTTER_BACKEND = "wayland";
|
||||
WLR_RENDERER = "vulkan";
|
||||
|
||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
||||
XDG_SESSION_DESKTOP = "Hyprland";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
};
|
||||
};
|
||||
}
|
||||
52
desktop/kde/default.nix
Normal file
52
desktop/kde/default.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
location = {
|
||||
provider = "geoclue2";
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# broken due to geoclue being stupid
|
||||
#services.localtime.enable = true;
|
||||
|
||||
fonts = {
|
||||
fontDir.enable = true;
|
||||
enableGhostscriptFonts = true;
|
||||
packages = with pkgs; [
|
||||
corefonts
|
||||
source-code-pro
|
||||
source-sans-pro
|
||||
source-serif-pro
|
||||
dejavu_fonts
|
||||
iosevka-bin
|
||||
];
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
#layout = "da";
|
||||
desktopManager.plasma5.enable = true;
|
||||
displayManager = {
|
||||
defaultSession = "plasmawayland";
|
||||
sddm = {
|
||||
enable = true;
|
||||
#enableHidpi = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.numix-icon-theme
|
||||
pkgs.papirus-icon-theme
|
||||
pkgs.arc-icon-theme
|
||||
#pkgs.plasma5Packages.kdeconnect-kde
|
||||
# this doesn't do much, but makes it easier to see the settings
|
||||
pkgs.sddm-kcm
|
||||
];
|
||||
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
}
|
||||
Reference in New Issue
Block a user