Update common.nix

This commit is contained in:
ediblerope 2025-12-03 13:29:41 +00:00 committed by GitHub
parent 5f8486bf6e
commit 8ceceef7ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,18 +2,18 @@
{ config, pkgs, lib, ... }:
let
vesktopDark = pkgs.stdenv.mkDerivation {
vesktopDark = pkgs.stdenv.mkDerivation rec {
pname = "vesktop-dark";
version = "1.0";
buildInputs = [ pkgs.makeWrapper ];
unpackPhase = "true";
src = null; # no source, we just wrap
installPhase = ''
mkdir -p $out/bin
wrapProgram ${pkgs.vesktop}/bin/vesktop \
--set GTK_THEME Adwaita:dark \
--prefix PATH : ${pkgs.coreutils}/bin \
--prefix PATH : ${pkgs.glib}/bin \
-o $out/bin/vesktop
'';
@ -91,15 +91,15 @@ systemd.user.services.gnomeSettings = {
# Define a user account. Don't forget to set a password with passwd.
users.users.fred = {
isNormalUser = true;
description = "fred";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
bazaar
fastfetch
vesktopDark
];
};
isNormalUser = true;
description = "fred";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
bazaar
fastfetch
vesktopDark
];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;