initial commit, pc config
This commit is contained in:
commit
139aac8fef
6 changed files with 394 additions and 0 deletions
74
nixos/configuration.nix
Normal file
74
nixos/configuration.nix
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./programs.nix
|
||||
];
|
||||
|
||||
users.users.daniel = {
|
||||
isNormalUser = true;
|
||||
description = "Daniel";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
};
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
environment.shellAliases = {
|
||||
rebuild = "sudo nixos-rebuild switch --flake ~/Documents/Nix/pc-config/nixos#daniel";
|
||||
rebuild-test = "sudo nixos-rebuild test --flake ~/Documents/Nix/pc-config/nixos#daniel";
|
||||
rebuild-dry = "nixos-rebuild dry-run --flake ~/Documents/Nix/pc-config/nixos#daniel";
|
||||
|
||||
to-public = "ssh -r danielk.me:/var/www/danielk.me/public";
|
||||
};
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "laptop";
|
||||
networking.networkmanager.enable = true;
|
||||
networking.firewall.enable = false;
|
||||
|
||||
time.timeZone = "Europe/Madrid";
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
console.keyMap = "es";
|
||||
|
||||
services.xserver.enable = false;
|
||||
services.xserver.xkb.layout = "es";
|
||||
|
||||
services.displayManager.gdm.enable = true;
|
||||
services.displayManager.gdm.wayland = true;
|
||||
services.desktopManager.gnome.enable = true;
|
||||
|
||||
services.printing.enable = true;
|
||||
services.libinput.enable = true;
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue