adjust to nixos 21.05

This commit is contained in:
steveej 2021-06-08 12:39:01 +02:00
parent 454aa6e386
commit 1242a8e215
14 changed files with 145 additions and 173 deletions

View file

@ -93,7 +93,7 @@ in {
# Password Management # Password Management
gnupg gnupg
yubikey-manager yubikey-manager
yubikey-neo-manager yubikey-manager-qt
yubikey-personalization yubikey-personalization
yubikey-personalization-gui yubikey-personalization-gui
gnome3.gnome_keyring gnome3.gnome_keyring
@ -114,7 +114,7 @@ in {
unstablepkgs.zoom-us unstablepkgs.zoom-us
bluejeans-gui bluejeans-gui
thunderbird thunderbird
gnome3.evolution # gnome4.glib_networking evolution # gnome4.glib_networking
# telegram # telegram
unstablepkgs.tdesktop unstablepkgs.tdesktop
gnome3.cheese gnome3.cheese
@ -147,7 +147,7 @@ in {
vlc vlc
audacity audacity
spotify spotify
python38Packages.youtube-dl-light pythonPackages.youtube-dl-light
libwebcam libwebcam
# Network Tools # Network Tools
@ -253,7 +253,7 @@ in {
pcmanfm pcmanfm
hdparm hdparm
testdisk testdisk
python38Packages.binwalk pythonPackages.binwalk
gptfdisk gptfdisk
gparted gparted
smartmontools smartmontools

View file

@ -333,7 +333,7 @@ in {
enable = true; enable = true;
windowManager.command = "${pkgs.qtile}/bin/qtile -c ${qtileConfig}"; windowManager.command = "${pkgs.qtile}/bin/qtile -c ${qtileConfig}";
initExtra = '' initExtra = ''
# ${pkgs.xorg.xinput}/bin/xinput set-prop "ErgoDox EZ ErgoDox EZ Mouse" "libinput Natural Scrolling Enabled" ${pkgs.xorg.xinput}/bin/xinput set-prop "ZSA Moonlander Mark I Mouse" "libinput Natural Scrolling Enabled" 1
${pkgs.autorandr}/bin/autorandr -c ${pkgs.autorandr}/bin/autorandr -c
${pkgs.feh}/bin/feh --bg-scale ${pkgs.nixos-artwork.wallpapers.simple-blue}/share/artwork/gnome/nix-wallpaper-simple-blue.png ${pkgs.feh}/bin/feh --bg-scale ${pkgs.nixos-artwork.wallpapers.simple-blue}/share/artwork/gnome/nix-wallpaper-simple-blue.png
${dpmsScript} default ${dpmsScript} default

View file

@ -5,7 +5,6 @@
{ {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
enableAdobeFlash = false;
}; };
programs.browserpass = { programs.browserpass = {

View file

@ -15,152 +15,125 @@ in {
openssl = true; openssl = true;
gnutls = true; gnutls = true;
}; };
packageOverrides = pkgs: with pkgs; {
neovim = unstablepkgs.neovim;
vimPlugins = unstablepkgs.vimPlugins;
};
}; };
programs.neovim = { programs.neovim = {
enable = true; enable = true;
extraPythonPackages = (ps: with ps; [ ]);
extraPython3Packages = (ps: with ps; [ ]); extraPython3Packages = (ps: with ps; [ ]);
configure = { extraConfig = builtins.readFile ./neovim/vimrc;
customRC = builtins.readFile ./neovim/vimrc;
vam = {
knownPlugins = with pkgs; vimPlugins // {
delimitMate = vimUtils.buildVimPlugin {
name = "delimitMate-vim";
src = fetchFromGitHub {
owner = "Raimondi";
repo = "delimitMate";
rev = "728b57a6564c1d2bdfb9b9e0f2f8c5ba3d7e0c5c";
sha256 = "0fskm9gz81dk8arcidrm71mv72a7isng1clssqkqn5wnygbiimsn";
};
buildInputs = [ zip vim ];
};
yaml-folds = vimUtils.buildVimPlugin { plugins = with pkgs; [
name = "vim-yaml-folds"; # yaml-folds
src = fetchFromGitHub { {
owner = "pedrohdz"; plugin = vimUtils.buildVimPlugin {
repo = "vim-yaml-folds"; name = "vim-yaml-folds";
rev = "0672d9a3b685b51b4c49d8716c2ad4e27cfa5abd"; src = fetchFromGitHub {
sha256 = "0yp2jgaqiria79lh75fkrs77rw7nk518bq63w9bvyy814i7s4scn"; owner = "pedrohdz";
}; repo = "vim-yaml-folds";
buildInputs = [ zip vim ]; rev = "890ccd8e5370808d569e96dbb06cbeca2cf5993a";
sha256 = "018z6xcwrq58q6lj6gwhrifjaxkmrlkkg0n86s6mjjlwkbs2qa4m";
}; };
buildInputs = [ zip vim ];
vim-yaml = vimUtils.buildVimPlugin {
name = "vim-yaml";
src = fetchFromGitHub {
owner = "stephpy";
repo = "vim-yaml";
rev = "e97e063b16eba4e593d620676a0a15fa98613979";
sha256 = "0vqahbrnr43lxanpziyrmzaqqb3cmyny8ry1xvmy2xyd1larzfrk";
};
};
vim-markdown-toc = vimUtils.buildVimPlugin {
name = "vim-markdown-toc";
src = fetchFromGitHub {
owner = "mzlogin";
repo = "vim-markdown-toc";
rev = "a6e227023f405a7c39590a8aaf0d54dde5614a2e";
sha256 = "1vpsnjzc7hvrkp6mq68myxl3k1x363iif58rrd17njcsa4jh1zwy";
};
};
vim-perl = vimUtils.buildVimPlugin {
name = "vim-perl";
src = fetchFromGitHub {
owner = "vim-perl";
repo = "vim-perl";
rev = "21d0a0d795336acf8a9306da35f379c32cfc5e08";
sha256 = "0f2sa0v3djd89k16n4saji9n7grziyhkljq75dskcbv8r19m8i1j";
};
};
git-blame = vimUtils.buildVimPlugin {
name = "git-blame";
src = fetchFromGitHub {
"owner" = "zivyangll";
"repo" = "git-blame.vim";
"rev" = "a5b666840eead1b1ea1c351038da6ce026716bb6";
"sha256" = "181siphb87yzln9433159ssa6vmm1h2dd0kqhlx7bgsi51gng4rv";
};
};
tlib = vimPlugins.tlib_vim;
}; };
}
pluginDictionaries = let {
default = [ plugin = vimUtils.buildVimPlugin {
"delimitMate" name = "vim-yaml";
"vim-airline" src = fetchFromGitHub {
"vim-airline-themes" owner = "stephpy";
"ctrlp" repo = "vim-yaml";
"vim-css-color" rev = "e97e063b16eba4e593d620676a0a15fa98613979";
"rainbow_parentheses" sha256 = "0vqahbrnr43lxanpziyrmzaqqb3cmyny8ry1xvmy2xyd1larzfrk";
"vim-colorschemes" };
"vim-colorstepper" };
"vim-signify" }
"fugitive"
"vim-indent-guides"
"UltiSnips"
"fzfWrapper"
"ncm2" # broken 2021-06-08
"ncm2-bufword" # {
"ncm2-path" # plugin = vimUtils.buildVimPlugin {
"ncm2-tmux" # name = "vim-markdown-toc";
"ncm2-ultisnips" # src = fetchFromGitHub {
"nvim-yarp" # owner = "mzlogin";
# repo = "vim-markdown-toc";
# rev = "b7bb6c37033d3a6c93906af48dc0e689bd948638";
# sha256 = "026xf2gid4qivwawh7if3nfk7zja9di0flhdzdx82lvil9x48lyz";
# };
# };
# }
"LanguageClient-neovim" # broken 2021-06-08
# {
# plugin = vimUtils.buildVimPlugin {
# name = "vim-perl";
# src = fetchFromGitHub {
# owner = "vim-perl";
# repo = "vim-perl";
# rev = "f330b5d474c44e6cfae22ba50868093dea3e9adb";
# sha256 = "1dy40ixgixj0536c5ggra51b4yd1lbw4j6l0j5zc3diasb7m2gvr";
# };
# };
# }
"Improved-AnsiEsc" {
"tabular" plugin = vimUtils.buildVimPlugin {
"git-blame" name = "git-blame";
src = fetchFromGitHub {
"owner" = "zivyangll";
"repo" = "git-blame.vim";
"rev" = "9d144b7bed5d8f1c9259551768b7f3b3d1294917";
"sha256" = "06zb5xcc59k25rpwl46j82fcqckiznmj97v6i0mwlb8jhqqrhy9j";
};
};
}
]
++ (with pkgs.vimPlugins; [
delimitMate
vim-airline
vim-airline-themes
ctrlp
vim-css-color
rainbow_parentheses
vim-colorschemes
vim-colorstepper
vim-signify
fugitive
vim-indent-guides
UltiSnips
fzfWrapper
# Nix ncm2
"vim-addon-nix" "tlib" ncm2-bufword
"vim-addon-vim2nix" ncm2-path
ncm2-tmux
ncm2-ultisnips
nvim-yarp
# LaTeX LanguageClient-neovim
"vim-latex-live-preview"
"vimtex"
# YAML Improved-AnsiEsc
"yaml-folds" tabular
"vim-yaml"
# Perl # Nix
# "vim-perl" vim-addon-nix tlib
vim-addon-vim2nix
# LaTeX
vim-latex-live-preview
vimtex
# markdown # YAML
"vim-markdown" vim-yaml
"vim-markdown-toc"
# misc syntax support # markdown
"vim-bazel" "maktaba" vim-markdown
]; vim-markdown-toc
in [
{ names = default; } # misc syntax support
{ names = default ++ [ vim-bazel maktaba
]; ])
filename_regex = ".*\.nix\$"; ;
}
{ names = default ++ [
];
filename_regex = ".*\.tex\$";
}
];
};
};
}; };
} }

View file

@ -4,21 +4,23 @@ let
packagedExtensions = with pkgs.vscode-extensions; [ packagedExtensions = with pkgs.vscode-extensions; [
bbenoist.Nix bbenoist.Nix
ms-vscode-remote.remote-ssh ms-vscode-remote.remote-ssh
vscodevim.vim
]; ];
marketPlaceExtensions = pkgs.vscode-utils.extensionsFromVscodeMarketplace [ marketPlaceExtensions = pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{ # {
name = "vim"; # name = "vim";
publisher = "vscodevim"; # publisher = "vscodevim";
version = "1.17.1"; # version = "1.17.1";
sha256 = "10f8jz52gr6k2553awa66m006wszj9z2rnshsic6h2aawxiz3zq1"; # sha256 = "10f8jz52gr6k2553awa66m006wszj9z2rnshsic6h2aawxiz3zq1";
} # }
{ # {
name = "remote-ssh-edit"; # name = "remote-ssh-edit";
publisher = "ms-vscode-remote"; # publisher = "ms-vscode-remote";
version = "0.56.0"; # version = "0.56.0";
sha256 = "1gy03ff2xqg7q3y4j47z2l94x5gbw0mjd5h4cl3n0q3iaswk1c1r"; # sha256 = "1gy03ff2xqg7q3y4j47z2l94x5gbw0mjd5h4cl3n0q3iaswk1c1r";
} # }
{ {
name = "Theme-NaturalContrast-With-HC"; name = "Theme-NaturalContrast-With-HC";
publisher = "74th"; publisher = "74th";
@ -411,12 +413,12 @@ let
# version = "1.6.0"; # version = "1.6.0";
# sha256 = "15m0idk75bvbzfxipdxwz2vpdklr15zv92h4mxxpr8db9jjr32vi"; # sha256 = "15m0idk75bvbzfxipdxwz2vpdklr15zv92h4mxxpr8db9jjr32vi";
# } # }
{ # {
name = "vim"; # name = "vim";
publisher = "vscodevim"; # publisher = "vscodevim";
version = "1.17.1"; # version = "1.17.1";
sha256 = "10f8jz52gr6k2553awa66m006wszj9z2rnshsic6h2aawxiz3zq1"; # sha256 = "10f8jz52gr6k2553awa66m006wszj9z2rnshsic6h2aawxiz3zq1";
} # }
{ {
name = "prettify-selected-json"; name = "prettify-selected-json";
publisher = "vthiery"; publisher = "vthiery";
@ -467,7 +469,7 @@ in
enable = true; enable = true;
extensions = [] extensions = []
++ packagedExtensions ++ packagedExtensions
++ marketPlaceExtensions # ++ marketPlaceExtensions
; ;
}; };
} }

View file

@ -7,11 +7,8 @@ let
"nvme" "nvme"
"nvme_core" "nvme_core"
"pcieport"
"thunderbolt" "thunderbolt"
"e1000e" "e1000e"
"xhci_pci"
"hxci_hcd"
]; ];
in in

