This commit is contained in:
Florian RICHER 2024-02-02 21:58:06 +01:00
parent cd3a1015c6
commit 24a749ed9d
4 changed files with 22 additions and 44 deletions

View file

@ -8,6 +8,7 @@
imports =
[
../../modules/system.nix
../../modules/network.nix
../../modules/keymaps/us.nix
../../modules/pipewire.nix
../../modules/hyprland.nix
@ -26,22 +27,5 @@
};
};
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05";
networking.hostName = "nixos-vm"; # Define your hostname.
}

View file

@ -8,6 +8,8 @@
imports =
[
../../modules/system.nix
../../modules/network.nix
../../modules/plasma.nix
../../modules/keymaps/fr.nix
../../modules/pipewire.nix
@ -19,21 +21,5 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
networking.hostName = "nixos-laptop-perso"; # Define your hostname.
}

11
modules/network.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
}

View file

@ -1,12 +1,9 @@
{ pkgs, inputs, ... }:
{ config, pkgs, ... }:
{
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
# Enable the X11 windowing system.
services.xserver.enable = true;
services.udisks2 = {
enable = true;
mountOnMedia = true;
};
# Enable the KDE Plasma Desktop Environment.
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
}