:3
This commit is contained in:
parent
d3a1b15bca
commit
cb12504749
BIN
common/boot-logo.png
Normal file
BIN
common/boot-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
# Not working on my hardware for some reason
|
||||
programs.hyprland.enable = true;
|
||||
}
|
||||
|
|
|
@ -7,15 +7,7 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
# If you want to use modules your own flake exports (from modules/nixos):
|
||||
# outputs.nixosModules.example
|
||||
|
||||
# Or modules from other flakes (such as nixos-hardware):
|
||||
# inputs.hardware.nixosModules.common-cpu-amd
|
||||
# inputs.hardware.nixosModules.common-ssd
|
||||
|
||||
# You can also split up your configuration and import pieces of it here:
|
||||
# ./users.nix
|
||||
./packages/neovim.nix
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
|
@ -65,9 +57,20 @@
|
|||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader.systemd-boot.enable = true;
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
|
||||
editor = true; # todo
|
||||
# memtest86.enable = true;
|
||||
};
|
||||
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
||||
grub = {
|
||||
#theme = pkgs.sleek-grub-theme;
|
||||
#splashImage = ./boot-logo.png;
|
||||
};
|
||||
};
|
||||
|
||||
# Set your time zone.
|
||||
|
@ -98,13 +101,11 @@
|
|||
shellAliases = {
|
||||
ll = "ls -al";
|
||||
};
|
||||
# history.size = 10000;
|
||||
# history.path = "${config.xdg.dataHome}/zsh/history";
|
||||
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
# "thefuck"
|
||||
];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
|
@ -112,42 +113,6 @@
|
|||
|
||||
services.fwupd.enable = true;
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
|
||||
configure = {
|
||||
customRC = ''
|
||||
set number
|
||||
set list
|
||||
if &diff
|
||||
colorscheme blue
|
||||
endif
|
||||
'';
|
||||
packages.myVimPackage = with pkgs.vimPlugins; {
|
||||
start = [
|
||||
ctrlp
|
||||
nvim-tree-lua
|
||||
indent-blankline-nvim
|
||||
|
||||
nvim-lspconfig
|
||||
nvim-treesitter.withAllGrammars
|
||||
plenary-nvim
|
||||
gruvbox-material
|
||||
mini-nvim
|
||||
];
|
||||
};
|
||||
|
||||
extraLuaConfig =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
''
|
||||
require("nvim-tree").setup()
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
|
||||
|
@ -156,15 +121,7 @@
|
|||
|
||||
nix.settings.allowed-users = ["@wheel"];
|
||||
|
||||
security = {
|
||||
#auditd.enable = true;
|
||||
#audit.enable = true;
|
||||
#audit.rules = [
|
||||
# "-a exit,always -F arch=b64 -S execve"
|
||||
#];
|
||||
|
||||
sudo.execWheelOnly = true;
|
||||
};
|
||||
security.sudo.execWheelOnly = true;
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
|
|
40
common/packages/neovim.nix
Normal file
40
common/packages/neovim.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{pkgs, ...}: {
|
||||
# NeoVIm config
|
||||
# Imported by default by ../default.nix
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
|
||||
configure = {
|
||||
customRC = ''
|
||||
set number
|
||||
set list
|
||||
if &diff
|
||||
colorscheme blue
|
||||
endif
|
||||
'';
|
||||
packages.myVimPackage = with pkgs.vimPlugins; {
|
||||
start = [
|
||||
ctrlp
|
||||
nvim-tree-lua
|
||||
indent-blankline-nvim
|
||||
|
||||
nvim-lspconfig
|
||||
nvim-treesitter.withAllGrammars
|
||||
plenary-nvim
|
||||
gruvbox-material
|
||||
mini-nvim
|
||||
];
|
||||
};
|
||||
|
||||
extraLuaConfig =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
''
|
||||
require("nvim-tree").setup()
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -3,7 +3,6 @@
|
|||
enable = true;
|
||||
user = "user";
|
||||
group = "users";
|
||||
dataDir = "/home/user";
|
||||
|
||||
openDefaultPorts = true;
|
||||
overrideFolders = false;
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../common/default.nix
|
||||
|
@ -11,8 +15,8 @@
|
|||
../../common/de/plasma6.nix
|
||||
../../common/de/hyprland.nix
|
||||
|
||||
./syncthing.nix
|
||||
../../common/adguardhome.nix
|
||||
../../common/packages/syncthing.nix
|
||||
../../common/packages/adguardhome.nix
|
||||
|
||||
# If you want to use modules your own flake exports (from modules/nixos):
|
||||
# outputs.nixosModules.example
|
||||
|
@ -45,7 +49,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
|
||||
services.btrfs.autoScrub = {
|
||||
enable = true;
|
||||
interval = "weekly";
|
||||
|
@ -69,6 +72,11 @@
|
|||
dedicatedServer.openFirewall = false; # Open ports in the firewall for Source Dedicated Server
|
||||
};
|
||||
|
||||
services.syncthing = {
|
||||
dataDir = lib.mkForce "/home/user";
|
||||
configDir = lib.mkForce "/data/sync/configuration/";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
bitwarden
|
||||
libreoffice-fresh
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "user";
|
||||
group = "users";
|
||||
dataDir = "/home/user";
|
||||
configDir = "/data/sync/configuration/";
|
||||
|
||||
openDefaultPorts = true;
|
||||
overrideFolders = false;
|
||||
overrideDevices = false;
|
||||
};
|
||||
}
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
../../common/de/plasma5.nix
|
||||
|
||||
./syncthing.nix
|
||||
# ../../common/adguardhome.nix
|
||||
../../common/packages/syncthing.nix
|
||||
# ../../common/packages/adguardhome.nix
|
||||
];
|
||||
|
||||
users.users.user = {
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Custom packages, that can be defined similarly to ones from nixpkgs
|
||||
# You can build them using 'nix build .#example'
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
tildefriends = pkgs.callPackage ./tildefriends/default.nix {};
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitea
|
||||
, gnumake
|
||||
, openssl
|
||||
, which
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitea,
|
||||
gnumake,
|
||||
openssl,
|
||||
which,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tildefriends";
|
||||
version = "0.0.17";
|
||||
|
@ -37,12 +37,8 @@ stdenv.mkDerivation rec {
|
|||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = "https://tildefriends.net/";
|
||||
homepage = "https://tildefriends.net";
|
||||
description = "Make apps and friends from the comfort of your web browser.";
|
||||
longDescription = ''
|
||||
TODO
|
||||
'';
|
||||
|
||||
mainProgram = "tildefriends";
|
||||
license = with lib.licenses; [mit];
|
||||
maintainers = with lib.maintainers; [tasiaiso];
|
||||
|
|
Loading…
Reference in a new issue