1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/machines/metis/default.nix
Stefan Ellmauthaler 1e6e85ae2b
Swayfy (#5)
* switch to sway

* Add greetd pam integration, Add waybar base config

* waybar (multiple modules do not behave as documented)
* nm-applet
* systemd-integration due to "normal" call via greetd

configure mako
adding base commands for nm-applet, blueman-applet

* add kanshi

* swayconfig keybindings for special multimedia keys

* waybar base stylefile + basic modules

* Add more portals to wayland/sway and fix fonts

* Add nixosConfiguration-awareness to the homemanager module

* Add alacritty.nix for home-manager configuration

* Add formatter to flake

* Format with alejandra style

* Add apheleia to emacs

* Add local configuration to use alejandra in this flake with emacs
2022-08-22 16:39:47 +02:00

95 lines
1.7 KiB
Nix

{
config,
pkgs,
inputs,
nixos-hardware,
...
}: {
imports = [
../../common/users.nix
./hardware-configuration.nix
];
elss = {
# base system
base.enable = true;
# setup locale and font settings
locale.enable = true;
# setup sshd
sshd.enable = true;
# configure zsh
zsh.enable = true;
# enable X11 with lightdm and i3
graphical = {
enable = false;
# set dpi if used in mobile applications
# dpi = 180;
};
# enable deamon to generate nix-index-db
nix-index-db-update.enable = false;
# add TUD vpn
openvpn.enable = false;
# enable sops
sops = {
enable = true;
};
# enable server services
server = {
enable = true;
acme.staging = false;
};
# enable wireguard
wireguard.enable = true;
# user setup
users = {
enable = true;
admins = ["ellmau"];
users = [];
meta = {
ellmau.git = {
signDefault = false;
};
};
};
};
fileSystems."/".options = ["noatime"];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking = {
interfaces.ens3 = {
ipv4.addresses = [
{
address = "89.58.45.113";
prefixLength = 22;
}
];
ipv6.addresses = [
{
address = "fe80::94e0:6eff:fecd:d6cb";
prefixLength = 64;
}
];
};
defaultGateway = "89.58.44.1";
defaultGateway6 = {
address = "fe80::1";
interface = "ens3";
};
nat = {
enable = true;
externalInterface = "ens3";
internalInterfaces = ["wg-stelnet"];
};
};
system.stateVersion = "22.05";
}