Compare commits
No commits in common. "752406d9d5426a98c80a82bc9a1b40863bcba123" and "5592441dc3747bf0f52b2dc1d5b08a44225ced9a" have entirely different histories.
752406d9d5
...
5592441dc3
@ -1,6 +1,6 @@
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# 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, ... }:
|
||||
|
||||
@ -9,9 +9,10 @@ let
|
||||
hostname = "nixos";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home-manager.nix
|
||||
<home-manager/nixos>
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
@ -40,17 +41,23 @@ in
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "de_CH.UTF-8";
|
||||
console = {
|
||||
# font = "Lat2-Terminus16";
|
||||
keyMap = "de_CH-latin1";
|
||||
# useXkbConfig = true; # use xkbOptions in tty.
|
||||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.defaultSession = "Hyprland";
|
||||
#displayManager.defaultSession = "none+hyprland";
|
||||
#displayManager.startx.enable = true;
|
||||
displayManager.lightdm = {
|
||||
enable = true;
|
||||
greeters.gtk.enable = true;
|
||||
};
|
||||
#windowManager.openbox = {
|
||||
# enable = true;
|
||||
#};
|
||||
};
|
||||
|
||||
# Hyprland
|
||||
@ -61,11 +68,17 @@ in
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.layout = "ch";
|
||||
# services.xserver.xkbOptions = {
|
||||
# "eurosign:e";
|
||||
# "caps:escape" # map caps to escape.
|
||||
# };
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable Pipewire
|
||||
# Enable sound.
|
||||
# sound.enable = true;
|
||||
# hardware.pulseaudio.enable = true;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
@ -79,10 +92,19 @@ in
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
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
|
||||
programs.fish.enable = true;
|
||||
|
||||
# User config
|
||||
users.users.${user} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "video" "audio" "networkmanager" "lp" "scanner" ];
|
||||
@ -93,8 +115,13 @@ in
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
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
|
||||
pciutils
|
||||
];
|
||||
|
||||
# Allow unfree packages
|
||||
@ -158,4 +185,12 @@ in
|
||||
# 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 = "22.11"; # Did you read the comment?
|
||||
|
||||
home-manager.users.${user} = { pkgs, ... }: {
|
||||
home.stateVersion = "22.11";
|
||||
home.packages = [
|
||||
pkgs.firefox
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user