Autoformatting of nix files
This commit is contained in:
parent
976b6b670d
commit
db74835acf
12 changed files with 354 additions and 350 deletions
|
@ -3,6 +3,8 @@ let g:bufferline_echo = 0
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
|
||||||
|
au BufWrite * :Autoformat
|
||||||
|
|
||||||
" plugins: rust
|
" plugins: rust
|
||||||
let g:rustfmt_autosave = 1
|
let g:rustfmt_autosave = 1
|
||||||
|
|
||||||
|
|
|
@ -50,4 +50,3 @@ augroup END
|
||||||
" vimdiff
|
" vimdiff
|
||||||
set diffopt+=iwhite
|
set diffopt+=iwhite
|
||||||
set diffexpr=""
|
set diffexpr=""
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
networking.hostName = "foureighty";
|
networking.hostName = "foureighty";
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
|
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
|
||||||
initrd.kernelModules = [ "i915" ];
|
initrd.kernelModules = [ "i915" ];
|
||||||
|
@ -25,60 +25,60 @@
|
||||||
preLVM = true;
|
preLVM = true;
|
||||||
allowDiscards = true;
|
allowDiscards = true;
|
||||||
}];
|
}];
|
||||||
loader.grub = {
|
loader.grub = {
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
|
};
|
||||||
|
loader.efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
loader.efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
time.hardwareClockInLocalTime = true;
|
time.hardwareClockInLocalTime = true;
|
||||||
time.timeZone = "Europe/London";
|
time.timeZone = "Europe/London";
|
||||||
|
|
||||||
hardware.bumblebee.enable = true;
|
hardware.bumblebee.enable = true;
|
||||||
hardware.bumblebee.connectDisplay = true;
|
hardware.bumblebee.connectDisplay = true;
|
||||||
|
|
||||||
hardware.trackpoint.enable = true;
|
hardware.trackpoint.enable = true;
|
||||||
|
|
||||||
services.fprintd.enable = true;
|
services.fprintd.enable = true;
|
||||||
|
|
||||||
systemd.services.cpu-throttling = {
|
systemd.services.cpu-throttling = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "CPU Throttling Fix";
|
description = "CPU Throttling Fix";
|
||||||
documentation = [
|
documentation = [
|
||||||
"https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Power_management.2FThrottling_issues"
|
"https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Power_management.2FThrottling_issues"
|
||||||
];
|
];
|
||||||
path = [ pkgs.msr-tools ];
|
path = [ pkgs.msr-tools ];
|
||||||
script = "wrmsr -a 0x1a2 0x3000000";
|
script = "wrmsr -a 0x1a2 0x3000000";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
};
|
};
|
||||||
wantedBy = [
|
wantedBy = [
|
||||||
"timers.target"
|
"timers.target"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.timers.cpu-throttling = {
|
systemd.timers.cpu-throttling = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "CPU Throttling Fix";
|
description = "CPU Throttling Fix";
|
||||||
documentation = [
|
documentation = [
|
||||||
"https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Power_management.2FThrottling_issues"
|
"https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Power_management.2FThrottling_issues"
|
||||||
];
|
];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnActiveSec = 60;
|
OnActiveSec = 60;
|
||||||
OnUnitActiveSec = 60;
|
OnUnitActiveSec = 60;
|
||||||
Unit = "cpu-throttling.service";
|
Unit = "cpu-throttling.service";
|
||||||
};
|
};
|
||||||
wantedBy = [
|
wantedBy = [
|
||||||
"timers.target"
|
"timers.target"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
../boot.nix
|
../boot.nix
|
||||||
../common.nix
|
../common.nix
|
||||||
../gfx-intel.nix
|
../gfx-intel.nix
|
||||||
../virtualbox.nix
|
../virtualbox.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,19 +12,19 @@
|
||||||
preLVM = true;
|
preLVM = true;
|
||||||
allowDiscards = true;
|
allowDiscards = true;
|
||||||
}];
|
}];
|
||||||
loader.grub = {
|
loader.grub = {
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
|
};
|
||||||
|
loader.efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
loader.efi.canTouchEfiVariables = true;
|
time.timeZone = "Europe/London";
|
||||||
};
|
|
||||||
time.timeZone = "Europe/London";
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
../boot.nix
|
../boot.nix
|
||||||
../common.nix
|
../common.nix
|
||||||
../gfx-intel.nix
|
../gfx-intel.nix
|
||||||
../virtualbox.nix
|
../virtualbox.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,15 +10,15 @@
|
||||||
preLVM = true;
|
preLVM = true;
|
||||||
allowDiscards = true;
|
allowDiscards = true;
|
||||||
}];
|
}];
|
||||||
loader.grub = {
|
loader.grub = {
|
||||||
device = "/dev/sda";
|
device = "/dev/sda";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
time.timeZone = "Europe/Warsaw";
|
||||||
time.timeZone = "Europe/Warsaw";
|
imports = [
|
||||||
imports = [
|
/etc/nixos/hardware-configuration.nix
|
||||||
/etc/nixos/hardware-configuration.nix
|
../boot.nix
|
||||||
../boot.nix
|
../common.nix
|
||||||
../common.nix
|
../gfx-intel.nix
|
||||||
../gfx-intel.nix
|
];
|
||||||
];
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
services.xserver.desktopManager.plasma5.enable = lib.mkForce false;
|
services.xserver.desktopManager.plasma5.enable = lib.mkForce false;
|
||||||
services.xserver.displayManager.sddm.enable = lib.mkForce false;
|
services.xserver.displayManager.sddm.enable = lib.mkForce false;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
<nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
|
<nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
|
||||||
../common.nix
|
../common.nix
|
||||||
];
|
];
|
||||||
|
|
192
nixos/common.nix
192
nixos/common.nix
|
@ -4,107 +4,107 @@ let
|
||||||
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
||||||
etesync-dav = import ./packages/etesync-dav/default.nix;
|
etesync-dav = import ./packages/etesync-dav/default.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./vscode.nix
|
./vscode.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
./gsconnect.nix
|
./gsconnect.nix
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs.config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
packageOverrides = pkgs: {
|
|
||||||
unstable = import unstableTarball {
|
|
||||||
config = config.nixpkgs.config;
|
|
||||||
};
|
|
||||||
cyplo = import ./nixpkgs {
|
|
||||||
config = config.nixpkgs.config;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
wget git zsh gnupg curl tmux python36Packages.glances vim htop atop firefox home-manager
|
|
||||||
];
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_GB.UTF-8";
|
|
||||||
|
|
||||||
users.users.cyryl = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" "docker" "vboxusers"];
|
|
||||||
packages = with pkgs; [
|
|
||||||
unstable.pypi2nix etesync-dav unstable.hopper
|
|
||||||
];
|
];
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
nixpkgs.config = {
|
||||||
virtualisation.docker = {
|
allowUnfree = true;
|
||||||
enable = true;
|
packageOverrides = pkgs: {
|
||||||
autoPrune.enable = true;
|
unstable = import unstableTarball {
|
||||||
};
|
config = config.nixpkgs.config;
|
||||||
|
};
|
||||||
services = {
|
cyplo = import ./nixpkgs {
|
||||||
fwupd.enable = true;
|
config = config.nixpkgs.config;
|
||||||
tlp.enable = true;
|
};
|
||||||
|
|
||||||
printing = {
|
|
||||||
enable = true;
|
|
||||||
drivers = [ pkgs.epson-escpr pkgs.samsung-unified-linux-driver pkgs.splix ];
|
|
||||||
};
|
|
||||||
avahi = {
|
|
||||||
enable = true;
|
|
||||||
nssmdns = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
restic.backups.home = {
|
|
||||||
passwordFile = "/etc/nixos/secrets/restic-password";
|
|
||||||
paths = [ "/home" ];
|
|
||||||
repository = "sftp:fetcher@brix:/mnt/data/backup-targets";
|
|
||||||
timerConfig = { OnCalendar = "hourly"; };
|
|
||||||
};
|
|
||||||
|
|
||||||
gnome3 = {
|
|
||||||
chrome-gnome-shell.enable = true;
|
|
||||||
gnome-keyring.enable = true;
|
|
||||||
};
|
|
||||||
xserver = {
|
|
||||||
enable = true;
|
|
||||||
layout = "pl";
|
|
||||||
libinput = {
|
|
||||||
enable = true;
|
|
||||||
naturalScrolling = false;
|
|
||||||
clickMethod = "clickfinger";
|
|
||||||
};
|
|
||||||
|
|
||||||
desktopManager = {
|
|
||||||
gnome3 = {
|
|
||||||
enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
displayManager.gdm= {
|
|
||||||
enable = true;
|
environment.systemPackages = with pkgs; [
|
||||||
wayland = false;
|
wget git zsh gnupg curl tmux python36Packages.glances vim htop atop firefox home-manager
|
||||||
|
];
|
||||||
|
|
||||||
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
|
|
||||||
|
users.users.cyryl = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" "docker" "vboxusers"];
|
||||||
|
packages = with pkgs; [
|
||||||
|
unstable.pypi2nix etesync-dav unstable.hopper
|
||||||
|
];
|
||||||
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
security.pam.services.gdm.enableGnomeKeyring = true;
|
|
||||||
|
|
||||||
sound.enable = true;
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
|
||||||
hardware.pulseaudio.enable = true;
|
|
||||||
hardware.u2f.enable = true;
|
|
||||||
hardware.brightnessctl.enable = true;
|
|
||||||
hardware.sane.enable = true;
|
|
||||||
powerManagement.cpuFreqGovernor = (lib.mkForce null);
|
|
||||||
|
|
||||||
|
|
||||||
nix.gc.automatic = true;
|
virtualisation.docker = {
|
||||||
system.autoUpgrade.enable = true;
|
enable = true;
|
||||||
system.stateVersion = "19.03";
|
autoPrune.enable = true;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
fwupd.enable = true;
|
||||||
|
tlp.enable = true;
|
||||||
|
|
||||||
|
printing = {
|
||||||
|
enable = true;
|
||||||
|
drivers = [ pkgs.epson-escpr pkgs.samsung-unified-linux-driver pkgs.splix ];
|
||||||
|
};
|
||||||
|
avahi = {
|
||||||
|
enable = true;
|
||||||
|
nssmdns = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
restic.backups.home = {
|
||||||
|
passwordFile = "/etc/nixos/secrets/restic-password";
|
||||||
|
paths = [ "/home" ];
|
||||||
|
repository = "sftp:fetcher@brix:/mnt/data/backup-targets";
|
||||||
|
timerConfig = { OnCalendar = "hourly"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
gnome3 = {
|
||||||
|
chrome-gnome-shell.enable = true;
|
||||||
|
gnome-keyring.enable = true;
|
||||||
|
};
|
||||||
|
xserver = {
|
||||||
|
enable = true;
|
||||||
|
layout = "pl";
|
||||||
|
libinput = {
|
||||||
|
enable = true;
|
||||||
|
naturalScrolling = false;
|
||||||
|
clickMethod = "clickfinger";
|
||||||
|
};
|
||||||
|
|
||||||
|
desktopManager = {
|
||||||
|
gnome3 = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
displayManager.gdm= {
|
||||||
|
enable = true;
|
||||||
|
wayland = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
security.pam.services.gdm.enableGnomeKeyring = true;
|
||||||
|
|
||||||
|
sound.enable = true;
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
hardware.pulseaudio.enable = true;
|
||||||
|
hardware.u2f.enable = true;
|
||||||
|
hardware.brightnessctl.enable = true;
|
||||||
|
hardware.sane.enable = true;
|
||||||
|
powerManagement.cpuFreqGovernor = (lib.mkForce null);
|
||||||
|
|
||||||
|
|
||||||
|
nix.gc.automatic = true;
|
||||||
|
system.autoUpgrade.enable = true;
|
||||||
|
system.stateVersion = "19.03";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,16 +3,16 @@
|
||||||
let
|
let
|
||||||
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
packageOverrides = pkgs: {
|
packageOverrides = pkgs: {
|
||||||
unstable = import unstableTarball {
|
unstable = import unstableTarball {
|
||||||
config = config.nixpkgs.config;
|
config = config.nixpkgs.config;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
home.packages = with pkgs; [
|
||||||
home.packages = with pkgs; [
|
|
||||||
keepass fontconfig nodejs rustup gcc gdb
|
keepass fontconfig nodejs rustup gcc gdb
|
||||||
binutils xclip pkgconfig veracrypt gitAndTools.diff-so-fancy
|
binutils xclip pkgconfig veracrypt gitAndTools.diff-so-fancy
|
||||||
gnome3.gnome-shell-extensions chrome-gnome-shell gnomeExtensions.clipboard-indicator
|
gnome3.gnome-shell-extensions chrome-gnome-shell gnomeExtensions.clipboard-indicator
|
||||||
|
@ -28,55 +28,25 @@ in
|
||||||
];
|
];
|
||||||
imports = [
|
imports = [
|
||||||
./programs/zsh.nix
|
./programs/zsh.nix
|
||||||
|
./programs/vim.nix
|
||||||
./programs/alacritty.nix
|
./programs/alacritty.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
|
|
||||||
vim = {
|
fzf.enable = true;
|
||||||
enable = true;
|
tmux = {
|
||||||
extraConfig = builtins.readFile ~/dev/dotfiles/.vimrc.nixos;
|
enable = true;
|
||||||
plugins = [
|
shortcut = "a";
|
||||||
"vim-gitgutter"
|
extraConfig = ''
|
||||||
"vim-toml"
|
set -g status off
|
||||||
"vim-autoformat"
|
set -g mouse on
|
||||||
"editorconfig-vim"
|
|
||||||
"tabular"
|
|
||||||
"vim-colors-solarized"
|
|
||||||
"fzf-vim"
|
|
||||||
"ctrlp-vim"
|
|
||||||
"vim-nix"
|
|
||||||
"vim-startify"
|
|
||||||
"ack-vim"
|
|
||||||
"vim-markdown"
|
|
||||||
"rust-vim"
|
|
||||||
"nerdtree"
|
|
||||||
"vim-dispatch"
|
|
||||||
"deoplete-nvim"
|
|
||||||
"deoplete-go"
|
|
||||||
"vim-fugitive"
|
|
||||||
"vim-sensible"
|
|
||||||
"vim-surround"
|
|
||||||
"vim-airline"
|
|
||||||
"vim-airline-themes"
|
|
||||||
"vim-dirdiff"
|
|
||||||
"nerdtree-git-plugin"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fzf.enable = true;
|
|
||||||
tmux = {
|
|
||||||
enable = true;
|
|
||||||
shortcut = "a";
|
|
||||||
extraConfig = ''
|
|
||||||
set -g status off
|
|
||||||
set -g mouse on
|
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
firefox.enable = true;
|
||||||
|
chromium.enable = true;
|
||||||
|
go.enable = true;
|
||||||
|
bat.enable = true;
|
||||||
};
|
};
|
||||||
firefox.enable = true;
|
}
|
||||||
chromium.enable = true;
|
|
||||||
go.enable = true;
|
|
||||||
bat.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
33
nixos/programs/vim.nix
Normal file
33
nixos/programs/vim.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.vim = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = builtins.readFile ~/dev/dotfiles/.vimrc.nixos;
|
||||||
|
plugins = [
|
||||||
|
"vim-gitgutter"
|
||||||
|
"vim-toml"
|
||||||
|
"vim-autoformat"
|
||||||
|
"editorconfig-vim"
|
||||||
|
"tabular"
|
||||||
|
"vim-colors-solarized"
|
||||||
|
"fzf-vim"
|
||||||
|
"ctrlp-vim"
|
||||||
|
"vim-nix"
|
||||||
|
"vim-startify"
|
||||||
|
"ack-vim"
|
||||||
|
"vim-markdown"
|
||||||
|
"rust-vim"
|
||||||
|
"nerdtree"
|
||||||
|
"vim-dispatch"
|
||||||
|
"deoplete-nvim"
|
||||||
|
"deoplete-go"
|
||||||
|
"vim-fugitive"
|
||||||
|
"vim-sensible"
|
||||||
|
"vim-surround"
|
||||||
|
"vim-airline"
|
||||||
|
"vim-airline-themes"
|
||||||
|
"vim-dirdiff"
|
||||||
|
"nerdtree-git-plugin"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
packageOverrides = pkgs: {
|
packageOverrides = pkgs: {
|
||||||
unstable = import unstableTarball {
|
unstable = import unstableTarball {
|
||||||
|
@ -11,10 +11,10 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "cyryl";
|
user = "cyryl";
|
||||||
dataDir = "/home/cyryl/.syncthing";
|
dataDir = "/home/cyryl/.syncthing";
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
package = pkgs.unstable.syncthing;
|
package = pkgs.unstable.syncthing;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
let
|
let
|
||||||
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
packageOverrides = pkgs: {
|
packageOverrides = pkgs: {
|
||||||
unstable = import unstableTarball {
|
unstable = import unstableTarball {
|
||||||
config = config.nixpkgs.config;
|
config = config.nixpkgs.config;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
virtualisation.virtualbox.host = {
|
||||||
virtualisation.virtualbox.host = {
|
enable = true;
|
||||||
enable = true;
|
enableExtensionPack = true;
|
||||||
enableExtensionPack = true;
|
enableHardening = false;
|
||||||
enableHardening = false;
|
};
|
||||||
};
|
}
|
||||||
}
|
|
||||||
|
|
204
nixos/vscode.nix
204
nixos/vscode.nix
|
@ -3,154 +3,154 @@
|
||||||
let
|
let
|
||||||
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
packageOverrides = pkgs: {
|
packageOverrides = pkgs: {
|
||||||
unstable = import unstableTarball {
|
unstable = import unstableTarball {
|
||||||
config = config.nixpkgs.config;
|
config = config.nixpkgs.config;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
users.users.cyryl = {
|
users.users.cyryl = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
(unstable.vscode-with-extensions.override {
|
(unstable.vscode-with-extensions.override {
|
||||||
vscodeExtensions = with vscode-extensions; [ bbenoist.Nix ms-python.python ]
|
vscodeExtensions = with vscode-extensions; [ bbenoist.Nix ms-python.python ]
|
||||||
++ vscode-utils.extensionsFromVscodeMarketplace [
|
++ vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
{
|
{
|
||||||
publisher = "2gua";
|
publisher = "2gua";
|
||||||
name = "rainbow-brackets";
|
name = "rainbow-brackets";
|
||||||
version = "0.0.6";
|
version = "0.0.6";
|
||||||
sha256 = "1m5c7jjxphawh7dmbzmrwf60dz4swn8c31svbzb5nhaazqbnyl2d";
|
sha256 = "1m5c7jjxphawh7dmbzmrwf60dz4swn8c31svbzb5nhaazqbnyl2d";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "vscodevim";
|
publisher = "vscodevim";
|
||||||
name = "vim";
|
name = "vim";
|
||||||
version = "1.4.0";
|
version = "1.4.0";
|
||||||
sha256 = "0vfhvsp485rgik3pjzbpnc4jxrjpiykynl563a16rlz8h85x2m4f";
|
sha256 = "0vfhvsp485rgik3pjzbpnc4jxrjpiykynl563a16rlz8h85x2m4f";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "swyphcosmo";
|
publisher = "swyphcosmo";
|
||||||
name = "spellchecker";
|
name = "spellchecker";
|
||||||
version = "1.2.13";
|
version = "1.2.13";
|
||||||
sha256 = "1lr33lf01afgi74c1a9gylk92li4hyq24l8bki4l6ggl4z4c2h3w";
|
sha256 = "1lr33lf01afgi74c1a9gylk92li4hyq24l8bki4l6ggl4z4c2h3w";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "asabil";
|
publisher = "asabil";
|
||||||
name = "meson";
|
name = "meson";
|
||||||
version = "1.1.1";
|
version = "1.1.1";
|
||||||
sha256 = "00cc28a2nb325f54bx51wf5q15x1pmsn0j9z6rnxxqxwii1dm5cl";
|
sha256 = "00cc28a2nb325f54bx51wf5q15x1pmsn0j9z6rnxxqxwii1dm5cl";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "bungcip";
|
publisher = "bungcip";
|
||||||
name = "better-toml";
|
name = "better-toml";
|
||||||
version = "0.3.2";
|
version = "0.3.2";
|
||||||
sha256 = "08lhzhrn6p0xwi0hcyp6lj9bvpfj87vr99klzsiy8ji7621dzql3";
|
sha256 = "08lhzhrn6p0xwi0hcyp6lj9bvpfj87vr99klzsiy8ji7621dzql3";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "codezombiech";
|
publisher = "codezombiech";
|
||||||
name = "gitignore";
|
name = "gitignore";
|
||||||
version = "0.6.0";
|
version = "0.6.0";
|
||||||
sha256 = "0gnc0691pwkd9s8ldqabmpfvj0236rw7bxvkf0bvmww32kv1ia0b";
|
sha256 = "0gnc0691pwkd9s8ldqabmpfvj0236rw7bxvkf0bvmww32kv1ia0b";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "DavidAnson";
|
publisher = "DavidAnson";
|
||||||
name = "vscode-markdownlint";
|
name = "vscode-markdownlint";
|
||||||
version = "0.26.0";
|
version = "0.26.0";
|
||||||
sha256 = "0g4pssvajn7d8p2547v7313gjyqx4pzs7cbjws2s3v2fk1sw7vbj";
|
sha256 = "0g4pssvajn7d8p2547v7313gjyqx4pzs7cbjws2s3v2fk1sw7vbj";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "esbenp";
|
publisher = "esbenp";
|
||||||
name = "prettier-vscode";
|
name = "prettier-vscode";
|
||||||
version = "1.8.1";
|
version = "1.8.1";
|
||||||
sha256 = "0qcm2784n9qc4p77my1kwqrswpji7bp895ay17yzs5g84cj010ln";
|
sha256 = "0qcm2784n9qc4p77my1kwqrswpji7bp895ay17yzs5g84cj010ln";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "hbenl";
|
publisher = "hbenl";
|
||||||
name = "vscode-test-explorer";
|
name = "vscode-test-explorer";
|
||||||
version = "2.9.3";
|
version = "2.9.3";
|
||||||
sha256 = "1yf85hgvganxq5n5jff9ckn3smxd6xi79cgn6k53qi5w1r5rahy0";
|
sha256 = "1yf85hgvganxq5n5jff9ckn3smxd6xi79cgn6k53qi5w1r5rahy0";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "hbenl";
|
publisher = "hbenl";
|
||||||
name = "vscode-test-explorer-liveshare";
|
name = "vscode-test-explorer-liveshare";
|
||||||
version = "1.0.4";
|
version = "1.0.4";
|
||||||
sha256 = "0a57cm8bjfvz2whkr6krjv3whv9c7sdzlrjwdr5zaz78nxn9dfy7";
|
sha256 = "0a57cm8bjfvz2whkr6krjv3whv9c7sdzlrjwdr5zaz78nxn9dfy7";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "lextudio";
|
publisher = "lextudio";
|
||||||
name = "restructuredtext";
|
name = "restructuredtext";
|
||||||
version = "106.0.0";
|
version = "106.0.0";
|
||||||
sha256 = "096r8071202nxi1is6z7dghcmpsh0f0mm3mp3cfh1yj2mnyzlaxa";
|
sha256 = "096r8071202nxi1is6z7dghcmpsh0f0mm3mp3cfh1yj2mnyzlaxa";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "lostintangent";
|
publisher = "lostintangent";
|
||||||
name = "vsls-pomodoro";
|
name = "vsls-pomodoro";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
sha256 = "1b73zbkhlhacvi18cx4g3n6randy3hw9cab1gkw5gzb3375w7w3p";
|
sha256 = "1b73zbkhlhacvi18cx4g3n6randy3hw9cab1gkw5gzb3375w7w3p";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "lostintangent";
|
publisher = "lostintangent";
|
||||||
name = "vsls-whiteboard";
|
name = "vsls-whiteboard";
|
||||||
version = "0.0.8";
|
version = "0.0.8";
|
||||||
sha256 = "13fcay9bs861msb5y694casbw66dmhl504xm5cvprssx1qka186p";
|
sha256 = "13fcay9bs861msb5y694casbw66dmhl504xm5cvprssx1qka186p";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "mauve";
|
publisher = "mauve";
|
||||||
name = "terraform";
|
name = "terraform";
|
||||||
version = "1.3.9";
|
version = "1.3.9";
|
||||||
sha256 = "0hnarr21rivvv41y5x1sp0skdmzwz7zi9aya3n5z1b13ir7lyy42";
|
sha256 = "0hnarr21rivvv41y5x1sp0skdmzwz7zi9aya3n5z1b13ir7lyy42";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "mechatroner";
|
publisher = "mechatroner";
|
||||||
name = "rainbow-csv";
|
name = "rainbow-csv";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
sha256 = "1fyamgm7zq31r3c00cn6pcb66rrkfhwfmp72qnhrajydmnvcnbg6";
|
sha256 = "1fyamgm7zq31r3c00cn6pcb66rrkfhwfmp72qnhrajydmnvcnbg6";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "ms-vscode";
|
publisher = "ms-vscode";
|
||||||
name = "Go";
|
name = "Go";
|
||||||
version = "0.9.2";
|
version = "0.9.2";
|
||||||
sha256 = "0yxnsby8zz1dvnx8nqrhi4xx316mpjf2hs2c5r6fkzh8zhjccwqz";
|
sha256 = "0yxnsby8zz1dvnx8nqrhi4xx316mpjf2hs2c5r6fkzh8zhjccwqz";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "ms-vsliveshare";
|
publisher = "ms-vsliveshare";
|
||||||
name = "vsliveshare";
|
name = "vsliveshare";
|
||||||
version = "1.0.67";
|
version = "1.0.67";
|
||||||
sha256 = "1shy9xaqz1wsyzzz5z8g409ma5h5kaic0y7bc1q2nxy60gbq828n";
|
sha256 = "1shy9xaqz1wsyzzz5z8g409ma5h5kaic0y7bc1q2nxy60gbq828n";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "ms-vsliveshare";
|
publisher = "ms-vsliveshare";
|
||||||
name = "vsliveshare-audio";
|
name = "vsliveshare-audio";
|
||||||
version = "0.1.48";
|
version = "0.1.48";
|
||||||
sha256 = "1lccsyhj3mgbacw76hikgml85hi82zipaza1194nqnj1inhci80b";
|
sha256 = "1lccsyhj3mgbacw76hikgml85hi82zipaza1194nqnj1inhci80b";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "ritwickdey";
|
publisher = "ritwickdey";
|
||||||
name = "LiveServer";
|
name = "LiveServer";
|
||||||
version = "5.6.1";
|
version = "5.6.1";
|
||||||
sha256 = "077arf3hsn1yb8xdhlrax5gf93ljww78irv4gm8ffmsqvcr1kws0";
|
sha256 = "077arf3hsn1yb8xdhlrax5gf93ljww78irv4gm8ffmsqvcr1kws0";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "ronnidc";
|
publisher = "ronnidc";
|
||||||
name = "nunjucks";
|
name = "nunjucks";
|
||||||
version = "0.2.3";
|
version = "0.2.3";
|
||||||
sha256 = "119xgyn1dggw2rcqkn2mnz364iw5jlrxg7pcydbijsqj5d3zdfsf";
|
sha256 = "119xgyn1dggw2rcqkn2mnz364iw5jlrxg7pcydbijsqj5d3zdfsf";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "rust-lang";
|
publisher = "rust-lang";
|
||||||
name = "rust";
|
name = "rust";
|
||||||
version = "0.6.1";
|
version = "0.6.1";
|
||||||
sha256 = "0f66z6b374nvnrn7802dg0xz9f8wq6sjw3sb9ca533gn5jd7n297";
|
sha256 = "0f66z6b374nvnrn7802dg0xz9f8wq6sjw3sb9ca533gn5jd7n297";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
publisher = "serayuzgur";
|
publisher = "serayuzgur";
|
||||||
name = "crates";
|
name = "crates";
|
||||||
version = "0.4.2";
|
version = "0.4.2";
|
||||||
sha256 = "1knspsc98cfw4mhc0yaz0f2185sxdf9kn9qsysfs6c82g9wjaqcj";
|
sha256 = "1knspsc98cfw4mhc0yaz0f2185sxdf9kn9qsysfs6c82g9wjaqcj";
|
||||||
}
|
}
|
||||||
];})
|
];})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue