mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Workstation module for graphics
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
{ pkgs, config, inputs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
||||
./../../user/users.nix
|
||||
|
||||
./../../modules/common.nix
|
||||
|
||||
./../../modules/hardware/xremap.nix
|
||||
./../../modules/services/webdav.nix
|
||||
#./../../modules/hardware/nvidia.nix
|
||||
./../../modules/graphics/workstation.nix
|
||||
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
./../../modules/hardware/nvidia.nix
|
||||
];
|
||||
|
||||
networking.hostName = "minoxy";
|
||||
@@ -19,20 +20,12 @@
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
services.xserver.displayManager.gdm.enable = true; # We are pre 25.11
|
||||
|
||||
systemd.targets.sleep.enable = true;
|
||||
systemd.targets.suspend.enable = true;
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
|
||||
programs = {
|
||||
hyprland.enable = true;
|
||||
hyprlock.enable = true;
|
||||
firefox.enable = true;
|
||||
};
|
||||
|
||||
# Never change this!
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
{
|
||||
# Basic services
|
||||
services.locate.enable = true;
|
||||
services.printing.enable = true;
|
||||
|
||||
# Nix fun
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
@@ -13,14 +12,6 @@
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
QTWEBENGINE_CHROMIUM_FLAGS="--blink-settings=darkModeEnabled=true";
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
WLR_NO_HARDWARE_CURSORS= "1";
|
||||
QT_STYLE_OVERRIDE = "kvantum";
|
||||
QT_QPA_PLATFORM="xcb";
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
git
|
||||
starship
|
||||
@@ -38,10 +29,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.fira-code
|
||||
];
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
|
||||
29
modules/graphics/workstation.nix
Normal file
29
modules/graphics/workstation.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Basic services
|
||||
services.printing.enable = true;
|
||||
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
QTWEBENGINE_CHROMIUM_FLAGS="--blink-settings=darkModeEnabled=true";
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
WLR_NO_HARDWARE_CURSORS= "1";
|
||||
QT_STYLE_OVERRIDE = "kvantum";
|
||||
QT_QPA_PLATFORM="xcb";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.fira-code
|
||||
];
|
||||
|
||||
services.xserver.displayManager.gdm.enable = true; # We are pre 25.11
|
||||
|
||||
programs = {
|
||||
hyprland.enable = true;
|
||||
firefox.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
declarative = true;
|
||||
serverProperties = {
|
||||
server-port = 25565;
|
||||
gamemode = 0;
|
||||
max-players = 7;
|
||||
motd = "NixOS Minecraft!";
|
||||
allow-cheats = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
{ ... }: {
|
||||
imports = [
|
||||
(builtins.fetchTarball {
|
||||
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/nixos-25.05/nixos-mailserver-nixos-25.05.tar.gz";
|
||||
sha256 = "0jpp086m839dz6xh6kw5r8iq0cm4nd691zixzy6z11c4z2vf8v85";
|
||||
})
|
||||
];
|
||||
|
||||
mailserver = {
|
||||
enable = true;
|
||||
fqdn = "mail.hahn1.one";
|
||||
domains = [ "hahn1.one" ];
|
||||
|
||||
# A list of all login accounts. To create the password hashes, use
|
||||
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt'
|
||||
loginAccounts = {
|
||||
"jonas@hahn1.one" = {
|
||||
hashedPassword = "$2b$05$aOMZAUvp4p42su99UwQ0FeKPTVKrHBJX1w7IBG9J39rSjSqyT5Y7C";
|
||||
aliases = ["postmaster@hahn1.one" "j@hahn1.one"];
|
||||
};
|
||||
};
|
||||
|
||||
certificateScheme = "acme-nginx";
|
||||
};
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# For this a disk with the label nextcloud is required
|
||||
|
||||
# Setting the filesystem for nextcloud
|
||||
fileSystems."/mnt/nextcloudStorage" = {
|
||||
device = "/dev/disk/by-label/nextcloud";
|
||||
options = [
|
||||
"users"
|
||||
];
|
||||
};
|
||||
|
||||
# Activating the nextcloud servce not optimized
|
||||
environment.etc."nextcloud-admin-pass".text = "PWD";
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
home = "/mnt/nextcloudStorage";
|
||||
package = pkgs.nextcloud30;
|
||||
hostName = "cloud.hahn1.one";
|
||||
settings = {
|
||||
trusted_domains = ["misox"];
|
||||
};
|
||||
config = {
|
||||
adminpassFile = "/etc/nextcloud-admin-pass";
|
||||
dbtype = "sqlite";
|
||||
};
|
||||
extraApps = {inherit (config.services.nextcloud.package.packages.apps) richdocuments news contacts calendar tasks;};
|
||||
extraAppsEnable = true;
|
||||
https = true;
|
||||
configureRedis = true;
|
||||
maxUploadSize = "1G";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user