catarina: rename user; remove all necessary graphics; oscuro service

This commit is contained in:
L-Nafaryus 2024-04-26 17:05:21 +05:00
parent 45bde215f8
commit 0b6dc5634c
Signed by: L-Nafaryus
GPG Key ID: 582F8B0866B294A1
3 changed files with 12 additions and 33 deletions

View File

@ -1,5 +1,5 @@
{ config, pkgs, lib, inputs, self, ... }: { config, pkgs, lib, inputs, self, ... }:
rec { {
system.stateVersion = "23.11"; system.stateVersion = "23.11";
imports = [ imports = [
@ -12,8 +12,8 @@ rec {
nix = { nix = {
settings = { settings = {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "l.nafaryus" ]; trusted-users = [ "l-nafaryus" ];
allowed-users = [ "l.nafaryus" ]; allowed-users = [ "l-nafaryus" ];
substituters = [ "https://nix-community.cachix.org" ]; substituters = [ "https://nix-community.cachix.org" ];
trusted-public-keys = [ trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
@ -38,23 +38,6 @@ rec {
}; };
# Services # Services
services.xserver = {
enable = true;
xkb = {
layout = "us";
variant = "";
};
videoDrivers = [ "nvidia" ];
displayManager.gdm = {
enable = false;
autoSuspend = false;
};
desktopManager.gnome.enable = false;
};
services.printing.enable = true; services.printing.enable = true;
services.pipewire = { services.pipewire = {
@ -204,6 +187,11 @@ rec {
}; };
}; };
services.oscuro = {
enable = true;
discordTokenFile = config.sops.secrets.discordToken.path;
};
# Packages # Packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wget wget
@ -255,16 +243,13 @@ rec {
Host astora Host astora
HostName 192.168.156.101 HostName 192.168.156.101
Port 22 Port 22
User nafaryus User l-nafaryus
Host catarina Host catarina
HostName 192.168.156.102 HostName 192.168.156.102
Port 22 Port 22
User l.nafaryus User l-nafaryus
''; '';
programs.direnv.enable = true; programs.direnv.enable = true;
fonts.packages = with pkgs; [ nerdfonts ];
} }

View File

@ -119,12 +119,6 @@
cpu.intel.updateMicrocode = true; cpu.intel.updateMicrocode = true;
nvidia.nvidiaSettings = true;
nvidia.modesetting.enable = true;
opengl.enable = true;
opengl.driSupport32Bit = true;
bluetooth.enable = true; bluetooth.enable = true;
pulseaudio.enable = false; pulseaudio.enable = false;

View File

@ -3,14 +3,14 @@
# Users # Users
users.users.root.hashedPasswordFile = config.sops.secrets."users/root".path; users.users.root.hashedPasswordFile = config.sops.secrets."users/root".path;
users.users."l.nafaryus" = { users.users.l-nafaryus = {
isNormalUser = true; isNormalUser = true;
description = "L-Nafaryus"; description = "L-Nafaryus";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
group = "users"; group = "users";
uid = 1000; uid = 1000;
shell = pkgs.fish; shell = pkgs.fish;
hashedPasswordFile = config.sops.secrets."users/l.nafaryus".path; hashedPasswordFile = config.sops.secrets."users/l-nafaryus".path;
}; };
users.users.nginx.extraGroups = [ "acme" "papermc" ]; users.users.nginx.extraGroups = [ "acme" "papermc" ];