Refactor
This commit is contained in:
parent
cd3a1015c6
commit
24a749ed9d
4 changed files with 22 additions and 44 deletions
|
@ -8,6 +8,7 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
../../modules/system.nix
|
../../modules/system.nix
|
||||||
|
../../modules/network.nix
|
||||||
../../modules/keymaps/us.nix
|
../../modules/keymaps/us.nix
|
||||||
../../modules/pipewire.nix
|
../../modules/pipewire.nix
|
||||||
../../modules/hyprland.nix
|
../../modules/hyprland.nix
|
||||||
|
@ -26,22 +27,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos-vm"; # 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. It‘s 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";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
../../modules/system.nix
|
../../modules/system.nix
|
||||||
|
../../modules/network.nix
|
||||||
|
../../modules/plasma.nix
|
||||||
../../modules/keymaps/fr.nix
|
../../modules/keymaps/fr.nix
|
||||||
../../modules/pipewire.nix
|
../../modules/pipewire.nix
|
||||||
|
|
||||||
|
@ -19,21 +21,5 @@
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos-laptop-perso"; # 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;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
11
modules/network.nix
Normal file
11
modules/network.nix
Normal 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;
|
||||||
|
}
|
|
@ -1,12 +1,9 @@
|
||||||
{ pkgs, inputs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.hyprland = {
|
# Enable the X11 windowing system.
|
||||||
enable = true;
|
services.xserver.enable = true;
|
||||||
xwayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.udisks2 = {
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
enable = true;
|
services.xserver.displayManager.sddm.enable = true;
|
||||||
mountOnMedia = true;
|
services.xserver.desktopManager.plasma5.enable = true;
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue