feat: initial config

This commit is contained in:
2026-03-20 20:05:57 +01:00
commit 9ebaeecd9f
2 changed files with 59 additions and 0 deletions

47
configuration.nix Normal file
View File

@@ -0,0 +1,47 @@
{ config, pkgs, ... }:
{
# nixos version
system.stateVersion = "25.05";
# bootloader config stuff
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# networking
# networking.hostName = "nixos";
networking.networkmanager.enable = true;
# timezone
time.timeZone = "Europe/Madrid";
# xfce, x11...
services.xserver.enable = true;
services.xserver.displayManager.lightdm.enable = true;
services.xserver.desktopManager.xfce.enable = true;
# spanish keyboard layout
services.xserver.xkb.layout = "es";
services.pipewire.enable = true;
# user configuration
users.users.usuario = {
isNormalUser = true;
extraGroups = [ "networkmanager" ];
password = "usuario";
};
users.users.root.initialPassword = "toor";
environment.systemPackages = with pkgs; [
firefox
git
vim
python3
vscode
chromium
];
# sudo configuration
security.sudo.wheelNeedsPassword = true;
}

12
flake.nix Normal file
View File

@@ -0,0 +1,12 @@
{
description = "Config Lab Ordenadores [REDACTED]";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
outputs = { self, nixpkgs }: {
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./configuration.nix ];
};
};
}