don't even know anymore

nixos
Moritz Böhme 2021-09-08 20:30:19 +02:00
parent a535553cbe
commit 795aeabb2a
6 changed files with 52 additions and 32 deletions

View File

@ -28,3 +28,4 @@ bspc rule -a Emacs state=tiled
# AUTOSTART # # AUTOSTART #
[[ ! $(pidof -x sxhkd) ]] && sxhkd & [[ ! $(pidof -x sxhkd) ]] && sxhkd &
feh --bg-fill ~/.dotfiles/config/wallpaper/base.png feh --bg-fill ~/.dotfiles/config/wallpaper/base.png
systemctl --user start polybar

View File

@ -2,8 +2,7 @@
DOOM="$HOME/.emacs.d" DOOM="$HOME/.emacs.d"
if [ ! -d "$DOOM" ]; then if [ ! -d "$DOOM" ]; then
git clone https://github.com/hlissner/doom-emacs.git "$DOOM" git clone https://github.com/hlissner/doom-emacs.git "$DOOM"
sleep 0.5 "$DOOM/bin/doom" -y install
"$DOOM/bin/doom -y install"
fi fi
"$DOOM/bin/doom sync" "$DOOM/bin/doom" sync

View File

@ -12,8 +12,8 @@
}; };
}; };
outputs = inputs@{ self, utils, home-manager, ...}: { outputs = inputs@{ self, utils, home-manager, ...}:
utils.lib.mkFlake = { utils.lib.mkFlake {
inherit self inputs; inherit self inputs;
# Channel definitions. # Channel definitions.
@ -22,7 +22,7 @@
channelsConfig.allowUnfree = true; channelsConfig.allowUnfree = true;
hostDefaults.modules = [ hostDefaults.modules = [
home-manager.nixos.Modules.home-manager home-manager.nixosModules.home-manager
./modules ./modules
]; ];
@ -30,5 +30,4 @@
./hosts/nixos-laptop ./hosts/nixos-laptop
]; ];
}; };
};
} }

View File

@ -72,8 +72,9 @@
printing.enable = true; printing.enable = true;
}; };
# Enable sound. # Enable sound
services.pipewire.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true;
# Powersaving # Powersaving
services.tlp.enable = true; services.tlp.enable = true;

View File

@ -10,9 +10,15 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
# BOOT # BOOT
boot.supportedFilesystems = [ "btrfs" ]; boot = {
boot.loader = { supportedFilesystems = [ "btrfs" ];
loader = {
grub = { grub = {
enable = true; enable = true;
version = 2; version = 2;
@ -21,10 +27,12 @@
}; };
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
kernelPackages = pkgs.linuxPackages_zen;
};
# NETWORKING # NETWORKING
networking = { networking = {
hostName = "nixos"; hostName = "nixos-laptop";
networkmanager.enable = true; networkmanager.enable = true;
useDHCP = false; useDHCP = false;
@ -64,10 +72,13 @@
printing.enable = true; printing.enable = true;
}; };
# Enable sound. # Enable sound
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
# Powersaving
services.tlp.enable = true;
# USERS # USERS
users.users.moritz = { users.users.moritz = {
shell = pkgs.zsh; shell = pkgs.zsh;
@ -77,7 +88,7 @@
}; };
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ];}) (nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "JetBrainsMono"];})
]; ];
# PACKAGES # PACKAGES

View File

@ -70,7 +70,7 @@
enable_audio_bell = false; enable_audio_bell = false;
cursor_shape = "underline"; cursor_shape = "underline";
}; };
extraConfig = builtins.readFile ~/.config/kitty/dracula.conf; extraConfig = builtins.readFile ~/.dotfiles/config/kitty/dracula.conf;
font = { font = {
name = "FiraCode Nerd Font"; name = "FiraCode Nerd Font";
size = 10; size = 10;
@ -87,7 +87,7 @@
rofi = { rofi = {
enable = true; enable = true;
theme = ~/.config/rofi/dracula_old.rasi; theme = ~/.dotfiles/config/rofi/dracula_old.rasi;
}; };
emacs.enable = true; emacs.enable = true;
@ -109,13 +109,8 @@
recursive = true; recursive = true;
onChange = builtins.readFile ~/.dotfiles/config/doom/reload.sh; onChange = builtins.readFile ~/.dotfiles/config/doom/reload.sh;
}; };
"kitty" = { "dunst/dunstrc" = {
source = ~/.dotfiles/config/kitty; source = ~/.dotfiles/config/dunst/dunstrc;
recursive = true;
};
"rofi" = {
source = ~/.dotfiles/config/rofi;
recursive = true;
}; };
}; };
}; };
@ -143,13 +138,27 @@
inactiveDim = "0.1"; inactiveDim = "0.1";
}; };
emacs.enable = true; emacs = {
enable = true;
package = pkgs.emacsUnstable;
};
dunst.enable = true;
kdeconnect.enable = true;
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
neofetch neofetch
feh feh
keepassxc
];
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
}))
]; ];
# This value determines the Home Manager release that your # This value determines the Home Manager release that your