Files
nix/hosts/arrakis/default.nix
T
Miguel Palhas 587114e642 zed editor
2025-06-09 10:28:51 +01:00

59 lines
1.3 KiB
Nix

{
inputs,
pkgs,
config,
...
}:
{
imports = [
./hardware-configuration.nix
../common/global
../common/features/laptop.nix
../common/features/networking.nix
../common/features/intel-graphics.nix
../common/features/wayland.nix
../common/features/pipewire.nix
../common/features/docker.nix
../common/features/fonts.nix
../common/features/nix-ld.nix
../common/features/bluetooth.nix
../common/features/ledger.nix
];
networking.hostName = "arrakis";
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
kernelParams = [ "i915=force_probe=46a6" ];
};
system.stateVersion = "24.05";
programs.zsh.enable = true;
users.users.naps62 = {
isNormalUser = true;
description = "Miguel Palhas";
extraGroups = [
"networkmanager"
"input"
"wheel"
"docker"
"dialout"
];
shell = pkgs.zsh;
initialHashedPassword = "$y$j9T$uRTzF/sBdrqVGZTRhPuR00$wgLgEGlq.lEmlCPiy69jkbtfC9HKpyaVPDHDdBGtE5D";
openssh.authorizedKeys.keys =
let
authorizedKeys = pkgs.fetchurl {
url = "https://github.com/naps62.keys";
sha256 = "sha256-QKVtVXIVxYUqpnNCJAfRow3RG4j2jkQSFOwTeDgwO7s=";
};
in
pkgs.lib.splitString "\n" (builtins.readFile authorizedKeys);
};
}