flake update, nixpkgs-fmt, add extra redirect to dd-ix.net

This commit is contained in:
Grigory Shipunov 2022-07-10 03:00:29 +02:00
parent 61ffad9f74
commit ad486191bc
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
6 changed files with 125 additions and 106 deletions

40
flake.lock generated
View file

@ -38,15 +38,17 @@
}, },
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs", "nixpkgs": [
"nixpkgs-unstable"
],
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1657377017, "lastModified": 1657396086,
"narHash": "sha256-sqzfL1FV/LBG8BfcH8tYiIox0SDYJEEFiWCoKOgRQ0g=", "narHash": "sha256-4cQ6hEuewWoFkTBlu211JGxPQQ1Zyli8oEq1cu7cVeA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "8d5b07fc83d579cd196125e698454b4eb4850646", "rev": "c645cc9f82c7753450d1fa4d1bc73b64960a9d7a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -78,16 +80,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1654230545, "lastModified": 1657296039,
"narHash": "sha256-8Vlwf0x8ow6pPOK2a04bT+pxIeRnM1+O0Xv9/CuDzRs=", "narHash": "sha256-Ghh39+aS+pw5sTP/ZO8VIKE6sBhMadDaQZtf+3yu4Vc=",
"owner": "nixos", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "236cc2971ac72acd90f0ae3a797f9f83098b17ec", "rev": "71d7a4c037dc4f3e98d5c4a81b941933cf5bf675",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "NixOS",
"ref": "nixos-unstable", "ref": "nixos-22.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -124,28 +126,12 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1657296039,
"narHash": "sha256-Ghh39+aS+pw5sTP/ZO8VIKE6sBhMadDaQZtf+3yu4Vc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "71d7a4c037dc4f3e98d5c4a81b941933cf5bf675",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-22.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"fenix": "fenix", "fenix": "fenix",
"home-manager": "home-manager", "home-manager": "home-manager",
"microvm": "microvm", "microvm": "microvm",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"sops-nix": "sops-nix" "sops-nix": "sops-nix"
} }

View file

@ -2,6 +2,10 @@
inputs = { inputs = {
nixpkgs-unstable.url = github:NixOS/nixpkgs/nixos-unstable; nixpkgs-unstable.url = github:NixOS/nixpkgs/nixos-unstable;
nixpkgs.url = github:NixOS/nixpkgs/nixos-22.05; nixpkgs.url = github:NixOS/nixpkgs/nixos-22.05;
home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
sops-nix = { sops-nix = {
url = github:Mic92/sops-nix; url = github:Mic92/sops-nix;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -10,17 +14,30 @@
url = github:astro/microvm.nix; url = github:astro/microvm.nix;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
rust-overlay = { fenix = {
url = github:oxalica/rust-overlay; url = github:nix-community/fenix;
inputs.nixpkgs.follows = "nixpkgs-unstable";
}; };
}; };
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, sops-nix, microvm, rust-overlay, ... }: { outputs =
inputs@{ self
, nixpkgs
, nixpkgs-unstable
, sops-nix
, microvm
, fenix
, home-manager
, ...
}:
{
nixosConfigurations = { nixosConfigurations = {
microwave = nixpkgs-unstable.lib.nixosSystem { microwave = nixpkgs-unstable.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager
./hosts/microwave/configuration.nix ./hosts/microwave/configuration.nix
./hosts/microwave/secrets.nix ./hosts/microwave/secrets.nix
./hosts/microwave/hardware-configuration.nix ./hosts/microwave/hardware-configuration.nix
@ -37,10 +54,20 @@
./modules/emacs.nix ./modules/emacs.nix
./modules/virtualization.nix ./modules/virtualization.nix
({ pkgs, ... }: { ({ pkgs, ... }: {
nixpkgs.overlays = [ rust-overlay.overlays.default ]; services.throttled.enable = true;
services.influxdb.enable = true;
})
({ pkgs, ... }: {
nixpkgs.overlays = [ fenix.overlay ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
rust-bin.stable.latest.default (fenix.packages."x86_64-linux".complete.withComponents [
gcc "cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
rust-analyzer-nightly
]; ];
}) })
]; ];

View file

@ -9,5 +9,14 @@
''; '';
}; };
}; };
"www.dd-ix.net" = {
enableACME = true;
forceSSL = true;
locations."/" = {
extraConfig = ''
return 307 https://c3d2.de;
'';
};
};
}; };
} }

View file

@ -3,7 +3,7 @@
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
bat bat
exa lsd
fd fd
file file
fzf fzf
@ -27,7 +27,6 @@
]; ];
nix = { nix = {
package = pkgs.nixUnstable;
autoOptimiseStore = true; autoOptimiseStore = true;
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
@ -51,6 +50,11 @@
}; };
environment.shellAliases = { environment.shellAliases = {
ls = "lsd";
l = "lsd -l";
la = "lsd -la";
ll = "lsd -lah";
lt = "lsd --tree";
vim = "nvim"; vim = "nvim";
vi = "nvim"; vi = "nvim";
vf = "$EDITOR $(fzf)"; vf = "$EDITOR $(fzf)";

View file

@ -4,17 +4,6 @@
builders-use-substitutes = true builders-use-substitutes = true
''; '';
registry.microvm = {
from = {
type = "indirect";
id = "microvm";
};
to = {
type = "github";
owner = "astro";
repo = "microvm.nix";
};
};
settings = { settings = {
trusted-users = [ trusted-users = [
"grue" "grue"
@ -24,16 +13,19 @@
"https://microvm.cachix.org" "https://microvm.cachix.org"
"https://nix-serve.hq.c3d2.de" "https://nix-serve.hq.c3d2.de"
"https://dump-dvb.cachix.org" "https://dump-dvb.cachix.org"
"https://nix-community.cachix.org"
]; ];
trusted-substituters = [ trusted-substituters = [
"https://microvm.cachix.org" "https://microvm.cachix.org"
"https://nix-serve.hq.c3d2.de" "https://hydra.hq.c3d2.de"
"https://dump-dvb.cachix.org" "https://dump-dvb.cachix.org"
"https://nix-community.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"microvm.cachix.org-1:oXnBc6hRE3eX5rSYdRyMYXnfzcCxC7yKPTbZXALsqys=" "microvm.cachix.org-1:oXnBc6hRE3eX5rSYdRyMYXnfzcCxC7yKPTbZXALsqys="
"nix-serve.hq.c3d2.de:KZRGGnwOYzys6pxgM8jlur36RmkJQ/y8y62e52fj1ps=" "nix-serve.hq.c3d2.de:KZRGGnwOYzys6pxgM8jlur36RmkJQ/y8y62e52fj1ps="
"dump-dvb.cachix.org-1:+Dq7gqpQG4YlLA2X3xJsG1v3BrlUGGpVtUKWk0dTyUU=" "dump-dvb.cachix.org-1:+Dq7gqpQG4YlLA2X3xJsG1v3BrlUGGpVtUKWk0dTyUU="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
]; ];
}; };
}; };

View file

@ -25,6 +25,8 @@
#on the desktop, we need nice fonts ^^ #on the desktop, we need nice fonts ^^
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
monoid
(nerdfonts.override { fonts = [ "Monoid" ]; })
dejavu_fonts dejavu_fonts
julia-mono julia-mono
uw-ttyp0 uw-ttyp0
@ -134,7 +136,6 @@
plugins = [ pkgs.evolution-ews ]; plugins = [ pkgs.evolution-ews ];
}; };
# required to autounlock gnome-keyring # required to autounlock gnome-keyring
services.xserver = { services.xserver = {
enable = true; enable = true;