restructure folders - 2

This commit is contained in:
2024-03-03 13:15:52 +01:00
parent 0ff29aca1a
commit 0fde604f96
8 changed files with 41 additions and 59 deletions

View File

@@ -10,11 +10,11 @@
efi.canTouchEfiVariables = true;
};
# Define your hostname.
networking.hostName = "eliasLaptop";
# Use NetworkManager for networking.
networking.networkmanager.enable = true;
# Chose NetworkManager and hostname.
networking = {
hostName = "eliasLaptop";
networkmanager.enable = true;
};
# Set your time zone.
time.timeZone = "Europe/Berlin";
@@ -23,10 +23,20 @@
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
useXkbConfig = true; # use xkb.options in tty.
# Use xkb.options in tty.
useXkbConfig = true;
};
services.xserver = {
# Activate Flakes.
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
services = {
# Set XServer Options.
xserver = {
enable = true;
displayManager = {
sddm = {
@@ -35,27 +45,15 @@
};
defaultSession = "none+xmonad";
};
windowManager.xmonad = { enable = true; };
xkb = { layout = "de"; };
libinput.enable = true; # Enable touchpad.
windowManager.xmonad.enable = true;
xkb.layout = "de";
};
# Enable CUPS to print.
printing.enable = true;
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
# 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.
# Define a user account.
users = {
mutableUsers = false;
users.elias = {
@@ -68,6 +66,7 @@
};
};
# Basic Packages.
environment.systemPackages = with pkgs; [
(libsForQt5.callPackage ./home/themes/catppuccin-sddm.nix { })
@@ -77,6 +76,7 @@
alacritty
dmenu
];
# Enable zsh for setting it as shell for users.
programs.zsh.enable = true;

View File

@@ -1,5 +1,5 @@
{
description = "My chaos NixOS flake";
description = "My NixOS Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
@@ -8,12 +8,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
# The xmonad-contrib flake depends upon and re-exports from the xmonad
# flake. As such, you don't need to use the latter directly. If you wish to
# use /only/ the xmonad flake, you should beware that the version of
# contrib you get from nixpkgs might not build against it.
xmonad-contrib.url = "github:xmonad/xmonad-contrib";
};
inputs.neovim-nightly-overlay.url =
@@ -26,9 +21,11 @@
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.elias = import ./home/default.nix;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.elias = import ./home/default.nix;
};
nixpkgs.overlays = [ inputs.neovim-nightly-overlay.overlay ];
}
];

View File

@@ -18,7 +18,7 @@
lm_sensors
# extras
openssh
# openssh
#betterbird
#bitwarden
# dropbox

View File

@@ -9,7 +9,7 @@
env = { "TERM" = "xterm-256color"; };
font = {
size = 10;
size = 9;
normal.family = "Fira Code";
bold.family = "Fira Code";
italic.family = "Fira Code";

View File

@@ -1,16 +1,9 @@
{ pkgs, config, ... }:
{
home.packages = with pkgs; [
#zsh
fzf
python3
zsh-nix-shell
nix-zsh-completions
];
home.packages = with pkgs; [ fzf python3 zsh-nix-shell nix-zsh-completions ];
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
shellAliases = { update = "sudo nixos-rebuild switch"; };
enableAutosuggestions = true;

View File

@@ -1,5 +1 @@
{
imports = [
./ssh-agent.nix
];
}
{ imports = [ ./openssh.nix ./ssh-agent.nix ]; }

View File

@@ -2,9 +2,7 @@
{
services = {
ssh-agent = {
enable = true;
};
ssh-agent = { enable = true; };
openssh = {
enable = true;
settings = {

View File

@@ -1,8 +1,6 @@
{ ... }:
{
services.ssh-agent = {
enable = true;
};
services.ssh-agent = { enable = true; };
}