fixed formating

This commit is contained in:
Moritz Böhme 2021-09-15 00:41:46 +02:00
parent 1acf673ead
commit 52c6b012ca
19 changed files with 142 additions and 134 deletions

View file

@ -28,7 +28,7 @@
};
};
outputs = inputs@{ self, utils, home-manager, nixpkgs, agenix, ...}:
outputs = inputs@{ self, utils, home-manager, nixpkgs, agenix, ... }:
utils.lib.mkFlake {
inherit self inputs;

View file

@ -6,7 +6,8 @@
{
imports =
[ # Include the results of the hardware scan.
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
@ -14,13 +15,13 @@
boot = {
supportedFilesystems = [ "btrfs" ];
loader = {
grub = {
enable = true;
version = 2;
device = "nodev";
efiSupport = true;
};
efi.canTouchEfiVariables = true;
grub = {
enable = true;
version = 2;
device = "nodev";
efiSupport = true;
};
efi.canTouchEfiVariables = true;
};
kernelPackages = pkgs.linuxPackages_zen;
};

View file

@ -5,7 +5,8 @@
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
@ -14,7 +15,8 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
{
device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
fsType = "btrfs";
options = [ "subvol=root" ];
};
@ -22,37 +24,41 @@
boot.initrd.luks.devices."enc".device = "/dev/disk/by-uuid/078b81ba-238e-471d-9951-b743588532b8";
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
{
device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
{
device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
fileSystems."/persist" =
{ device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
{
device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
fsType = "btrfs";
options = [ "subvol=persist" ];
};
fileSystems."/log" =
{ device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
{
device = "/dev/disk/by-uuid/4a91d3eb-1633-42d9-8304-c10e49a61154";
fsType = "btrfs";
options = [ "subvol=log" ];
neededForBoot = true;
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/938D-F813";
{
device = "/dev/disk/by-uuid/938D-F813";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/29ebf65f-e6ca-4625-9f72-a9321152be1b"; }
];
[{ device = "/dev/disk/by-uuid/29ebf65f-e6ca-4625-9f72-a9321152be1b"; }];
}

View file

@ -11,56 +11,56 @@ let
window_padding_width = 3;
};
extraConfig = ''
foreground #f8f8f2
background #282a36
#background #000000
selection_foreground #44475a
selection_background #f8f8f2
foreground #f8f8f2
background #282a36
#background #000000
selection_foreground #44475a
selection_background #f8f8f2
url_color #ffb86c
url_color #ffb86c
# black
color0 #21222c
color8 #6272a4
# black
color0 #21222c
color8 #6272a4
# red
color1 #ff5555
color9 #ff6e6e
# red
color1 #ff5555
color9 #ff6e6e
# green
color2 #50fa7b
color10 #69ff94
# green
color2 #50fa7b
color10 #69ff94
# yellow
color3 #f1fa8c
color11 #ffffa5
# yellow
color3 #f1fa8c
color11 #ffffa5
# blue
color4 #bd93f9
color12 #d6acff
# blue
color4 #bd93f9
color12 #d6acff
# magenta
color5 #ff79c6
color13 #ff92df
# magenta
color5 #ff79c6
color13 #ff92df
# cyan
color6 #8be9fd
color14 #a4ffff
# cyan
color6 #8be9fd
color14 #a4ffff
# white
color7 #f8f8f2
color15 #ffffff
# white
color7 #f8f8f2
color15 #ffffff
# Cursor colors
cursor #6272a4
cursor_text_color background
# Cursor colors
cursor #6272a4
cursor_text_color background
# Tab bar colors
active_tab_foreground #44475a
active_tab_background #f8f8f2
inactive_tab_foreground #282a36
inactive_tab_background #6272a4
'';
# Tab bar colors
active_tab_foreground #44475a
active_tab_background #f8f8f2
inactive_tab_foreground #282a36
inactive_tab_background #6272a4
'';
font = {
name = "FiraCode Nerd Font";
size = 10;
@ -69,5 +69,5 @@ let
};
in
{
home-manager.users.moritz = {...}: (base);
home-manager.users.moritz = { ... }: (base);
}

View file

@ -10,5 +10,5 @@ let
});
in
{
home-manager.users.moritz = {...}: (base "/home/moritz/");
home-manager.users.moritz = { ... }: (base "/home/moritz/");
}

View file

@ -22,5 +22,5 @@ let
};
in
{
home-manager.users.moritz = {...}: (base);
home-manager.users.moritz = { ... }: (base);
}

View file

@ -2,8 +2,8 @@
{
imports = [
./git.nix
./nix.nix
./zsh.nix
./git.nix
./nix.nix
./zsh.nix
];
}

View file

@ -10,5 +10,5 @@ let
});
in
{
home-manager.users.moritz = {...}: (base "/home/moritz");
home-manager.users.moritz = { ... }: (base "/home/moritz");
}

View file

@ -14,10 +14,10 @@ let
cat = "bat";
};
plugins = [
{
name = "zsh-syntax-highlighting";
src = inputs.zsh-syntax-highlighting;
}
{
name = "zsh-syntax-highlighting";
src = inputs.zsh-syntax-highlighting;
}
];
enableAutosuggestions = true;
enableCompletion = true;
@ -34,5 +34,5 @@ let
in
{
environment.pathsToLink = [ "/share/zsh" ];
home-manager.users.moritz = {...}: (base "/home/moritz");
home-manager.users.moritz = { ... }: (base "/home/moritz");
}

View file

@ -18,7 +18,7 @@
};
fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "JetBrainsMono"];})
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "JetBrainsMono" ]; })
];
# PACKAGES

