mirror of
https://github.com/iesfdlr/lab.git
synced 2026-06-06 01:16:49 +00:00
feat: initial config
This commit is contained in:
47
configuration.nix
Normal file
47
configuration.nix
Normal 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
12
flake.nix
Normal 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 ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user