Updated nixpkgs and added Docker

This commit is contained in:
Andrea Ciceri 2021-10-24 23:20:20 +02:00
parent 8f2faaead9
commit 9d9c65a835
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
7 changed files with 15 additions and 11 deletions

8
flake.lock generated
View file

@ -544,17 +544,17 @@
},
"unstable": {
"locked": {
"lastModified": 1633971123,
"narHash": "sha256-WmI4NbH1IPGFWVkuBkKoYgOnxgwSfWDgdZplJlQ93vA=",
"lastModified": 1634229982,
"narHash": "sha256-O4IfSHZ8+j35Gfp7/Gdhx3tWlfEDPXboUd8m1wzT1CQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e4ef597edfd8a0ba5f12362932fc9b1dd01a0aef",
"rev": "30aeeaded47d4e246941147acaa357d1605ad486",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"rev": "30aeeaded47d4e246941147acaa357d1605ad486",
"type": "github"
}
}

View file

@ -4,7 +4,7 @@
inputs =
{
stable.url = "github:nixos/nixpkgs/release-21.05";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
unstable.url = "github:nixos/nixpkgs/30aeeaded47d4e246941147acaa357d1605ad486";
nur.url = "github:nix-community/NUR";

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, profiles, ... }:
{
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg ];
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg docker ];
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];

View file

@ -0,0 +1,3 @@
{
virtualisation.docker.enable = true;
}

View file

@ -13,6 +13,7 @@
gsettings-desktop-schemas
lxappearance
yarn
yarn2nix
texlive.combined.scheme-full
];
};

View file

@ -1,8 +1,7 @@
(use-package nix-mode
:mode "\\.nix\\'"
;:hook
;(before-save . lsp-format-buffer))
)
:hook
(before-save . lsp-format-buffer))
(require 'sudo-utils)
(defun nixos-rebuild-switch ()

View file

@ -50,6 +50,7 @@
keybindings = lib.mkOptionDefault {
"${modifier}+x" = "exec ${pkgs.customEmacs}/bin/emacs";
"${modifier}+b" = "exec ${pkgs.firefox}/bin/firefox";
"${modifier}+s" = "exec \'file=\"~/shots/\$(date --iso-8601=seconds).png\"; ${pkgs.grim}/bin/grim -t png -g \"\$(${pkgs.slurp}/bin/slurp)\" \$file; wl-copy -t image/png < \$file\'";
};
};
extraConfig = ''