View file

@ -1,8 +1,8 @@
let let
nixpkgs = { nixpkgs = {
url = "https://github.com/NixOS/nixpkgs/"; url = "https://github.com/NixOS/nixpkgs/";
ref = "nixos-20.09"; ref = "nixos-21.05";
rev = "<% git ls-remote https://github.com/nixos/nixpkgs nixos-20.09 | awk '{ print $1 }' | tr -d '\n' -%>"; rev = "<% git ls-remote https://github.com/nixos/nixpkgs nixos-21.05 | awk '{ print $1 }' | tr -d '\n' -%>";
}; };
in in
@ -24,7 +24,7 @@ in
}; };
"home-manager-module" = { "home-manager-module" = {
url = "https://github.com/nix-community/home-manager"; url = "https://github.com/nix-community/home-manager";
ref = "release-20.09"; ref = "release-21.05";
rev = "<% git ls-remote https://github.com/nix-community/home-manager.git release-20.09 | awk '{ print $1 }' | tr -d '\n' -%>"; rev = "<% git ls-remote https://github.com/nix-community/home-manager.git release-21.05 | awk '{ print $1 }' | tr -d '\n' -%>";
}; };
} }

View file

@ -38,7 +38,7 @@
services.xserver = { services.xserver = {
enable = true; enable = true;
libinput.enable = true; libinput.enable = true;
libinput.naturalScrolling = true; libinput.touchpad.naturalScrolling = true;
videoDrivers = [ "qxl" "modesetting" "ati" "cirrus" "intel" "vesa" "vmware" "modesetting" ]; videoDrivers = [ "qxl" "modesetting" "ati" "cirrus" "intel" "vesa" "vmware" "modesetting" ];
xkbVariant = "altgr-intl"; xkbVariant = "altgr-intl";
@ -46,7 +46,7 @@
desktopManager = { desktopManager = {
# FIXME: gnome should be moved to user session # FIXME: gnome should be moved to user session
gnome3.enable = true; gnome.enable = true;
xterm.enable = true; xterm.enable = true;
plasma5.enable = false; plasma5.enable = false;
@ -77,7 +77,7 @@
programs.gnome-documents.enable = false; programs.gnome-documents.enable = false;
programs.gnome-disks.enable = false; programs.gnome-disks.enable = false;
services.gnome3 = { services.gnome = {
# gnome-online-miners.enable = false; TODO: enable this again # gnome-online-miners.enable = false; TODO: enable this again
games.enable = false; games.enable = false;
gnome-remote-desktop.enable = false; gnome-remote-desktop.enable = false;

View file

@ -61,7 +61,7 @@ in {
preFixup = '' preFixup = ''
wrapProgram $out/bin/btrbk \ wrapProgram $out/bin/btrbk \
--set PERL5LIB $PERL5LIB \ --set PERL5LIB $PERL5LIB \
--prefix PATH ':' "${self.stdenv.lib.makeBinPath (with self; [ btrfs-progs bash mbuffer openssh ])}" --prefix PATH ':' "${self.lib.makeBinPath (with self; [ btrfs-progs bash mbuffer openssh ])}"
''; '';
}); });
} }

View file

@ -86,7 +86,8 @@ in rec {
mfcl3770cdw = pkgs.callPackage ../pkgs/mfcl3770cdw.nix {}; mfcl3770cdw = pkgs.callPackage ../pkgs/mfcl3770cdw.nix {};
staruml = pkgs.callPackage ../pkgs/staruml.nix { inherit (pkgs.gnome2) GConf; libgcrypt = pkgs.libgcrypt_1_5; }; staruml = pkgs.callPackage ../pkgs/staruml.nix { inherit (pkgs.gnome2) GConf; libgcrypt = pkgs.libgcrypt_1_5; };
myPython = pkgs.python37Full.withPackages (ps: with ps; [ pythonPackages = pkgs.python38Packages;
myPython = pkgs.python38Full.withPackages (ps: with ps; [
pep8 yapf flake8 pep8 yapf flake8
# autopep8 (broken) # autopep8 (broken)
# pylint (broken) # pylint (broken)

View file

@ -37,7 +37,7 @@ in rec {
--replace "BR_PRT_PATH =~" "BR_PRT_PATH = \"$dir\"; #" \ --replace "BR_PRT_PATH =~" "BR_PRT_PATH = \"$dir\"; #" \
--replace "PRINTER =~" "PRINTER = \"${model}\"; #" --replace "PRINTER =~" "PRINTER = \"${model}\"; #"
wrapProgram $dir/lpd/filter_${model} \ wrapProgram $dir/lpd/filter_${model} \
--prefix PATH : ${stdenv.lib.makeBinPath [ --prefix PATH : ${lib.makeBinPath [
coreutils ghostscript gnugrep gnused which coreutils ghostscript gnugrep gnused which
]} ]}
# need to use i686 glibc here, these are 32bit proprietary binaries # need to use i686 glibc here, these are 32bit proprietary binaries
@ -48,9 +48,9 @@ in rec {
meta = { meta = {
description = "Brother ${lib.strings.toUpper model} driver"; description = "Brother ${lib.strings.toUpper model} driver";
homepage = http://www.brother.com/; homepage = http://www.brother.com/;
license = stdenv.lib.licenses.unfree; license = lib.licenses.unfree;
platforms = [ "x86_64-linux" "i686-linux" ]; platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = [ stdenv.lib.maintainers.steveej ]; maintainers = [ lib.maintainers.steveej ];
}; };
}; };
@ -70,7 +70,7 @@ in rec {
--replace "basedir =~" "basedir = \"$basedir\"; #" \ --replace "basedir =~" "basedir = \"$basedir\"; #" \
--replace "PRINTER =~" "PRINTER = \"${model}\"; #" --replace "PRINTER =~" "PRINTER = \"${model}\"; #"
wrapProgram $dir/cupswrapper/brother_lpdwrapper_${model} \ wrapProgram $dir/cupswrapper/brother_lpdwrapper_${model} \
--prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gnugrep gnused ]} --prefix PATH : ${lib.makeBinPath [ coreutils gnugrep gnused ]}
mkdir -p $out/lib/cups/filter mkdir -p $out/lib/cups/filter
mkdir -p $out/share/cups/model mkdir -p $out/share/cups/model
ln $dir/cupswrapper/brother_lpdwrapper_${model} $out/lib/cups/filter ln $dir/cupswrapper/brother_lpdwrapper_${model} $out/lib/cups/filter
@ -80,9 +80,9 @@ in rec {
meta = { meta = {
description = "Brother ${lib.strings.toUpper model} CUPS wrapper driver"; description = "Brother ${lib.strings.toUpper model} CUPS wrapper driver";
homepage = http://www.brother.com/; homepage = http://www.brother.com/;
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ]; platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = [ stdenv.lib.maintainers.steveej ]; maintainers = [ lib.maintainers.steveej ];
}; };
}; };
} }

View file

@ -1,8 +1,8 @@
let let
nixpkgs = { nixpkgs = {
url = "https://github.com/NixOS/nixpkgs/"; url = "https://github.com/NixOS/nixpkgs/";
ref = "nixos-20.09"; ref = "nixos-21.05";
rev = "<% git ls-remote https://github.com/nixos/nixpkgs nixos-20.09 | awk '{ print $1 }' | tr -d '\n' -%>"; rev = "<% git ls-remote https://github.com/nixos/nixpkgs nixos-21.05 | awk '{ print $1 }' | tr -d '\n' -%>";
}; };
in in
@ -24,7 +24,7 @@ in
}; };
"home-manager-module" = { "home-manager-module" = {
url = "https://github.com/nix-community/home-manager"; url = "https://github.com/nix-community/home-manager";
ref = "release-20.09"; ref = "release-21.05";
rev = "<% git ls-remote https://github.com/nix-community/home-manager.git release-20.09 | awk '{ print $1 }' | tr -d '\n' -%>"; rev = "<% git ls-remote https://github.com/nix-community/home-manager.git release-21.05 | awk '{ print $1 }' | tr -d '\n' -%>";
}; };
} }

View file

Before

Width:  |  Height:  |  Size: 405 B

After

Width:  |  Height:  |  Size: 405 B

Before After
Before After