Switch to NixOS and various fixes
This commit is contained in:
parent
c7df83869f
commit
0aae761f89
14 changed files with 222 additions and 130 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1 +1 @@
|
||||||
config.nix
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,19 @@
|
||||||
|
# Nord palette
|
||||||
{
|
{
|
||||||
nord0 = "#2e3440";
|
n0 = "#2e3440";
|
||||||
nord1 = "#3b4252";
|
n1 = "#3b4252";
|
||||||
nord2 = "#434c5e";
|
n2 = "#434c5e";
|
||||||
nord3 = "#4c566a";
|
n3 = "#4c566a";
|
||||||
nord4 = "#d8dee9";
|
n4 = "#d8dee9";
|
||||||
nord5 = "#e5e9f0";
|
n5 = "#e5e9f0";
|
||||||
nord6 = "#eceff4";
|
n6 = "#eceff4";
|
||||||
nord7 = "#8fbcbb";
|
n7 = "#8fbcbb";
|
||||||
nord8 = "#88c0d0";
|
n8 = "#88c0d0";
|
||||||
nord9 = "#81a1c1";
|
n9 = "#81a1c1";
|
||||||
nord10 = "#5e81ac";
|
n10 = "#5e81ac";
|
||||||
nord11 = "#bf616a";
|
n11 = "#bf616a";
|
||||||
nord12 = "#d08770";
|
n12 = "#d08770";
|
||||||
nord13 = "#ebcb8b";
|
n13 = "#ebcb8b";
|
||||||
nord14 = "#a3be8c";
|
n14 = "#a3be8c";
|
||||||
nord15 = "#b48ead";
|
n15 = "#b48ead";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
38
fstab
38
fstab
|
|
@ -1,38 +0,0 @@
|
||||||
# Static information about the filesystems.
|
|
||||||
# See fstab(5) for details.
|
|
||||||
|
|
||||||
# <file system> <dir> <type> <options> <dump> <pass>
|
|
||||||
# /dev/nvme0n1p3 @root
|
|
||||||
UUID=9b9ae9dd-d889-4457-a7a5-02895db5f213 / btrfs rw,relatime,ssd,space_cache,compress=lzo,subvolid=256,subvol=/@root,subvol=@root 0 0
|
|
||||||
|
|
||||||
# /dev/nvme0n1p1
|
|
||||||
UUID=2D5C-D6EA /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
|
|
||||||
|
|
||||||
# /dev/nvme0n1p2
|
|
||||||
UUID=c35f5ed9-5dc6-4924-9e85-da2eedf833f3 none swap defaults 0 0
|
|
||||||
|
|
||||||
# /dev/nvme0n1p3 @opt
|
|
||||||
UUID=9b9ae9dd-d889-4457-a7a5-02895db5f213 /opt btrfs rw,relatime,ssd,space_cache,compress=lzo,subvol=/@opt,subvol=@opt 0 0
|
|
||||||
|
|
||||||
# /dev/sda1 @bertof
|
|
||||||
UUID=9b9ae9dd-d889-4457-a7a5-02895db5f213 /home/bertof btrfs rw,relatime,space_cache,compress=lzo,subvolid=33741,subvol=/@bertof,subvol=@bertof 0 0
|
|
||||||
|
|
||||||
# /dev/sda1 @bertof_images
|
|
||||||
UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Immagini btrfs rw,relatime,space_cache,compress=lzo,subvol=/@bertof_images,subvol=@bertof_images,x-gvfs-hide 0 0
|
|
||||||
|
|
||||||
# /dev/sda1 @bertof_videos
|
|
||||||
UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Video btrfs rw,relatime,space_cache,compress=lzo,subvol=/@bertof_videos,subvol=@bertof_videos,x-gvfs-hide 0 0
|
|
||||||
|
|
||||||
# /dev/sda1 @bertof_music
|
|
||||||
UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Musica btrfs rw,relatime,space_cache,compress=lzo,subvol=/@bertof_music,subvol=@bertof_music,x-gvfs-hide 0 0
|
|
||||||
|
|
||||||
# /dev/sda1 @bertof_downloads
|
|
||||||
UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Scaricati btrfs rw,relatime,space_cache,compress=lzo,subvol=/@bertof_downloads,subvol=@bertof_downloads,x-gvfs-hide 0 0
|
|
||||||
|
|
||||||
# /dev/nvme0n1p3 @games
|
|
||||||
UUID=9b9ae9dd-d889-4457-a7a5-02895db5f213 /home/bertof/Giochi/SSD btrfs rw,relatime,ssd,space_cache,compress=lzo,subvol=/@games,subvol=@games,x-gvfs-hide 0 0
|
|
||||||
|
|
||||||
# /dev/sda1 @games
|
|
||||||
UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Giochi/HDD btrfs rw,relatime,ssd,space_cache,compress=lzo,subvol=/@games,subvol=@games,x-gvfs-hide 0 0
|
|
||||||
|
|
||||||
|
|
||||||
83
home.nix
83
home.nix
|
|
@ -1,58 +1,77 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
unstable = import <nixos-unstable> {};
|
nixpkgs = import <nixpkgs> {};
|
||||||
colorscheme.theme = import ./packages/nord.nix;
|
colorscheme.theme = import ./packages/nord.nix;
|
||||||
in {
|
in {
|
||||||
fonts.fontconfig = {
|
fonts.fontconfig = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config = import ./modules/config.nix;
|
|
||||||
xdg.configFile."nixpkgs/config.nix".source = ./modules/config.nix;
|
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
language.base = "it_IT.UTF-8";
|
language.base = "it_IT.UTF-8";
|
||||||
keyboard.layout = "it";
|
keyboard.layout = "it";
|
||||||
keyboard.options = ["terminate:ctrl_alt_bksp" "compose:rctrl"];
|
keyboard.options = ["terminate:ctrl_alt_bksp" "compose:rctrl"];
|
||||||
packages = with pkgs; [
|
packages = (with pkgs; [
|
||||||
|
htop
|
||||||
|
neofetch
|
||||||
|
discord
|
||||||
|
evolutionWithPlugins
|
||||||
|
firefox
|
||||||
|
gnome3.evince
|
||||||
|
gnome3.nautilus
|
||||||
|
jetbrains.datagrip
|
||||||
|
megasync
|
||||||
|
mpv
|
||||||
nerdfonts
|
nerdfonts
|
||||||
spotify
|
pavucontrol
|
||||||
gnome3.nautilus
|
pcmanfm
|
||||||
procps-ng
|
polybarFull
|
||||||
mmv-go
|
procps-ng
|
||||||
terminator
|
skypeforlinux
|
||||||
];
|
slack
|
||||||
|
spotify
|
||||||
|
teams
|
||||||
|
]) ++ (with nixpkgs; [
|
||||||
|
authy
|
||||||
|
keepassxc
|
||||||
|
tdesktop
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./modules/alacritty.nix
|
./modules/alacritty.nix
|
||||||
./modules/bat.nix
|
./modules/bat.nix
|
||||||
./modules/broot.nix
|
./modules/broot.nix
|
||||||
./modules/bottom.nix
|
./modules/bottom.nix
|
||||||
./modules/dircolors.nix
|
./modules/dircolors.nix
|
||||||
./modules/fzf.nix
|
./modules/dunst.nix
|
||||||
./modules/git.nix
|
# ./modules/fzf.nix
|
||||||
./modules/go.nix
|
./modules/git.nix
|
||||||
./modules/gpg.nix
|
./modules/go.nix
|
||||||
./modules/kakoune.nix
|
./modules/gpg.nix
|
||||||
./modules/qogir_theme.nix
|
./modules/kakoune.nix
|
||||||
./modules/rofi.nix
|
./modules/picom.nix
|
||||||
./modules/screen_locker.nix
|
./modules/qogir_theme.nix
|
||||||
./modules/sxhkd.nix
|
./modules/rofi.nix
|
||||||
./modules/terminator.nix
|
./modules/screen_locker.nix
|
||||||
];
|
./modules/sxhkd.nix
|
||||||
|
./modules/terminator.nix
|
||||||
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
# command-not-found.enable = true;
|
# command-not-found.enable = true;
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
# info.enable = true;
|
# info.enable = true;
|
||||||
# kakoune = import ./modules/kakoune.nix pkgs;
|
# kakoune = import ./modules/kakoune.nix pkgs;
|
||||||
# zsh = {
|
# zsh = {
|
||||||
# enableVteIntegration = true;
|
# enableVteIntegration = true;
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
xsession.numlock.enable = true;
|
services.gnome-keyring.enable = true;
|
||||||
|
services.blueman-applet.enable = true;
|
||||||
|
services.network-manager-applet.enable = true;
|
||||||
|
xsession.numlock.enable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
nord = import ../configs/themes/nord.nix;
|
||||||
|
in {
|
||||||
|
# Include fonts packages
|
||||||
|
home.packages = with pkgs; [ nerdfonts ];
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -16,51 +21,51 @@
|
||||||
# NORD Theme: https://github.com/arcticicestudio/nord-alacritty
|
# NORD Theme: https://github.com/arcticicestudio/nord-alacritty
|
||||||
colors = {
|
colors = {
|
||||||
primary = {
|
primary = {
|
||||||
background = "#2e3440";
|
background = nord.n0;
|
||||||
foreground = "#d8dee9";
|
foreground = nord.n6;
|
||||||
dim_foreground = "#a5abb6";
|
dim_foreground = nord.n4;
|
||||||
};
|
};
|
||||||
cursor = {
|
cursor = {
|
||||||
text = "#2e3440";
|
text = nord.n0;
|
||||||
cursor = "#d8dee9";
|
cursor = nord.n4;
|
||||||
};
|
};
|
||||||
vi_mode_cursor = {
|
vi_mode_cursor = {
|
||||||
text = "#2e3440";
|
text = nord.n0;
|
||||||
cursor = "#d8dee9";
|
cursor = nord.n4;
|
||||||
};
|
};
|
||||||
selection = {
|
selection = {
|
||||||
text = "CellForeground";
|
text = "CellForeground";
|
||||||
background = "#4c566a";
|
background = nord.n3;
|
||||||
};
|
};
|
||||||
search = {
|
search = {
|
||||||
matches = {
|
matches = {
|
||||||
foreground = "CellForeground";
|
foreground = "CellForeground";
|
||||||
background = "#88c0d0";
|
background = nord.n8;
|
||||||
};
|
};
|
||||||
bar = {
|
bar = {
|
||||||
background = "#434c5e";
|
background = nord.n2;
|
||||||
foreground = "#d8dee9";
|
foreground = nord.n4;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
normal = {
|
normal = {
|
||||||
black = "#3b4252";
|
black = nord.n1;
|
||||||
red = "#bf616a";
|
red = nord.n11;
|
||||||
green = "#a3be8c";
|
green = nord.n14;
|
||||||
yellow = "#ebcb8b";
|
yellow = nord.n13;
|
||||||
blue = "#81a1c1";
|
blue = nord.n9;
|
||||||
magenta = "#b48ead";
|
magenta = nord.n15;
|
||||||
cyan = "#88c0d0";
|
cyan = nord.n9;
|
||||||
white = "#e5e9f0";
|
white = nord.n5;
|
||||||
};
|
};
|
||||||
bright = {
|
bright = {
|
||||||
black = "#4c566a";
|
black = nord.n3;
|
||||||
red = "#bf616a";
|
red = nord.n11;
|
||||||
green = "#a3be8c";
|
green = nord.n14;
|
||||||
yellow = "#ebcb8b";
|
yellow = nord.n13;
|
||||||
blue = "#81a1c1";
|
blue = nord.n9;
|
||||||
magenta = "#b48ead";
|
magenta = nord.n15;
|
||||||
cyan = "#8fbcbb";
|
cyan = nord.n8;
|
||||||
white = "#eceff4";
|
white = nord.n6;
|
||||||
};
|
};
|
||||||
dim = {
|
dim = {
|
||||||
black = "#373e4d";
|
black = "#373e4d";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
|
unstable = import <nixpkgs> {};
|
||||||
tomlGenerate = (pkgs.formats.toml {}).generate "bottom-toml";
|
tomlGenerate = (pkgs.formats.toml {}).generate "bottom-toml";
|
||||||
in {
|
in {
|
||||||
home.packages = [ pkgs.bottom ];
|
home.packages = with unstable; [ bottom ];
|
||||||
xdg.configFile."bottom/bottom.toml".source = tomlGenerate {
|
xdg.configFile."bottom/bottom.toml".source = tomlGenerate {
|
||||||
"flags" = {
|
"flags" = {
|
||||||
"left_legend" = true;
|
"left_legend" = true;
|
||||||
|
|
|
||||||
84
modules/dunst.nix
Normal file
84
modules/dunst.nix
Normal file
|
|
@ -0,0 +1,84 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let rofi_dmenu = "${pkgs.rofi} -dmenu";
|
||||||
|
firefox = "${pkgs.firefox}/bin/firefox";
|
||||||
|
dmenu = "${pkgs.dmenu}/bin/dmenu";
|
||||||
|
in {
|
||||||
|
home.packages = with pkgs; [ dunst nerdfonts ];
|
||||||
|
services.dunst = {
|
||||||
|
enable = true;
|
||||||
|
iconTheme = {
|
||||||
|
package = pkgs.qogir-icon-theme;
|
||||||
|
name = "Qogir-dark";
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
global = {
|
||||||
|
monitor = 0;
|
||||||
|
follow = "keyboard";
|
||||||
|
geometry = "300x6-20+50";
|
||||||
|
indicate_hidden = "yes";
|
||||||
|
shrink = "yes";
|
||||||
|
transparency = 10;
|
||||||
|
notification_height = 0;
|
||||||
|
separator_height = 2;
|
||||||
|
padding = 8;
|
||||||
|
horizontal_padding = 8;
|
||||||
|
frame_width = 2;
|
||||||
|
frame_color = "#2E3440";
|
||||||
|
separator_color = "#404859";
|
||||||
|
sort = "yes";
|
||||||
|
idle_threshold = 120;
|
||||||
|
|
||||||
|
font = "FuraCode Nerd Font Mono 10";
|
||||||
|
line_height = 0;
|
||||||
|
markup = "full";
|
||||||
|
format = "<b>%s</b>\\n%b";
|
||||||
|
alignment = "left";
|
||||||
|
show_age_threshold = 60;
|
||||||
|
word_wrap = "yes";
|
||||||
|
ellipsize = "middle";
|
||||||
|
ignore_newline = "no";
|
||||||
|
stack_duplicates = "true";
|
||||||
|
hide_duplicate_count = "false";
|
||||||
|
show_indicators = "yes";
|
||||||
|
icon_position = "off";
|
||||||
|
max_icon_size = 32;
|
||||||
|
sticky_history = "yes";
|
||||||
|
history_length = 20;
|
||||||
|
dmenu = "${dmenu} -p dunst:";
|
||||||
|
browser = "${firefox} -new-tab";
|
||||||
|
always_run_script = "true";
|
||||||
|
title = "Dunst";
|
||||||
|
class = "Dunst";
|
||||||
|
startup_notification = "false";
|
||||||
|
verbosity = "mesg";
|
||||||
|
corner_radius = 0;
|
||||||
|
force_xinerama = "false";
|
||||||
|
mouse_left_click = "close_current";
|
||||||
|
mouse_middle_click = "do_action";
|
||||||
|
mouse_right_click = "close_all";
|
||||||
|
};
|
||||||
|
urgency_low = {
|
||||||
|
background = "#2E3440";
|
||||||
|
foreground = "#D8DEE9";
|
||||||
|
timeout = 10;
|
||||||
|
};
|
||||||
|
urgency_normal = {
|
||||||
|
background = "#2E3440";
|
||||||
|
foreground = "#D8DEE9";
|
||||||
|
timeout = 10;
|
||||||
|
};
|
||||||
|
urgency_critical = {
|
||||||
|
background = "#2E3440";
|
||||||
|
foreground = "#D8DEE9";
|
||||||
|
frame_color = "#ff0000";
|
||||||
|
timeout = 0;
|
||||||
|
};
|
||||||
|
shortcuts = {
|
||||||
|
close = "ctrl+space";
|
||||||
|
close_all = "ctrl+shift+space";
|
||||||
|
history = "ctrl+backslash";
|
||||||
|
context = "ctrl+shift+period";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
unstable = import <nixos-unstable> {};
|
nixpkgs = import <nixpkgs> {};
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
kak-lsp
|
kak-lsp
|
||||||
|
|
@ -8,6 +8,11 @@ in {
|
||||||
gocode
|
gocode
|
||||||
gogetdoc
|
gogetdoc
|
||||||
jq
|
jq
|
||||||
|
aspell
|
||||||
|
aspellDicts.it
|
||||||
|
aspellDicts.en
|
||||||
|
aspellDicts.en-computers
|
||||||
|
aspellDicts.en-science
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.kakoune = {
|
programs.kakoune = {
|
||||||
|
|
@ -66,11 +71,12 @@ in {
|
||||||
"require-module auto-pairs"
|
"require-module auto-pairs"
|
||||||
"require-module powerline"
|
"require-module powerline"
|
||||||
];
|
];
|
||||||
plugins = with pkgs.kakounePlugins; [
|
plugins = (with pkgs.kakounePlugins; [
|
||||||
kak-auto-pairs
|
kak-auto-pairs
|
||||||
unstable.kakounePlugins.powerline-kak
|
]) ++ (with nixpkgs; [
|
||||||
unstable.kakounePlugins.prelude-kak
|
kakounePlugins.prelude-kak
|
||||||
];
|
kakounePlugins.powerline-kak
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."kak-lsp/kak-lsp.toml".source = ../configs/kak-lsp/kak-lsp.toml;
|
xdg.configFile."kak-lsp/kak-lsp.toml".source = ../configs/kak-lsp/kak-lsp.toml;
|
||||||
|
|
|
||||||
10
modules/picom.nix
Normal file
10
modules/picom.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.picom = {
|
||||||
|
enable = true;
|
||||||
|
blur = true;
|
||||||
|
fade = true;
|
||||||
|
shadow = true;
|
||||||
|
vSync = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -4,8 +4,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
font = {
|
font = {
|
||||||
package = pkgs.cantarell-fonts;
|
package = pkgs.cantarell-fonts;
|
||||||
name = "Cantarell";
|
# name = "Cantarell";
|
||||||
size = 9;
|
# size = 9;
|
||||||
|
name = "Cantarell 9";
|
||||||
};
|
};
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
package = pkgs.qogir-icon-theme;
|
package = pkgs.qogir-icon-theme;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,14 @@
|
||||||
{
|
{
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = {
|
# extraConfig = {
|
||||||
modi = "drun,run,ssh,window";
|
# modi = "drun,run,ssh,window";
|
||||||
theme = "nord";
|
# theme = "nord";
|
||||||
};
|
# };
|
||||||
|
extraConfig = "
|
||||||
|
modi = drun,run,ssh,window
|
||||||
|
theme = nord
|
||||||
|
";
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."rofi/nord.rasi".source = ../configs/rofi/nord.rasi;
|
xdg.configFile."rofi/nord.rasi".source = ../configs/rofi/nord.rasi;
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
terminator
|
terminator
|
||||||
rofi
|
rofi
|
||||||
bash
|
bash
|
||||||
# betterlockscreen
|
betterlockscreen
|
||||||
];
|
];
|
||||||
|
|
||||||
services.sxhkd = let
|
services.sxhkd = let
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
terminator= "${pkgs.terminator}/bin/terminator";
|
terminator= "${pkgs.terminator}/bin/terminator";
|
||||||
rofi = "${pkgs.rofi}/bin/rofi";
|
rofi = "${pkgs.rofi}/bin/rofi";
|
||||||
bash = "${pkgs.bash}/bin/bash";
|
bash = "${pkgs.bash}/bin/bash";
|
||||||
betterlockscreen = "/usr/bin/betterlockscreen";
|
betterlockscreen = "betterlockscreen";
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue