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; efi.canTouchEfiVariables = true;
}; };
# Define your hostname. # Chose NetworkManager and hostname.
networking.hostName = "eliasLaptop"; networking = {
hostName = "eliasLaptop";
# Use NetworkManager for networking. networkmanager.enable = true;
networking.networkmanager.enable = true; };
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
@@ -23,39 +23,37 @@
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
console = { console = {
font = "Lat2-Terminus16"; font = "Lat2-Terminus16";
useXkbConfig = true; # use xkb.options in tty. # Use xkb.options in tty.
}; useXkbConfig = true;
services.xserver = {
enable = true;
displayManager = {
sddm = {
enable = true;
theme = "catppuccin-mocha";
};
defaultSession = "none+xmonad";
};
windowManager.xmonad = { enable = true; };
xkb = { layout = "de"; };
}; };
# Activate Flakes.
nix.settings.experimental-features = [ "nix-command" "flakes" ]; 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. # Enable sound.
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
# Enable touchpad support (enabled default in most desktopManager). services = {
services.xserver.libinput.enable = true; # Set XServer Options.
xserver = {
enable = true;
displayManager = {
sddm = {
enable = true;
theme = "catppuccin-mocha";
};
defaultSession = "none+xmonad";
};
libinput.enable = true; # Enable touchpad.
windowManager.xmonad.enable = true;
xkb.layout = "de";
};
# Enable CUPS to print.
printing.enable = true;
};
# Define a user account. Don't forget to set a password with passwd. # Define a user account.
users = { users = {
mutableUsers = false; mutableUsers = false;
users.elias = { users.elias = {
@@ -68,6 +66,7 @@
}; };
}; };
# Basic Packages.
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(libsForQt5.callPackage ./home/themes/catppuccin-sddm.nix { }) (libsForQt5.callPackage ./home/themes/catppuccin-sddm.nix { })
@@ -77,6 +76,7 @@
alacritty alacritty
dmenu dmenu
]; ];
# Enable zsh for setting it as shell for users. # Enable zsh for setting it as shell for users.
programs.zsh.enable = true; programs.zsh.enable = true;

View File

@@ -1,5 +1,5 @@
{ {
description = "My chaos NixOS flake"; description = "My NixOS Flake";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
@@ -8,12 +8,7 @@
inputs.nixpkgs.follows = "nixpkgs"; 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"; xmonad-contrib.url = "github:xmonad/xmonad-contrib";
}; };
inputs.neovim-nightly-overlay.url = inputs.neovim-nightly-overlay.url =
@@ -26,9 +21,11 @@
./configuration.nix ./configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager = {
home-manager.useUserPackages = true; useGlobalPkgs = true;
home-manager.users.elias = import ./home/default.nix; useUserPackages = true;
users.elias = import ./home/default.nix;
};
nixpkgs.overlays = [ inputs.neovim-nightly-overlay.overlay ]; nixpkgs.overlays = [ inputs.neovim-nightly-overlay.overlay ];
} }
]; ];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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