ported over nixos desktop config

This commit is contained in:
Thilo Billerbeck 2023-05-17 01:18:35 +02:00
parent 7840268f04
commit 4586a56916
3 changed files with 45 additions and 0 deletions

View file

@ -9,6 +9,7 @@
./../programs/bat.nix ./../programs/bat.nix
./../programs/beets.nix ./../programs/beets.nix
./../programs/command-not-found.nix ./../programs/command-not-found.nix
./../programs/dircolors.nix
./../programs/direnv.nix ./../programs/direnv.nix
./../programs/fzf.nix ./../programs/fzf.nix
./../programs/git.nix ./../programs/git.nix

36
machines/desktop.nix Normal file
View file

@ -0,0 +1,36 @@
{ config, pkgs, lib, ... }:
let
chromeArgs = lib.strings.concatStringsSep " " [
"--force-dark-mode"
"--enable-features=WebUIDarkMode"
"--enable-smooth-scrolling"
"--ozone-platform-hint=auto"
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-zero-copy"
"--force-device-scale-factor=1.0"
"--use-gl=desktop"
];
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in {
imports = [
./common.nix
];
news.display = "silent";
programs.vscode.package = (pkgs.vscode.override {
commandLineArgs =
"--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --gtk-version=4";
});
home.packages = with pkgs; [
(pkgs.vivaldi.override {
proprietaryCodecs = true;
enableWidevine = true;
commandLineArgs = chromeArgs;
})
(pkgs.google-chrome.override { commandLineArgs = chromeArgs; })
];
}

8
programs/dircolors.nix Normal file
View file

@ -0,0 +1,8 @@
{ config, pkgs, lib, ... }:
{
programs.dircolors = {
enable = true;
enableZshIntegration = true;
};
}