Compare commits

..

No commits in common. "752406d9d5426a98c80a82bc9a1b40863bcba123" and "5592441dc3747bf0f52b2dc1d5b08a44225ced9a" have entirely different histories.

2 changed files with 42 additions and 28 deletions

View File

@ -1,6 +1,6 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running `nixos-help`). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { config, pkgs, ... }:
@ -9,9 +9,10 @@ let
hostname = "nixos"; hostname = "nixos";
in in
{ {
imports = [ imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./home-manager.nix <home-manager/nixos>
]; ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
@ -40,17 +41,23 @@ in
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "de_CH.UTF-8"; i18n.defaultLocale = "de_CH.UTF-8";
console = { console = {
# font = "Lat2-Terminus16";
keyMap = "de_CH-latin1"; keyMap = "de_CH-latin1";
# useXkbConfig = true; # use xkbOptions in tty.
}; };
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver = { services.xserver = {
enable = true; enable = true;
displayManager.defaultSession = "Hyprland"; #displayManager.defaultSession = "none+hyprland";
#displayManager.startx.enable = true;
displayManager.lightdm = { displayManager.lightdm = {
enable = true; enable = true;
greeters.gtk.enable = true; greeters.gtk.enable = true;
}; };
#windowManager.openbox = {
# enable = true;
#};
}; };
# Hyprland # Hyprland
@ -61,11 +68,17 @@ in
# Configure keymap in X11 # Configure keymap in X11
services.xserver.layout = "ch"; services.xserver.layout = "ch";
# services.xserver.xkbOptions = {
# "eurosign:e";
# "caps:escape" # map caps to escape.
# };
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
# Enable Pipewire # Enable sound.
# sound.enable = true;
# hardware.pulseaudio.enable = true;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -79,10 +92,19 @@ in
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true; services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
# users.users.alice = {
# isNormalUser = true;
# extraGroups = [ "wheel" ]; # Enable sudo for the user.
# packages = with pkgs; [
# firefox
# thunderbird
# ];
# };
# Enable fish shell for nix # Enable fish shell for nix
programs.fish.enable = true; programs.fish.enable = true;
# User config
users.users.${user} = { users.users.${user} = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "video" "audio" "networkmanager" "lp" "scanner" ]; extraGroups = [ "wheel" "video" "audio" "networkmanager" "lp" "scanner" ];
@ -93,8 +115,13 @@ in
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget
hyprland
open-vm-tools
wayland
xdg-utils xdg-utils
pciutils
]; ];
# Allow unfree packages # Allow unfree packages
@ -158,4 +185,12 @@ in
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment? system.stateVersion = "22.11"; # Did you read the comment?
home-manager.users.${user} = { pkgs, ... }: {
home.stateVersion = "22.11";
home.packages = [
pkgs.firefox
];
};
} }

View File

@ -1,21 +0,0 @@
{ config, pkgs, ... }:
let
user = "exu";
hostname = "nixos";
in
{
imports = [
<home-manager/nixos>
];
home-manager.users.${user} = { pkgs, ... }: {
home.stateVersion = "22.11";
home.packages = [
pkgs.firefox
pkgs.kitty
pkgs.pciutils
pkgs.wget
];
};
}