refactor flake

This commit is contained in:
2024-08-01 04:53:47 +05:30
parent 2dafb7605d
commit d53f9250d6
3 changed files with 4 additions and 81 deletions

View File

@ -1,11 +1,7 @@
{
outputs,
pkgs,
username,
...
}: {
{pkgs, ...}: {
imports = [
./hardware-configuration.nix
../../modules/nixos/default.nix
../../modules/nixos/headscale.nix
../../modules/nixos/vaultwarden.nix
../../modules/nixos/uptime-kuma.nix
@ -15,27 +11,6 @@
../../modules/nixos/monitoring/promtail.nix
];
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
outputs.overlays.nur
];
config = {
allowUnfree = true;
joypixels.acceptLicense = true;
};
};
nix = {
settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
};
};
boot = {
kernelPackages = pkgs.linuxPackages_zen;
initrd.systemd.enable = true;
@ -60,30 +35,6 @@
dconf.enable = true;
};
services = {
openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
};
};
};
users = {
defaultUserShell = pkgs.zsh;
users.${username} = {
initialPassword = "${username}";
isNormalUser = true;
extraGroups = ["networkmanager" "wheel" "storage"];
openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me''
];
};
};
environment.systemPackages = with pkgs; [
];
fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})];
system.stateVersion = "23.11";