60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../common/global
|
|
../common/features/laptop.nix
|
|
../common/features/networking.nix
|
|
../common/features/gpu/intel-graphics.nix
|
|
../common/features/display
|
|
../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
|
|
../common/features/android-studio.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-O5JbzK5ulPob0HIrO8DT1MxfkC9bnfBw/0GR8Xu1tjw=";
|
|
};
|
|
in
|
|
pkgs.lib.splitString "\n" (builtins.readFile authorizedKeys);
|
|
};
|
|
}
|