mirror of
https://forge.darkest.space/mara/nixos-configs.git
synced 2026-11-23 12:59:43 +01:00
nix fmt rcf-style
This commit is contained in:
parent
b78e40ad6a
commit
b9adba3225
35 changed files with 270 additions and 238 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
{...}: {
|
{ ... }:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nixpkgs.nix
|
./nixpkgs.nix
|
||||||
./globalinstalls.nix
|
./globalinstalls.nix
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
config = {
|
config = {
|
||||||
environment = {
|
environment = {
|
||||||
pathsToLink = [ "/share/zsh" ];
|
pathsToLink = [ "/share/zsh" ];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{...}: {
|
{ ... }:
|
||||||
|
{
|
||||||
config = {
|
config = {
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
i18n = {
|
i18n = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{...}: {
|
{ ... }:
|
||||||
|
{
|
||||||
config = {
|
config = {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
options.allowedUnfreePackages = lib.mkOption {
|
options.allowedUnfreePackages = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
|
@ -16,9 +13,15 @@
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
substituters = ["https://nix-community.cachix.org" "https://cache.nixos.org/"];
|
substituters = [
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
|
"https://cache.nixos.org/"
|
||||||
|
];
|
||||||
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
|
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
|
||||||
experimental-features = ["nix-command" "flakes"];
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
|
|
||||||
17
flake.nix
17
flake.nix
|
|
@ -11,13 +11,16 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs =
|
||||||
|
{
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
lix-module,
|
lix-module,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
nixosConfigurations = let
|
{
|
||||||
|
nixosConfigurations =
|
||||||
|
let
|
||||||
host-params = {
|
host-params = {
|
||||||
inherit nixpkgs;
|
inherit nixpkgs;
|
||||||
inherit home-manager;
|
inherit home-manager;
|
||||||
|
|
@ -33,10 +36,16 @@
|
||||||
./modules/desktop-hardware.nix
|
./modules/desktop-hardware.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
vinzenz-lpt2 = import ./hosts/vinzenz-lpt2 host-params;
|
vinzenz-lpt2 = import ./hosts/vinzenz-lpt2 host-params;
|
||||||
vinzenz-pc2 = import ./hosts/vinzenz-pc2 host-params;
|
vinzenz-pc2 = import ./hosts/vinzenz-pc2 host-params;
|
||||||
hetzner-vpn1 = import ./hosts/hetzner-vpn1 host-params;
|
hetzner-vpn1 = import ./hosts/hetzner-vpn1 host-params;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
formatter = {
|
||||||
|
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
||||||
|
aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.nixfmt-rfc-style;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{config, ...}: {
|
{ config, ... }:
|
||||||
|
{
|
||||||
config = {
|
config = {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,11 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
config,
|
imports = [ ../modules/gnome.nix ];
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
../modules/gnome.nix
|
|
||||||
];
|
|
||||||
config = {
|
config = {
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
{
|
{
|
||||||
home.packages = with pkgs;
|
home.packages =
|
||||||
|
with pkgs;
|
||||||
[
|
[
|
||||||
amberol
|
amberol
|
||||||
gitg
|
gitg
|
||||||
|
|
@ -48,13 +44,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs; [ trayscale ] ++ (with gnomeExtensions; [ tailscale-qs ]);
|
||||||
[
|
|
||||||
trayscale
|
|
||||||
]
|
|
||||||
++ (with gnomeExtensions; [
|
|
||||||
tailscale-qs
|
|
||||||
]);
|
|
||||||
dconf.settings."org/gnome/shell".enabled-extensions = [ "tailscale@joaophi.github.com" ];
|
dconf.settings."org/gnome/shell".enabled-extensions = [ "tailscale@joaophi.github.com" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
## Apps
|
## Apps
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
|
|
@ -22,7 +19,11 @@
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "agnoster";
|
theme = "agnoster";
|
||||||
plugins = ["git" "sudo" "systemadmin"];
|
plugins = [
|
||||||
|
"git"
|
||||||
|
"sudo"
|
||||||
|
"systemadmin"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
[
|
[
|
||||||
# set stateVersion
|
# set stateVersion
|
||||||
{
|
{ home.stateVersion = "22.11"; }
|
||||||
home.stateVersion = "22.11";
|
|
||||||
}
|
|
||||||
# make nano the default editor
|
# make nano the default editor
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
inputs @ {pkgs, ...}: {
|
inputs@{ pkgs, ... }:
|
||||||
|
{
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
enableUpdateCheck = false;
|
enableUpdateCheck = false;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{config, ...}: {
|
{ config, ... }:
|
||||||
|
{
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
eval "$(direnv hook zsh)";
|
eval "$(direnv hook zsh)";
|
||||||
export PATH=$PATH:/home/vinzenz/.cargo/bin
|
export PATH=$PATH:/home/vinzenz/.cargo/bin
|
||||||
|
|
@ -24,6 +25,11 @@
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "agnoster";
|
theme = "agnoster";
|
||||||
plugins = ["git" "sudo" "docker" "systemadmin"];
|
plugins = [
|
||||||
|
"git"
|
||||||
|
"sudo"
|
||||||
|
"docker"
|
||||||
|
"systemadmin"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,12 @@
|
||||||
{
|
{ nixpkgs, common-modules, ... }:
|
||||||
nixpkgs,
|
|
||||||
common-modules,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
modules =
|
modules = common-modules ++ [
|
||||||
common-modules
|
|
||||||
++ [
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
../../users/vinzenz.nix
|
../../users/vinzenz.nix
|
||||||
../../users/ronja.nix
|
../../users/ronja.nix
|
||||||
{
|
{ networking.hostName = "hetzner-vpn1"; }
|
||||||
networking.hostName = "hetzner-vpn1";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
# uncomment for build check on non arm system (requires --impure)
|
# uncomment for build check on non arm system (requires --impure)
|
||||||
# nixpkgs.buildPlatform = builtins.currentSystem;
|
# nixpkgs.buildPlatform = builtins.currentSystem;
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,6 @@
|
||||||
|
{ lib, modulesPath, ... }:
|
||||||
{
|
{
|
||||||
lib,
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|
@ -26,7 +21,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
|
availableKernelModules = [
|
||||||
|
"ata_piix"
|
||||||
|
"uhci_hcd"
|
||||||
|
"xen_blkfront"
|
||||||
|
];
|
||||||
kernelModules = [ "nvme" ];
|
kernelModules = [ "nvme" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "acme@zerforschen.plus";
|
defaults.email = "acme@zerforschen.plus";
|
||||||
|
|
@ -22,7 +19,8 @@
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
|
|
||||||
virtualHosts = let
|
virtualHosts =
|
||||||
|
let
|
||||||
servicesDomain = "services.zerforschen.plus";
|
servicesDomain = "services.zerforschen.plus";
|
||||||
mkServiceConfig = host: port: {
|
mkServiceConfig = host: port: {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
|
|
@ -41,7 +39,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net";
|
pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
"vscode.${servicesDomain}" = lib.mkMerge [
|
"vscode.${servicesDomain}" = lib.mkMerge [
|
||||||
(mkServiceConfig pc2 8542)
|
(mkServiceConfig pc2 8542)
|
||||||
{ locations."/".proxyWebsockets = true; }
|
{ locations."/".proxyWebsockets = true; }
|
||||||
|
|
@ -51,5 +50,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [80 443];
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
80
|
||||||
|
443
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{lib, ...}: {
|
{ lib, ... }:
|
||||||
imports = [
|
{
|
||||||
../../modules/intel-graphics.nix
|
imports = [ ../../modules/intel-graphics.nix ];
|
||||||
];
|
|
||||||
config = {
|
config = {
|
||||||
# intel cpu
|
# intel cpu
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
|
@ -23,7 +22,11 @@
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
||||||
boot.initrd = {
|
boot.initrd = {
|
||||||
availableKernelModules = ["xhci_pci" "thunderbolt" "nvme"];
|
availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"thunderbolt"
|
||||||
|
"nvme"
|
||||||
|
];
|
||||||
luks.devices = {
|
luks.devices = {
|
||||||
"luks-2c654ff2-3c42-48d3-a1e3-9545679afaa3" = {
|
"luks-2c654ff2-3c42-48d3-a1e3-9545679afaa3" = {
|
||||||
device = "/dev/disk/by-uuid/2c654ff2-3c42-48d3-a1e3-9545679afaa3";
|
device = "/dev/disk/by-uuid/2c654ff2-3c42-48d3-a1e3-9545679afaa3";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{...}: {
|
{ ... }:
|
||||||
|
{
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
@ -20,7 +21,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [80 8001 3000];
|
allowedTCPPorts = [
|
||||||
|
80
|
||||||
|
8001
|
||||||
|
3000
|
||||||
|
];
|
||||||
allowedUDPPorts = [ 2342 ];
|
allowedUDPPorts = [ 2342 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue