mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
split files
This commit is contained in:
parent
38f35f3568
commit
76a7a31ef6
|
@ -1,15 +1,12 @@
|
|||
# Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
# enable home manager
|
||||
<home-manager/nixos>
|
||||
./home.nix
|
||||
];
|
||||
|
||||
nixpkgs.config = {
|
||||
|
@ -34,8 +31,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
networking = {
|
||||
hostName = "vinzenz-lpt";
|
||||
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Configure network proxy if necessary
|
||||
|
@ -62,6 +59,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
i18n = {
|
||||
|
@ -183,121 +181,4 @@
|
|||
pkgs.gnome-connections
|
||||
];
|
||||
};
|
||||
|
||||
# Define user account
|
||||
users.users.vinzenz = {
|
||||
isNormalUser = true;
|
||||
description = "Vinzenz Schroeter";
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
shell = pkgs.zsh;
|
||||
# openssh.authorizedKeys.keys = [ "ssh-dss AAAAB3NzaC1kc3MAAACBAPIkGWVEt4..." ];
|
||||
};
|
||||
|
||||
# home manager
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.users.vinzenz = {
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
#imports = [ "${builtins.fetchTarball https://github.com/schuelermine/xhmm/archive/1608fa757cbd8fb4f11435a50610e44de3fc2223.tar.gz}/console/nano.nix" ];
|
||||
|
||||
home = {
|
||||
username = "vinzenz";
|
||||
homeDirectory = "/home/vinzenz";
|
||||
stateVersion = "22.11";
|
||||
#editor = "nano";
|
||||
|
||||
sessionVariables = {
|
||||
EDITOR = "nano";
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
htop
|
||||
btop
|
||||
iotop
|
||||
radeontop
|
||||
powerline
|
||||
powerline-fonts
|
||||
thefuck
|
||||
keepassxc
|
||||
steam
|
||||
wine-staging
|
||||
nix-zsh-completions
|
||||
tldr
|
||||
my.insync-v3
|
||||
jetbrains.rider
|
||||
alejandra
|
||||
gnome-secrets
|
||||
amberol
|
||||
dotnet-sdk_7
|
||||
# gnome workbench
|
||||
tdesktop
|
||||
lutris
|
||||
];
|
||||
|
||||
file.".nanorc".text = ''
|
||||
set linenumbers
|
||||
set mouse
|
||||
'';
|
||||
};
|
||||
|
||||
services = {
|
||||
kdeconnect = {
|
||||
enable = true;
|
||||
indicator = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
my-update = "sudo nixos-rebuild switch";
|
||||
my-config = "sudo nano /etc/nixos/configuration.nix";
|
||||
my-fmt = "sudo alejandra /etc/nixos/configuration.nix";
|
||||
};
|
||||
history = {
|
||||
size = 10000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "agnoster";
|
||||
plugins = ["git" "sudo" "docker" "systemadmin" "thefuck" "nix-zsh-completions"];
|
||||
};
|
||||
};
|
||||
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Vinzenz Schroeter";
|
||||
userEmail = "vinzenz.f.s@gmail.com";
|
||||
|
||||
#package = pkgs.gitFull;
|
||||
#config.credential.helper = "libsecret";
|
||||
|
||||
aliases = {
|
||||
prettylog = "log --pretty=oneline --graph";
|
||||
};
|
||||
extraConfig = {
|
||||
pull = {
|
||||
ff = "only";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
enableUpdateCheck = false;
|
||||
extensions = [pkgs.vscode-extensions.bbenoist.nix];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
125
home.nix
Normal file
125
home.nix
Normal file
|
@ -0,0 +1,125 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Define user account
|
||||
users.users.vinzenz = {
|
||||
isNormalUser = true;
|
||||
description = "Vinzenz Schroeter";
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
shell = pkgs.zsh;
|
||||
# openssh.authorizedKeys.keys = [ "ssh-dss AAAAB3NzaC1kc3MAAACBAPIkGWVEt4..." ];
|
||||
};
|
||||
|
||||
# home manager
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.users.vinzenz = {
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
#imports = [ "${builtins.fetchTarball https://github.com/schuelermine/xhmm/archive/1608fa757cbd8fb4f11435a50610e44de3fc2223.tar.gz}/console/nano.nix" ];
|
||||
|
||||
home = {
|
||||
username = "vinzenz";
|
||||
homeDirectory = "/home/vinzenz";
|
||||
stateVersion = "22.11";
|
||||
#editor = "nano";
|
||||
|
||||
sessionVariables = {
|
||||
EDITOR = "nano";
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
htop
|
||||
btop
|
||||
iotop
|
||||
radeontop
|
||||
powerline
|
||||
powerline-fonts
|
||||
thefuck
|
||||
keepassxc
|
||||
steam
|
||||
wine-staging
|
||||
nix-zsh-completions
|
||||
tldr
|
||||
my.insync-v3
|
||||
jetbrains.rider
|
||||
alejandra
|
||||
gnome-secrets
|
||||
amberol
|
||||
dotnet-sdk_7
|
||||
# gnome workbench
|
||||
tdesktop
|
||||
lutris
|
||||
];
|
||||
|
||||
file.".nanorc".text = ''
|
||||
set linenumbers
|
||||
set mouse
|
||||
'';
|
||||
};
|
||||
|
||||
services = {
|
||||
kdeconnect = {
|
||||
enable = true;
|
||||
indicator = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
my-update = "sudo nixos-rebuild switch";
|
||||
my-config = "sudo nano /etc/nixos/configuration.nix";
|
||||
my-fmt = "sudo alejandra /etc/nixos/configuration.nix";
|
||||
};
|
||||
history = {
|
||||
size = 10000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "agnoster";
|
||||
plugins = ["git" "sudo" "docker" "systemadmin" "thefuck" "nix-zsh-completions"];
|
||||
};
|
||||
};
|
||||
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Vinzenz Schroeter";
|
||||
userEmail = "vinzenz.f.s@gmail.com";
|
||||
|
||||
#package = pkgs.gitFull;
|
||||
#config.credential.helper = "libsecret";
|
||||
|
||||
aliases = {
|
||||
prettylog = "log --pretty=oneline --graph";
|
||||
};
|
||||
extraConfig = {
|
||||
pull = {
|
||||
ff = "only";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
enableUpdateCheck = false;
|
||||
extensions = [pkgs.vscode-extensions.bbenoist.nix];
|
||||
userSettings = {
|
||||
"files.insertFinalNewline" = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -2,7 +2,6 @@
|
|||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
8
vinzenz-lpt.nix
Normal file
8
vinzenz-lpt.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{...}: {
|
||||
networking.hostName = "vinzenz-lpt";
|
||||
|
||||
imports = [
|
||||
./common.nix
|
||||
./vinzenz-lpt-hardware-configuration.nix
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue