add zsh config, gnome extensions, zoom, fprintd
This commit is contained in:
parent
d94c80295f
commit
baeec4b172
@ -12,10 +12,6 @@
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
#boot.loader.grub.enable = true;
|
||||
#boot.loader.grub.device = "/dev/sda";
|
||||
#boot.loader.grub.useOSProber = true;
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
@ -102,6 +98,8 @@
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
|
15
flake.nix
15
flake.nix
@ -4,14 +4,13 @@
|
||||
inputs = {
|
||||
# import nixos packages
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
#nixpkgs.url = "github:NixOS/nixpkgs/gnome";
|
||||
# import homemanager
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
gnomeNixpkgs.url = "github:NixOS/nixpkgs/gnome";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, gnomeNixpkgs }:
|
||||
outputs = { self, nixpkgs, home-manager }:
|
||||
let
|
||||
system="x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
@ -24,13 +23,6 @@
|
||||
main = lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
# {
|
||||
# nixpkgs.overlays = [
|
||||
# (self: super: {
|
||||
# gnome = gnomeNixpkgs.legacyPackages.x86_64-linux.gnome;
|
||||
# })
|
||||
# ];
|
||||
# }
|
||||
./configuration.nix
|
||||
|
||||
home-manager.nixosModules.home-manager {
|
||||
@ -39,6 +31,9 @@
|
||||
home-manager.users.lukas = {
|
||||
imports = [ ./home.nix ];
|
||||
};
|
||||
home-manager.users.root = {
|
||||
imports = [ ./home-root.nix ];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
@ -8,35 +8,31 @@
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/104ae3e3-9095-4fcd-a916-6c64a3280e36";
|
||||
{ device = "/dev/disk/by-uuid/c4b4ecd9-d7bb-4888-9652-a57aea10e8cd";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/CBB7-1A0B";
|
||||
{ device = "/dev/disk/by-uuid/6F72-E139";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/de9c4a47-281d-4846-94fc-38d90b627f29"; }
|
||||
];
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eth0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
39
home-root.nix
Normal file
39
home-root.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[];
|
||||
|
||||
home.username = "root";
|
||||
home.homeDirectory = "/root";
|
||||
home.stateVersion = "23.11";
|
||||
|
||||
# set git names
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Lukas Heiligenbrunner";
|
||||
userEmail = "lukas.heiligenbrunner@gmail.com";
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ll = "ls -l";
|
||||
};
|
||||
history = {
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
size = 10000;
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
source /home/lukas/.p10k.zsh
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
name = "powerlevel10k";
|
||||
src = pkgs.zsh-powerlevel10k;
|
||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
50
home.nix
50
home.nix
@ -15,6 +15,7 @@
|
||||
enable-hot-corners = true;
|
||||
clock-show-seconds = true;
|
||||
show-battery-percentage = true;
|
||||
scaling-factor = 1.25;
|
||||
};
|
||||
"org/gnome/mutter" = {
|
||||
dynamic-workspaces = true;
|
||||
@ -22,9 +23,25 @@
|
||||
};
|
||||
"org/gnome/shell" = {
|
||||
favorite-apps = ["org.gnome.Nautilus.desktop" "gnome-system-monitor.desktop" "firefox.desktop" "org.gnome.Console.desktop"];
|
||||
|
||||
# set extensions
|
||||
disable-user-extensions = false;
|
||||
|
||||
# `gnome-extensions list` for a list
|
||||
enabled-extensions = [
|
||||
"Vitals@CoreCoding.com"
|
||||
"tiling-assistant@leleat-on-github"
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/tiling-assistant" = {
|
||||
enable-tiling-popup = false;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
#sound
|
||||
dconf.settings = {
|
||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||
@ -80,4 +97,37 @@
|
||||
show-grid = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# gnome extensions
|
||||
home.packages = with pkgs; [
|
||||
gnomeExtensions.vitals
|
||||
gnomeExtensions.tiling-assistant
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ll = "ls -l";
|
||||
};
|
||||
history = {
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
size = 10000;
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
source .p10k.zsh
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
name = "powerlevel10k";
|
||||
src = pkgs.zsh-powerlevel10k;
|
||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
home.file.".p10k.zsh" = {
|
||||
source = ./resources/.p10k.zsh;
|
||||
};
|
||||
}
|
@ -22,6 +22,11 @@
|
||||
|
||||
# disable xterm
|
||||
services.xserver.excludePackages = [ pkgs.xterm ];
|
||||
services.fwupd.enable = true;
|
||||
# For fingerprint support
|
||||
services.fprintd.enable = lib.mkDefault true;
|
||||
programs.steam.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
|
||||
# packages in global env
|
||||
environment.systemPackages = with pkgs; [
|
||||
@ -29,6 +34,8 @@
|
||||
wget
|
||||
scrcpy
|
||||
cmake
|
||||
lm_sensors
|
||||
smartmontools
|
||||
|
||||
# web
|
||||
firefox
|
||||
@ -48,6 +55,7 @@
|
||||
# multimedia
|
||||
vlc
|
||||
gimp
|
||||
zoom-us
|
||||
|
||||
# file transfer
|
||||
warp
|
||||
|
1732
resources/.p10k.zsh
Normal file
1732
resources/.p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user