This commit is contained in:
Tasia Iso 2024-04-08 21:28:07 +02:00
parent d3a1b15bca
commit cb12504749
13 changed files with 85 additions and 104 deletions

BIN
common/boot-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View file

@ -1,3 +1,4 @@
{
# Not working on my hardware for some reason
programs.hyprland.enable = true;
}

View file

@ -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;

View 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()
'';
};
};
}

View file

@ -3,7 +3,6 @@
enable = true;
user = "user";
group = "users";
dataDir = "/home/user";
openDefaultPorts = true;
overrideFolders = false;

View file

@ -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

View file

@ -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,

View file

@ -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;
};
}

View file

@ -9,8 +9,8 @@
../../common/de/plasma5.nix
./syncthing.nix
# ../../common/adguardhome.nix
../../common/packages/syncthing.nix
# ../../common/packages/adguardhome.nix
];
users.users.user = {

View file

@ -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,

View file

@ -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 {};
}

View file

@ -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];