modularise config
This commit is contained in:
parent
ae44502f36
commit
79bba316c2
28 changed files with 407 additions and 432 deletions
13
home/common/chromium.nix
Normal file
13
home/common/chromium.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
chromium = super.chromium.override {
|
||||
commandLineArgs = "--force-dark-mode";
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
programs.chromium.enable = true;
|
||||
}
|
22
home/common/dotnet.nix
Normal file
22
home/common/dotnet.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
with pkgs;
|
||||
let
|
||||
unstable = import <nixos-unstable> {
|
||||
config = removeAttrs config.nixpkgs.config [ "packageOverrides" ];
|
||||
};
|
||||
dotnet-sdk_3 = pkgs.callPackage (import (pkgs.fetchFromGitHub {
|
||||
name = "nixos-pr-dotnet-sdk_3";
|
||||
owner = "NixOS";
|
||||
repo = "nixpkgs";
|
||||
rev = "c3978355e1b1b23a0e1af5abe4a8901321126f49";
|
||||
sha256 = "006jxl07kfl2qbsglx0nsnmygdj3wvwfl98gpl3bprrja0l4gplk";
|
||||
} + /pkgs/development/compilers/dotnet/sdk/3.nix )) {};
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
# dotnet-sdk
|
||||
dotnet-sdk_3
|
||||
omnisharp-roslyn
|
||||
];
|
||||
}
|
6
home/common/emacs.nix
Normal file
6
home/common/emacs.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.emacs.enable = true;
|
||||
programs.emacs.enable = true;
|
||||
}
|
22
home/common/gnome.nix
Normal file
22
home/common/gnome.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
dconf.enable = true;
|
||||
dconf.settings = {
|
||||
"org/gnome/shell" = {
|
||||
enabled-extensions = [
|
||||
"dash-to-panel@jderose9.github.com"
|
||||
"TopIcons@phocean.net"
|
||||
];
|
||||
favorite-apps = [
|
||||
"org.gnome.Nautilus.desktop"
|
||||
"chromium-browser.desktop"
|
||||
"code.desktop"
|
||||
];
|
||||
};
|
||||
"org/gnome/shell/extensions/dash-to-panel" = {
|
||||
appicon-padding = 4;
|
||||
panel-size = 36;
|
||||
};
|
||||
};
|
||||
}
|
9
home/common/gui.nix
Normal file
9
home/common/gui.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
gtk.enable = true;
|
||||
gtk.theme.name = "Adwaita-dark";
|
||||
gtk.gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = true;
|
||||
};
|
||||
}
|
8
home/common/keybase.nix
Normal file
8
home/common/keybase.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.keybase.enable = true;
|
||||
services.kbfs.enable = true;
|
||||
|
||||
home.packages = [ pkgs.keybase-gui ];
|
||||
}
|
16
home/common/mimeapps.nix
Normal file
16
home/common/mimeapps.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
xdg.mimeApps.enable = true;
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"text/html" = [ "chromium-browser.desktop" ];
|
||||
"text/calendar" = [ "chromium-browser.desktop" ];
|
||||
"x-scheme-handler/http" = [ "chromium-browser.desktop" ];
|
||||
"x-scheme-handler/https" = [ "chromium-browser.desktop" ];
|
||||
"x-scheme-handler/about" = [ "chromium-browser.desktop" ];
|
||||
"x-scheme-handler/unknown" = [ "chromium-browser.desktop" ];
|
||||
"x-scheme-handler/mailto" = [ "chromium-browser.desktop" ];
|
||||
"x-scheme-handler/webcal" = [ "chromium-browser.desktop" ];
|
||||
"x-scheme-handler/sgnl" = [ "signal-desktop.desktop" ];
|
||||
};
|
||||
}
|
12
home/common/neovim.nix
Normal file
12
home/common/neovim.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
vim-nix
|
||||
];
|
||||
};
|
||||
}
|
18
home/common/sh.nix
Normal file
18
home/common/sh.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
shellAliases = {
|
||||
emacs = "emacsclient -c";
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
inherit shellAliases;
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
inherit shellAliases;
|
||||
};
|
||||
}
|
5
home/common/signal.nix
Normal file
5
home/common/signal.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = [ pkgs.signal-desktop ];
|
||||
}
|
5
home/common/vscode.nix
Normal file
5
home/common/vscode.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.vscode.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue