flake update, nixpkgs-fmt, add extra redirect to dd-ix.net
This commit is contained in:
parent
61ffad9f74
commit
ad486191bc
6 changed files with 125 additions and 106 deletions
40
flake.lock
generated
40
flake.lock
generated
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
155
flake.nix
155
flake.nix
|
@ -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,74 +14,97 @@
|
||||||
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 =
|
||||||
nixosConfigurations = {
|
inputs@{ self
|
||||||
microwave = nixpkgs-unstable.lib.nixosSystem {
|
, nixpkgs
|
||||||
system = "x86_64-linux";
|
, nixpkgs-unstable
|
||||||
modules = [
|
, sops-nix
|
||||||
sops-nix.nixosModules.sops
|
, microvm
|
||||||
./hosts/microwave/configuration.nix
|
, fenix
|
||||||
./hosts/microwave/secrets.nix
|
, home-manager
|
||||||
./hosts/microwave/hardware-configuration.nix
|
, ...
|
||||||
./modules/graphical.nix
|
}:
|
||||||
./modules/basic-tools.nix
|
{
|
||||||
./modules/gnupg.nix
|
nixosConfigurations = {
|
||||||
./modules/hw-accel-intel.nix
|
microwave = nixpkgs-unstable.lib.nixosSystem {
|
||||||
./modules/radio.nix
|
specialArgs = { inherit inputs; };
|
||||||
./modules/tlp.nix
|
system = "x86_64-linux";
|
||||||
./modules/wireguard.nix
|
modules = [
|
||||||
./modules/binary-caches.nix
|
sops-nix.nixosModules.sops
|
||||||
./modules/science.nix
|
home-manager.nixosModules.home-manager
|
||||||
./modules/mail.nix
|
./hosts/microwave/configuration.nix
|
||||||
./modules/emacs.nix
|
./hosts/microwave/secrets.nix
|
||||||
./modules/virtualization.nix
|
./hosts/microwave/hardware-configuration.nix
|
||||||
({ pkgs, ... }: {
|
./modules/graphical.nix
|
||||||
nixpkgs.overlays = [ rust-overlay.overlays.default ];
|
./modules/basic-tools.nix
|
||||||
environment.systemPackages = with pkgs; [
|
./modules/gnupg.nix
|
||||||
rust-bin.stable.latest.default
|
./modules/hw-accel-intel.nix
|
||||||
gcc
|
./modules/radio.nix
|
||||||
];
|
./modules/tlp.nix
|
||||||
})
|
./modules/wireguard.nix
|
||||||
];
|
./modules/binary-caches.nix
|
||||||
};
|
./modules/science.nix
|
||||||
cirrus = nixpkgs.lib.nixosSystem {
|
./modules/mail.nix
|
||||||
system = "x86_64-linux";
|
./modules/emacs.nix
|
||||||
modules = [
|
./modules/virtualization.nix
|
||||||
sops-nix.nixosModules.sops
|
({ pkgs, ... }: {
|
||||||
./hosts/cirrus
|
services.throttled.enable = true;
|
||||||
./modules/basic-tools.nix
|
services.influxdb.enable = true;
|
||||||
];
|
})
|
||||||
};
|
({ pkgs, ... }: {
|
||||||
dishwasher = nixpkgs.lib.nixosSystem {
|
nixpkgs.overlays = [ fenix.overlay ];
|
||||||
system = "x86_64-linux";
|
environment.systemPackages = with pkgs; [
|
||||||
modules = [
|
(fenix.packages."x86_64-linux".complete.withComponents [
|
||||||
sops-nix.nixosModules.sops
|
"cargo"
|
||||||
microvm.nixosModules.host
|
"clippy"
|
||||||
./hosts/dishwasher
|
"rust-src"
|
||||||
./modules/basic-tools.nix
|
"rustc"
|
||||||
./modules/binary-caches.nix
|
"rustfmt"
|
||||||
|
])
|
||||||
|
rust-analyzer-nightly
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
cirrus = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
sops-nix.nixosModules.sops
|
||||||
|
./hosts/cirrus
|
||||||
|
./modules/basic-tools.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
dishwasher = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
sops-nix.nixosModules.sops
|
||||||
|
microvm.nixosModules.host
|
||||||
|
./hosts/dishwasher
|
||||||
|
./modules/basic-tools.nix
|
||||||
|
./modules/binary-caches.nix
|
||||||
|
|
||||||
{
|
{
|
||||||
microvm.vms.nextcloud = {
|
microvm.vms.nextcloud = {
|
||||||
flake = self;
|
flake = self;
|
||||||
updateFlake = "git+file:///etc/nixos";
|
updateFlake = "git+file:///etc/nixos";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nextcloud = nixpkgs.lib.nixosSystem {
|
nextcloud = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
microvm.nixosModules.microvm
|
microvm.nixosModules.microvm
|
||||||
./microvms/nextcloud
|
./microvms/nextcloud
|
||||||
];
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,5 +9,14 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"www.dd-ix.net" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
extraConfig = ''
|
||||||
|
return 307 https://c3d2.de;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)";
|
||||||
|
|
|
@ -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="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue