Reorganize for zfs
This commit is contained in:
parent
2933964680
commit
cfb48de40c
57 changed files with 817 additions and 492 deletions
|
@ -2,102 +2,30 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./secret.nix
|
||||
../../configurations/direnv/default.nix
|
||||
../../configurations/git/default.nix
|
||||
../../configurations/neovim/default.nix
|
||||
../../configurations/ssh/default.nix
|
||||
../../configurations/tmux/default.nix
|
||||
../../configurations/zsh/default.nix
|
||||
../../modules/zfs.nix
|
||||
../../overlays/default.nix
|
||||
../../configurations/direnv.nix
|
||||
../../configurations/git.nix
|
||||
../../configurations/locale.nix
|
||||
../../configurations/neovim.nix
|
||||
../../configurations/nix-index.nix
|
||||
../../configurations/nix-store.nix
|
||||
../../configurations/ssh.nix
|
||||
../../configurations/tmux.nix
|
||||
../../configurations/users.nix
|
||||
../../configurations/zsh.nix
|
||||
];
|
||||
|
||||
# Use latest kernel
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_IE.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_TIME = "en_GB.UTF-8";
|
||||
};
|
||||
};
|
||||
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "us";
|
||||
};
|
||||
|
||||
nix = {
|
||||
trustedUsers = [ "@wheel" ];
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "hourly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
optimise = {
|
||||
automatic = true;
|
||||
dates = [ "hourly" ];
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
htop
|
||||
inotify-tools
|
||||
moreutils
|
||||
ncdu
|
||||
nix-index
|
||||
(import ../../programs/pass/default.nix { inherit pkgs; })
|
||||
(import ../../programs/ssh/default.nix { inherit pkgs; })
|
||||
pass
|
||||
ripgrep
|
||||
unzip
|
||||
youtube-dl
|
||||
];
|
||||
systemd.user = {
|
||||
services.nix-index = {
|
||||
Unit = {
|
||||
Description = "Service to run nix-index";
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.nix-index}/bin/nix-index";
|
||||
};
|
||||
};
|
||||
timers.nix-index = {
|
||||
Unit = {
|
||||
Description = "Timer that starts nix-index every two hours";
|
||||
PartOf = [ "nix-index.service" ];
|
||||
};
|
||||
Timer = {
|
||||
OnCalendar = "00/2:30";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.locate = {
|
||||
enable = true;
|
||||
interval = "hourly";
|
||||
localuser = "charlotte";
|
||||
};
|
||||
|
||||
system.autoUpgrade = {
|
||||
allowReboot = false;
|
||||
enable = true;
|
||||
dates = "hourly";
|
||||
};
|
||||
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
defaultUserShell = pkgs.zsh;
|
||||
users = {
|
||||
charlotte = {
|
||||
isNormalUser = true;
|
||||
home = "/home/charlotte";
|
||||
description = "Charlotte Van Petegem";
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -2,106 +2,46 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./secret.nix
|
||||
../../configurations/dropbox/default.nix
|
||||
../../configurations/i3/default.nix
|
||||
../../configurations/kitty/default.nix
|
||||
../../configurations/syncthing/default.nix
|
||||
../../configurations/sway/default.nix
|
||||
../../configurations/adb.nix
|
||||
../../configurations/docker.nix
|
||||
../../configurations/dropbox.nix
|
||||
../../configurations/firefox.nix
|
||||
../../configurations/fonts.nix
|
||||
../../configurations/gnupg.nix
|
||||
../../configurations/i3.nix
|
||||
../../configurations/joplin.nix
|
||||
../../configurations/kernel.nix
|
||||
../../configurations/kitty.nix
|
||||
../../configurations/mounts.nix
|
||||
../../configurations/networkmanager.nix
|
||||
../../configurations/sound.nix
|
||||
../../configurations/sway.nix
|
||||
../../configurations/syncthing.nix
|
||||
../../configurations/teams.nix
|
||||
../../configurations/themes.nix
|
||||
../../configurations/thunderbird.nix
|
||||
../../configurations/xdg-dirs.nix
|
||||
];
|
||||
|
||||
services.pcscd = {
|
||||
enable = true;
|
||||
plugins = [ pkgs.ccid ];
|
||||
};
|
||||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
fonts = {
|
||||
enableFontDir = true;
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
emoji = [ "Noto Color Emoji" ];
|
||||
monospace = [ "Fira Code" ];
|
||||
sansSerif = [ "Noto Sans" ];
|
||||
serif = [ "Noto Serif" ];
|
||||
};
|
||||
};
|
||||
fonts = with pkgs; [
|
||||
fira-code
|
||||
fira-code-symbols
|
||||
font-awesome_4
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
noto-fonts-extra
|
||||
];
|
||||
};
|
||||
|
||||
networking = {
|
||||
hosts = { "127.0.0.1" = [ "dodona.localhost" "sandbox.localhost" ]; };
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
packages = [ pkgs.networkmanager-vpnc ];
|
||||
wifi.macAddress = "random";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
users.users.charlotte.extraGroups = [
|
||||
"adbusers"
|
||||
"docker"
|
||||
"input"
|
||||
"networkmanager"
|
||||
"video"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [ eid-mw ];
|
||||
|
||||
programs.adb.enable = true;
|
||||
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
chromium
|
||||
citrix_workspace
|
||||
deluge
|
||||
(import ../../programs/firefox/default.nix { inherit pkgs; })
|
||||
(import ../../programs/gnupg/default.nix { inherit pkgs; })
|
||||
google-chrome
|
||||
hledger
|
||||
joplin-desktop
|
||||
libreoffice
|
||||
moreutils
|
||||
mpv
|
||||
mumble
|
||||
networkmanagerapplet
|
||||
okular
|
||||
pavucontrol
|
||||
ranger
|
||||
slurp
|
||||
sshfs
|
||||
teams
|
||||
thunderbird
|
||||
vanilla-dmz
|
||||
wf-recorder
|
||||
wl-clipboard
|
||||
xdg-user-dirs
|
||||
zeroad
|
||||
];
|
||||
file = {
|
||||
".icons/default/index.theme".text = ''
|
||||
[Icon Theme]
|
||||
Name=Default
|
||||
Comment=Default Cursor Theme
|
||||
Inherits=Vanilla-DMZ
|
||||
'';
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
chromium
|
||||
citrix_workspace
|
||||
deluge
|
||||
google-chrome
|
||||
hledger
|
||||
libreoffice
|
||||
mpv
|
||||
mumble
|
||||
okular
|
||||
pavucontrol
|
||||
ranger
|
||||
slurp
|
||||
sshfs
|
||||
wf-recorder
|
||||
wl-clipboard
|
||||
zeroad
|
||||
];
|
||||
programs.zsh.loginExtra = ''
|
||||
if [[ -z "$DISPLAY" ]] && [[ $(tty) = "/dev/tty1" ]]; then
|
||||
exec sway
|
||||
|
@ -111,53 +51,5 @@
|
|||
exec startx
|
||||
fi
|
||||
'';
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
gtk-theme = "Arc";
|
||||
icon-theme = "Arc";
|
||||
cursor-theme = "Vanilla-DMZ";
|
||||
};
|
||||
};
|
||||
gtk = {
|
||||
enable = true;
|
||||
font = {
|
||||
package = pkgs.noto-fonts;
|
||||
name = "Noto Sans 10";
|
||||
};
|
||||
gtk2.extraConfig = ''
|
||||
gtk-cursor-theme-name = "Vanilla-DMZ"
|
||||
gtk-cursor-theme-size = 0
|
||||
'';
|
||||
gtk3.extraConfig = {
|
||||
gtk-cursor-theme-name = "Vanilla-DMZ";
|
||||
gtk-cursor-theme-size = 0;
|
||||
};
|
||||
iconTheme = {
|
||||
package = pkgs.arc-icon-theme;
|
||||
name = "Arc";
|
||||
};
|
||||
theme = {
|
||||
package = pkgs.arc-theme;
|
||||
name = "Arc";
|
||||
};
|
||||
};
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "gtk";
|
||||
};
|
||||
xdg = {
|
||||
enable = true;
|
||||
userDirs = {
|
||||
enable = true;
|
||||
desktop = "\$HOME/desktop";
|
||||
documents = "\$HOME/documents";
|
||||
download = "\$HOME/downloads";
|
||||
music = "\$HOME/music";
|
||||
pictures = "\$HOME/pictures";
|
||||
publicShare = "\$HOME/desktop";
|
||||
templates = "\$HOME/templates";
|
||||
videos = "\$HOME/videos";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue