summaryrefslogtreecommitdiff
path: root/nixos/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/configuration.nix')
-rw-r--r--nixos/configuration.nix63
1 files changed, 63 insertions, 0 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
new file mode 100644
index 0000000..59891cd
--- /dev/null
+++ b/nixos/configuration.nix
@@ -0,0 +1,63 @@
+{ inputs, config, lib, pkgs, ... }:
+
+{
+ imports =
+ [
+ ./hardware-configuration.nix
+ ];
+
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi.canTouchEfiVariables = true;
+
+ boot.kernelPackages = pkgs.linuxPackages_latest;
+
+ networking.hostName = "calamity";
+ networking.networkmanager.enable = true;
+
+ time.timeZone = "Europe/Paris";
+
+ i18n.defaultLocale = "fr_FR.UTF-8";
+
+ console = {
+ font = "Lat2-Terminus16";
+ keyMap = "fr";
+ };
+
+ services.pipewire = {
+ enable = true;
+ pulse.enable = true;
+ };
+
+ services.libinput.enable = true;
+
+ #services.getty.autologinUser = "nantha";
+
+ programs.hyprland = {
+ enable = true;
+ xwayland.enable = true;
+ };
+
+ users.users.nantha = {
+ isNormalUser = true;
+ extraGroups = [ "wheel" ];
+ packages = with pkgs; [];
+ };
+
+ environment.systemPackages = with pkgs; [
+ brightnessctl
+ sof-firmware
+ alsa-firmware
+ linux-firmware
+ ];
+
+ services.openssh.enable = true;
+
+ networking.firewall.allowedTCPPorts = [ ];
+ networking.firewall.allowedUDPPorts = [ ];
+ networking.firewall.enable = true;
+
+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
+
+ system.stateVersion = "26.05";
+}
+