View file

@ -31,9 +31,9 @@
onChange = "bspc wm -r";
};
"sxhkd/sxhkdrc" = {
source = ./sxhkdrc;
onChange = "pkill -USR1 -x sxhkd";
};
source = ./sxhkdrc;
onChange = "pkill -USR1 -x sxhkd";
};
"wallpaper/dracula.png" = {
source = ./dracula.png;
};

View file

@ -5,18 +5,18 @@ let
services.polybar = {
enable = true;
package = pkgs.polybar.override {
pulseSupport = true;
};
pulseSupport = true;
};
script = ''for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do
MONITOR=$m polybar --reload bottom &
done
'';
config = ./config.ini;
extraConfig = builtins.readFile ./modules.ini +
builtins.readFile ./colors.ini;
builtins.readFile ./colors.ini;
};
};
in
{
home-manager.users.moritz = {...}: (base);
home-manager.users.moritz = { ... }: (base);
}

View file

@ -1,10 +1,5 @@
{ config, lib, pkgs, ... }:
{
hardware.opengl.enable = true;
home-manager.users.moritz = {
home.packages = with pkgs; [
steam
];
};
programs.steam.enable = true;
}

View file

@ -10,6 +10,6 @@
];
home-manager.users.moritz.services = {
kdeconnect.enable = true;
kdeconnect.enable = true;
};
}

View file

@ -14,9 +14,9 @@
diskstation -fstype=davfs,uid=1000 :https\://192.168.0.2\:5006/home/Drive/
'';
in
''
/auto file:${mapConf}
'';
''
/auto file:${mapConf}
'';
debug = true;
};
environment.etc."davfs2/certs/diskstation.pem" = {

View file

@ -12,5 +12,5 @@ let
};
in
{
home-manager.users.moritz = {...}: (base);
home-manager.users.moritz = { ... }: (base);
}

View file

@ -14,22 +14,22 @@ let
source = ./doom;
recursive = true;
onChange = ''
#!/bin/sh
DOOM="$HOME/.emacs.d"
if [ ! -d "$DOOM" ]; then
git clone https://github.com/hlissner/doom-emacs.git "$DOOM"
"$DOOM/bin/doom" -y install
fi
#!/bin/sh
DOOM="$HOME/.emacs.d"
if [ ! -d "$DOOM" ]; then
git clone https://github.com/hlissner/doom-emacs.git "$DOOM"
"$DOOM/bin/doom" -y install
fi
"$DOOM/bin/doom" sync
'';
"$DOOM/bin/doom" sync
'';
};
};
};
home.packages = with pkgs; [
## Emacs itself
binutils # native-comp needs 'as', provided by this
binutils # native-comp needs 'as', provided by this
# emacsPgtkGcc # 28 + pgtk + native-comp
# ((emacsPackagesNgGen emacsPgtkGcc).emacsWithPackages (epkgs: [
# epkgs.vterm
@ -37,18 +37,21 @@ let
## Doom dependencies
git
(ripgrep.override {withPCRE2 = true;})
gnutls # for TLS connectivity
(ripgrep.override { withPCRE2 = true; })
gnutls # for TLS connectivity
## Optional dependencies
fd # faster projectile indexing
imagemagick # for image-dired
zstd # for undo-fu-session/undo-tree compression
fd # faster projectile indexing
imagemagick # for image-dired
zstd # for undo-fu-session/undo-tree compression
## Module dependencies
# :checkers spell
(aspellWithDicts (ds: with ds; [
en en-computers en-science de
en
en-computers
en-science
de
]))
# :checkers grammar
languagetool
@ -64,5 +67,5 @@ in
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
home-manager.users.moritz = {...}: (base);
home-manager.users.moritz = { ... }: (base);
}

View file

@ -13,40 +13,40 @@ let
# inactiveDim = "0.1";
experimentalBackends = true;
extraOptions = ''
corner-radius = 10;
rounded-cornes-exclude = [
"class_g = 'Polybar'",
"class_g = 'Rofi'"
]
round-borders = 1;
corner-radius = 10;
rounded-cornes-exclude = [
"class_g = 'Polybar'",
"class_g = 'Rofi'"
]
round-borders = 1;
# improve performance
glx-no-rebind-pixmap = true;
glx-no-stencil = true;
# improve performance
glx-no-rebind-pixmap = true;
glx-no-stencil = true;
# fastest swap method
glx-swap-method = 1;
# fastest swap method
glx-swap-method = 1;
# dual kawase blur
blur-background-fixed = false;
blur-method = "dual_kawase";
blur-strength = 5;
use-ewmh-active-win = true;
detect-rounded-corners = true;
# dual kawase blur
blur-background-fixed = false;
blur-method = "dual_kawase";
blur-strength = 5;
use-ewmh-active-win = true;
detect-rounded-corners = true;
# stop compositing if there's a fullscreen program
unredir-if-possible = true;
# stop compositing if there's a fullscreen program
unredir-if-possible = true;
# group wintypes and don't focus a menu (Telegram)
detect-transient = true;
detect-client-leader = true;
# group wintypes and don't focus a menu (Telegram)
detect-transient = true;
detect-client-leader = true;
# needed for nvidia with glx backend
xrender-sync-fence = true;
'';
};
# needed for nvidia with glx backend
xrender-sync-fence = true;
'';
};
};
in
{
home-manager.users.moritz = {...}: (base);
home-manager.users.moritz = { ... }: (base);
}

View file

@ -8,4 +8,7 @@ final: prev: {
system = prev.system;
config.allowUnfree = true;
};
nur = import inputs.nur {
system = prev.system;
};
}