Compare commits
No commits in common. "5ca4c1a48d9ee3747bda35abee2da0d83f7b9a43" and "cd7261b033e5ba9bd41560f480b01125808c84ae" have entirely different histories.
5ca4c1a48d
...
cd7261b033
3 changed files with 78 additions and 42 deletions
55
flake.nix
55
flake.nix
|
@ -1,39 +1,48 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
snowfall-lib.url = "github:snowfallorg/lib";
|
nix-data = {
|
||||||
snowfall-lib.inputs.nixpkgs.follows = "nixpkgs";
|
url = "github:snowflakelinux/nix-data";
|
||||||
|
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: inputs.snowfall-lib.mkFlake {
|
outputs = inputs:
|
||||||
|
inputs.snowfall-lib.mkFlake {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
channels-config.allowUnfree = false;
|
channels-config.allowUnfree = false;
|
||||||
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
nix.optimise.automatic = true;
|
|
||||||
|
|
||||||
# Modules for Host kb-games-01
|
|
||||||
systems.hosts.voloxo.modules = with inputs; [
|
|
||||||
];
|
|
||||||
|
|
||||||
# Modules that get imported to every NixOS system
|
|
||||||
systems.modules.nixos = with inputs; [
|
systems.modules.nixos = with inputs; [
|
||||||
lix-module.nixosModules.default
|
nix-data.nixosModules.nix-data
|
||||||
|
# snowflakeos-modules.nixosModules.efiboot
|
||||||
|
# snowflakeos-modules.nixosModules.gnome
|
||||||
|
# snowflakeos-modules.nixosModules.kernel
|
||||||
|
# snowflakeos-modules.nixosModules.networking
|
||||||
|
# snowflakeos-modules.nixosModules.packagemanagers
|
||||||
|
# snowflakeos-modules.nixosModules.pipewire
|
||||||
|
# snowflakeos-modules.nixosModules.printing
|
||||||
|
# snowflakeos-modules.nixosModules.snowflakeos
|
||||||
|
# snowflakeos-modules.nixosModules.metadata
|
||||||
];
|
];
|
||||||
|
# nixosConfigurations.HyperC = nixpkgs.lib.nixosSystem {
|
||||||
outputs-builder = channels: { formatter = channels.nixpkgs.nixfmt-rfc-style; };
|
# modules = [
|
||||||
|
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
|
||||||
|
# nixos-hardware.nixosModules.microsoft-surface-pro-intel
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,34 @@
|
||||||
{ config, lib, pkgs, inputs, ... }:
|
# Edit this configuration file to define what should be installed on
|
||||||
|
# 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.
|
||||||
|
@ -50,7 +66,8 @@
|
||||||
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;
|
||||||
|
@ -99,6 +116,10 @@
|
||||||
#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;
|
||||||
|
|
||||||
|
@ -113,7 +134,7 @@
|
||||||
thunderbird
|
thunderbird
|
||||||
cheese
|
cheese
|
||||||
obs-studio
|
obs-studio
|
||||||
# blender
|
blender
|
||||||
syncthing
|
syncthing
|
||||||
keepassxc
|
keepassxc
|
||||||
freetube
|
freetube
|
||||||
|
@ -130,7 +151,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
|
||||||
|
@ -160,6 +181,12 @@
|
||||||
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;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [{ device = "/swapfile"; size = 8 * 1024; }];
|
swapDevices = [ ];
|
||||||
|
|
||||||
# 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue