New onedrive module + various updates
This commit is contained in:
parent
d304c4c65a
commit
286f70981b
7 changed files with 68 additions and 15 deletions
|
|
@ -3,8 +3,7 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
callPackage = pkgs.lib.callPackageWith (pkgs // self);
|
self = with pkgs; {
|
||||||
self = {
|
|
||||||
lockscreen = callPackage ./lockscreen {};
|
lockscreen = callPackage ./lockscreen {};
|
||||||
update-background = callPackage ./update-background {};
|
update-background = callPackage ./update-background {};
|
||||||
cocktail-bar-cli = callPackage ./cocktail-bar-cli {};
|
cocktail-bar-cli = callPackage ./cocktail-bar-cli {};
|
||||||
|
|
|
||||||
4
home.nix
4
home.nix
|
|
@ -64,6 +64,7 @@ in
|
||||||
google-chrome
|
google-chrome
|
||||||
gucharmap
|
gucharmap
|
||||||
htop
|
htop
|
||||||
|
hyperspace-cli
|
||||||
jetbrains.datagrip
|
jetbrains.datagrip
|
||||||
keepassxc
|
keepassxc
|
||||||
krita
|
krita
|
||||||
|
|
@ -72,7 +73,7 @@ in
|
||||||
megacmd
|
megacmd
|
||||||
mpv
|
mpv
|
||||||
neofetch
|
neofetch
|
||||||
nix-prefetch-git
|
nix-prefetch-scripts
|
||||||
obsidian
|
obsidian
|
||||||
openvpn
|
openvpn
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
|
@ -153,6 +154,7 @@ in
|
||||||
# ./modules/nix-index.nix
|
# ./modules/nix-index.nix
|
||||||
./modules/noti.nix
|
./modules/noti.nix
|
||||||
./modules/obs-studio.nix
|
./modules/obs-studio.nix
|
||||||
|
./modules/onedrive.nix
|
||||||
# ./modules/pazi.nix
|
# ./modules/pazi.nix
|
||||||
# ./modules/picom.nix
|
# ./modules/picom.nix
|
||||||
./modules/polybar.nix
|
./modules/polybar.nix
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@ let
|
||||||
pythonPlugins = with pkgs.python38Packages; [
|
pythonPlugins = with pkgs.python38Packages; [
|
||||||
black
|
black
|
||||||
pyls-black
|
pyls-black
|
||||||
|
pyls-isort
|
||||||
|
pyls-mypy
|
||||||
python-language-server
|
python-language-server
|
||||||
];
|
];
|
||||||
javascriptPlugins = with pkgs; [
|
javascriptPlugins = with pkgs; [
|
||||||
|
|
@ -146,15 +148,15 @@ in
|
||||||
set-face global error rgb:${normal.red},default
|
set-face global error rgb:${normal.red},default
|
||||||
set-face global keyword rgb:${normal.blue},default
|
set-face global keyword rgb:${normal.blue},default
|
||||||
set-face global operator rgb:${normal.blue},default
|
set-face global operator rgb:${normal.blue},default
|
||||||
set-face global attribute rgb:${dark.blue},default
|
set-face global attribute rgb:${bright.blue},default
|
||||||
set-face global comment rgb:${bright.blue},default
|
set-face global comment rgb:${bright.blue},default
|
||||||
set-face global meta rgb:${normal.yellow},default
|
set-face global meta rgb:${normal.yellow},default
|
||||||
set-face global Default rgb:${normal.white},default
|
set-face global Default rgb:${normal.white},default
|
||||||
set-face global PrimarySelection rgb:${normal.black},rgb:${normal.white}
|
set-face global PrimarySelection rgb:${normal.black},rgb:${dark.yellow}
|
||||||
set-face global SecondarySelection rgb:${bright.white},rgb:${bright.black}
|
set-face global SecondarySelection rgb:${normal.black},rgb:${dark.white}
|
||||||
set-face global PrimaryCursor rgb:${dark.black},rgb:${normal.yellow}
|
set-face global PrimaryCursor rgb:${normal.black},rgb:${normal.yellow}
|
||||||
set-face global SecondaryCursor rgb:${dark.black},rgb:${dark.white}
|
set-face global SecondaryCursor rgb:${normal.black},rgb:${normal.white}
|
||||||
set-face global MenuForeground rgb:${dark.white},rgb:${dark.white}
|
set-face global MenuForeground rgb:${normal.white},rgb:${bright.black}
|
||||||
set-face global MenuBackground default,rgb:${normal.black}
|
set-face global MenuBackground default,rgb:${normal.black}
|
||||||
set-face global MenuInfo default,rgb:${normal.black}
|
set-face global MenuInfo default,rgb:${normal.black}
|
||||||
set-face global Information rgb:${dark.black},rgb:${normal.cyan}
|
set-face global Information rgb:${dark.black},rgb:${normal.cyan}
|
||||||
|
|
@ -385,7 +387,7 @@ in
|
||||||
[language.python]
|
[language.python]
|
||||||
filetypes = ["python"]
|
filetypes = ["python"]
|
||||||
roots = ["requirements.txt", "setup.py", ".git", ".hg"]
|
roots = ["requirements.txt", "setup.py", ".git", ".hg"]
|
||||||
command = "${pkgs.python-language-server}/bin/pyls"
|
command = "${pkgs.python-language-server}/bin/python-language-server"
|
||||||
offset_encoding = "utf-8"
|
offset_encoding = "utf-8"
|
||||||
[language.python.settings]
|
[language.python.settings]
|
||||||
# See https://github.com/palantir/python-language-server#configuration
|
# See https://github.com/palantir/python-language-server#configuration
|
||||||
|
|
@ -536,5 +538,4 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
builtins.toPath "${desktopItem}/share/applications/kakoune.desktop";
|
builtins.toPath "${desktopItem}/share/applications/kakoune.desktop";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
modules/onedrive.nix
Normal file
21
modules/onedrive.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
onedriveCmd = "${pkgs.onedrive}/bin/onedrive --monitor";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
systemd.user.services."onedrive" = {
|
||||||
|
Unit = {
|
||||||
|
Description = "OneDrive synchronization service";
|
||||||
|
After = [ "network.target" ];
|
||||||
|
PartOf = [ "default.target" ];
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStart = onedriveCmd;
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = "30s";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,12 +1,15 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
"dk" = "docker";
|
||||||
|
"hm" = "home-manager";
|
||||||
|
"jc" = "sudo journalctl";
|
||||||
|
"jcu" = "journalctl --user";
|
||||||
|
"nf" = "find /nix/store/ -maxdepth 1 | grep";
|
||||||
|
"ns" = "nix search nixpkgs";
|
||||||
|
"nS" = "nix-shell";
|
||||||
"sc" = "systemctl";
|
"sc" = "systemctl";
|
||||||
"scu" = "systemctl --user";
|
"scu" = "systemctl --user";
|
||||||
"hm" = "home-manager";
|
|
||||||
"ns" = "nix search nixpkgs";
|
|
||||||
"nf" = "find /nix/store/ -maxdepth 1 | grep";
|
|
||||||
"dk" = "docker";
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
./pentablet.nix
|
./pentablet.nix
|
||||||
./pro_audio.nix
|
./pro_audio.nix
|
||||||
./defcon.nix
|
./defcon.nix
|
||||||
|
./mind.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
|
@ -220,6 +221,12 @@
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# SMART
|
||||||
|
services.smartd = {
|
||||||
|
enable = true;
|
||||||
|
notifications.x11.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Clamav
|
# Clamav
|
||||||
services.clamav = { daemon.enable = true; updater.enable = true; };
|
services.clamav = { daemon.enable = true; updater.enable = true; };
|
||||||
|
|
||||||
|
|
|
||||||
20
nixos/mind.nix
Normal file
20
nixos/mind.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
services.postgresql = {
|
||||||
|
enable = true;
|
||||||
|
ensureDatabases = [
|
||||||
|
"mfh"
|
||||||
|
];
|
||||||
|
ensureUsers = [
|
||||||
|
{
|
||||||
|
name = "bertof";
|
||||||
|
ensurePermissions = {
|
||||||
|
"DATABASE \"mfh\"" = "ALL PRIVILEGES";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.apache-kafka = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue