Cleanups
This commit is contained in:
parent
ac0b6ef15b
commit
5170bdff65
4 changed files with 8 additions and 74 deletions
|
@ -1,13 +1,11 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
./hardware-configuration.nix
|
||||||
./hardware-configuration.nix
|
./system.nix
|
||||||
./programs.nix
|
# TODO monitoring
|
||||||
./system.nix
|
];
|
||||||
# TODO monitoring
|
|
||||||
];
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
@ -54,6 +52,8 @@
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.mosh.enable = true;
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
|
||||||
services.zfs.autoScrub.enable = true;
|
services.zfs.autoScrub.enable = true;
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
let pkgsList = with pkgs; [
|
|
||||||
nix-prefetch-git
|
|
||||||
dnsutils
|
|
||||||
|
|
||||||
unzip
|
|
||||||
zip
|
|
||||||
ripgrep
|
|
||||||
|
|
||||||
niv
|
|
||||||
nixfmt
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./vim.nix
|
|
||||||
];
|
|
||||||
programs = {
|
|
||||||
tmux.enable = true;
|
|
||||||
mosh.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = pkgsList;
|
|
||||||
}
|
|
|
@ -1,14 +1,8 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
# # Auto upgrades
|
|
||||||
# system.autoUpgrade = {
|
|
||||||
# enable = false; # TODO(Ryan): do not enable, it will break deployments.
|
|
||||||
# allowReboot = false;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Auto GC and store optimizations
|
# Auto GC and store optimizations
|
||||||
nix = {
|
nix = {
|
||||||
trustedUsers = [ "root" "gab" ];
|
trustedUsers = [ "root" ];
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
|
@ -20,9 +14,4 @@
|
||||||
max-free = ${toString (1024 * 1024 * 1024)}
|
max-free = ${toString (1024 * 1024 * 1024)}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.locate = {
|
|
||||||
enable = true;
|
|
||||||
interval = "04:05";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
environment.variables = { EDITOR = "vim"; };
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
nixfmt
|
|
||||||
git
|
|
||||||
(neovim.override {
|
|
||||||
vimAlias = true;
|
|
||||||
configure = {
|
|
||||||
packages.myPlugins = with pkgs.vimPlugins; {
|
|
||||||
start = [ vim-lastplace vim-nix ];
|
|
||||||
opt = [];
|
|
||||||
};
|
|
||||||
customRC = ''
|
|
||||||
set encoding=utf-8
|
|
||||||
set wildmenu
|
|
||||||
|
|
||||||
set nocompatible
|
|
||||||
set backspace=indent,eol,start
|
|
||||||
set cursorline
|
|
||||||
hi CursorLine term=bold cterm=bold ctermbg=darkgrey
|
|
||||||
set number
|
|
||||||
set relativenumber
|
|
||||||
set tabstop=4
|
|
||||||
set expandtab
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
)];
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue