Compare commits

...

2 commits

Author SHA1 Message Date
5ca4c1a48d Streamlined flake, removed onlyoffice
Some checks are pending
/ Check NixOS Configuration (push) Waiting to run
2024-11-12 23:44:38 +01:00
86820cfc88 removed calibre 2024-10-18 00:21:52 +02:00
3 changed files with 42 additions and 78 deletions

View file

@ -1,48 +1,39 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nix-data = { snowfall-lib.url = "github:snowfallorg/lib";
url = "github:snowflakelinux/nix-data"; snowfall-lib.inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
snowflakeos-modules.url = "github:snowflakelinux/snowflakeos-modules";
nixos-hardware.url = "github:nixos/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix.url = "github:Mic92/sops-nix"; sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs"; sops-nix.inputs.nixpkgs.follows = "nixpkgs";
lix-module.url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-1.tar.gz";
lix-module.inputs.nixpkgs.follows = "nixpkgs";
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
nix-minecraft.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = inputs: outputs = inputs: inputs.snowfall-lib.mkFlake {
inputs.snowfall-lib.mkFlake {
inherit inputs; inherit inputs;
src = ./.; src = ./.;
channels-config.allowUnfree = false; channels-config.allowUnfree = false;
systems.modules.nixos = with inputs; [
nix-data.nixosModules.nix-data nix.gc = {
# snowflakeos-modules.nixosModules.efiboot automatic = true;
# snowflakeos-modules.nixosModules.gnome options = "--delete-older-than 30d";
# snowflakeos-modules.nixosModules.kernel };
# snowflakeos-modules.nixosModules.networking nix.optimise.automatic = true;
# snowflakeos-modules.nixosModules.packagemanagers
# snowflakeos-modules.nixosModules.pipewire # Modules for Host kb-games-01
# snowflakeos-modules.nixosModules.printing systems.hosts.voloxo.modules = with inputs; [
# snowflakeos-modules.nixosModules.snowflakeos
# snowflakeos-modules.nixosModules.metadata
]; ];
# nixosConfigurations.HyperC = nixpkgs.lib.nixosSystem {
# modules = [ # Modules that get imported to every NixOS system
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix systems.modules.nixos = with inputs; [
# nixos-hardware.nixosModules.microsoft-surface-pro-intel lix-module.nixosModules.default
# ]; ];
# };
outputs-builder = channels: { formatter = channels.nixpkgs.nixfmt-rfc-style; };
}; };
} }

View file

@ -1,34 +1,18 @@
# Edit this configuration file to define what should be installed on { config, lib, pkgs, inputs, ... }:
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
# as well as the libraries available from your flake's inputs.
lib,
# An instance of `pkgs` with your overlays and packages applied is also available.
pkgs,
# You also have access to your flake's inputs.
inputs,
# Additional metadata is provided by Snowfall Lib.
namespace, # The namespace used for your flake, defaulting to "internal" if not set.
system, # The system architecture for this host (eg. `x86_64-linux`).
target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
format, # A normalized name for the system target (eg. `iso`).
virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
systems, # An attribute map of your defined hosts.
# All other arguments come from the system system.
config,
...
}:
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware.nix ./hardware.nix
# ./modules.nix ];
# Configure Nix
nix.package = pkgs.lix;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
"olm-3.2.16"
]; ];
# Bootloader. # Bootloader.
@ -66,8 +50,7 @@
LC_TIME = "de_DE.UTF-8"; LC_TIME = "de_DE.UTF-8";
}; };
# Experimental Features
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Nvidia Configuration # Nvidia Configuration
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
@ -116,10 +99,6 @@
#media-session.enable = true; #media-session.enable = true;
}; };
services.onlyoffice = {
enable = true;
};
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
@ -134,7 +113,7 @@
thunderbird thunderbird
cheese cheese
obs-studio obs-studio
blender # blender
syncthing syncthing
keepassxc keepassxc
freetube freetube
@ -151,7 +130,7 @@
logseq logseq
signal-desktop signal-desktop
kid3 kid3
calibre #calibre
spotify-player spotify-player
tidal-hifi tidal-hifi
iamb # Matrix with Vim-Binds iamb # Matrix with Vim-Binds
@ -181,12 +160,6 @@
services.displayManager.autoLogin.enable = true; services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = "kb"; services.displayManager.autoLogin.user = "kb";
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
"olm-3.2.16"
];
programs.vim = { programs.vim = {
enable = true; enable = true;

View file

@ -25,7 +25,7 @@
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; swapDevices = [{ device = "/swapfile"; size = 8 * 1024; }];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's