nixos: home config
This commit is contained in:
parent
206bd48fb2
commit
00ebc2d6a8
|
@ -4,8 +4,7 @@
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
unstable = import <unstable> {};
|
packages = with pkgs; [
|
||||||
packages = (with pkgs; [
|
|
||||||
vim
|
vim
|
||||||
git
|
git
|
||||||
curl
|
curl
|
||||||
|
@ -13,22 +12,14 @@ let
|
||||||
gnumake
|
gnumake
|
||||||
gcc
|
gcc
|
||||||
|
|
||||||
# Lua
|
|
||||||
(luajit.withPackages (p: with p; [ luarocks ]))
|
|
||||||
lua-language-server
|
|
||||||
|
|
||||||
# Nix
|
|
||||||
nixd
|
|
||||||
|
|
||||||
# Neovim
|
# Neovim
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
tree-sitter
|
tree-sitter
|
||||||
ripgrep
|
ripgrep
|
||||||
fd
|
fd
|
||||||
unzip
|
unzip
|
||||||
]) ++ (with unstable; [
|
|
||||||
neovim
|
neovim
|
||||||
]);
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
|
@ -37,7 +28,6 @@ in
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./nvidia.nix
|
./nvidia.nix
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./gaming.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Nix package installer settings
|
# Nix package installer settings
|
||||||
|
@ -128,14 +118,11 @@ in
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
firefox = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox-devedition;
|
gamescopeSession.enable = true;
|
||||||
preferences = {
|
|
||||||
"widget.use-xdg-desktop-portal.file-picker" = 1;
|
|
||||||
"widget.use-xdg-desktop-portal.mime-handler" = 1;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
gamemode.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.kamov = {
|
users.users.kamov = {
|
||||||
|
|
|
@ -1,23 +1,15 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
mangohud
|
mangohud
|
||||||
protonup
|
protonup
|
||||||
lutris
|
lutris
|
||||||
bottles
|
bottles
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
home.sessionVariables = {
|
||||||
steam = {
|
|
||||||
enable = true;
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
};
|
|
||||||
gamemode.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.sessionVariables = {
|
|
||||||
# Tell protonup where to install patched proton GE
|
# Tell protonup where to install patched proton GE
|
||||||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/kamov/.steam/root/compatibilitytools.d";
|
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
|
||||||
# Apparently Steam client has broken scaling on Linux
|
# Apparently Steam client has broken scaling on Linux
|
||||||
STEAM_FORCE_DESKTOPUI_SCALING = "1.2";
|
STEAM_FORCE_DESKTOPUI_SCALING = "1.2";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,21 +1,12 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
unstable = import <unstable> {};
|
unstable = import <unstable> {};
|
||||||
packages = (with pkgs; [
|
|
||||||
anki
|
|
||||||
discord
|
|
||||||
krita
|
|
||||||
prismlauncher
|
|
||||||
qbittorrent
|
|
||||||
spotify
|
|
||||||
vlc
|
|
||||||
obs-studio
|
|
||||||
audacity
|
|
||||||
]) ++ (with unstable; [
|
|
||||||
neovide
|
|
||||||
]);
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./gaming.nix
|
||||||
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
|
@ -23,7 +14,23 @@ in
|
||||||
homeDirectory = "/home/kamov";
|
homeDirectory = "/home/kamov";
|
||||||
|
|
||||||
# Packages that should be installed to the user profile.
|
# Packages that should be installed to the user profile.
|
||||||
packages = packages;
|
packages = with pkgs; [
|
||||||
|
anki
|
||||||
|
audacity
|
||||||
|
discord
|
||||||
|
krita
|
||||||
|
obs-studio
|
||||||
|
qbittorrent
|
||||||
|
spotify
|
||||||
|
vlc
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"text/html" = ["firefox-devedition.desktop"];
|
||||||
|
"text/xml" = ["firefox-devedition.desktop"];
|
||||||
|
"x-scheme-handler/http" = ["firefox-devedition.desktop"];
|
||||||
|
"x-scheme-handler/https" = ["firefox-devedition.desktop"];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -39,6 +46,42 @@ in
|
||||||
key = "191CBFF5F72ECAFD!";
|
key = "191CBFF5F72ECAFD!";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
firefox = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.firefox-devedition;
|
||||||
|
policies = {
|
||||||
|
"DisablePocket" = true;
|
||||||
|
"DisableTelemetry" = true;
|
||||||
|
"PrimaryPassword" = false;
|
||||||
|
"PasswordManagerEnabled" = false;
|
||||||
|
"FirefoxHome" = {
|
||||||
|
"Search" = true;
|
||||||
|
"TopSites" = false;
|
||||||
|
"SponsoredTopSites" = false;
|
||||||
|
"Highlights" = false;
|
||||||
|
"Pocket" = false;
|
||||||
|
"SponsoredPocket" = false;
|
||||||
|
"Snippets" = false;
|
||||||
|
"Locked" = true;
|
||||||
|
};
|
||||||
|
"Preferences" = {
|
||||||
|
"widget.use-xdg-desktop-portal.file-picker" = 1;
|
||||||
|
"widget.use-xdg-desktop-portal.mime-handler" = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
neovim = {
|
||||||
|
enable = true;
|
||||||
|
package = unstable.neovim-unwrapped;
|
||||||
|
defaultEditor = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
lua-language-server
|
||||||
|
nixd
|
||||||
|
lldb
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.kdeconnect.enable = true;
|
services.kdeconnect.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue