Edit config

- Move Home-Manager to separate file
    - Remove some unneeded lines
This commit is contained in:
RealStickman 2023-04-16 19:29:05 +02:00
parent 5592441dc3
commit cbfa0a1b36

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,10 +9,9 @@ let
hostname = "nixos"; hostname = "nixos";
in in
{ {
imports = imports = [
[ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
<home-manager/nixos> ./home-manager.nix
]; ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
@ -41,23 +40,17 @@ 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 = "none+hyprland"; displayManager.defaultSession = "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
@ -68,17 +61,11 @@ 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 sound. # Enable Pipewire
# sound.enable = true;
# hardware.pulseaudio.enable = true;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -92,19 +79,10 @@ 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" ];
@ -115,13 +93,8 @@ 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 # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim
wget
hyprland
open-vm-tools
wayland
xdg-utils xdg-utils
pciutils
]; ];
# Allow unfree packages # Allow unfree packages
@ -185,12 +158,4 @@ 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
];
};
} }