Compare commits

...

12 commits

Author SHA1 Message Date
Ranomier
2025985703 changed hunspell 2025-03-04 13:36:19 +01:00
Ranomier
a82a19101e formating 2025-03-04 13:36:19 +01:00
Ranomier
104c86b013 btop 2025-03-04 13:36:19 +01:00
Ranomier
a056a3c34e made office module and added spell checking 2025-03-04 13:36:19 +01:00
Ranomier
0c504ec2fb locketeti lock lock 2025-03-04 13:36:19 +01:00
Ranomier
d95cb1ed69 added etlegacy 2025-03-04 13:36:19 +01:00
Ranomier
e18bac76dc cleaned up unneeded comments 2025-03-04 13:36:19 +01:00
Ranomier
03899af020 formating 2025-03-04 13:36:19 +01:00
Ranomier
c8c06cb85e upd 2025-03-04 13:36:19 +01:00
Ranomier
3fdd16f869 comments 2025-03-04 13:36:19 +01:00
Ranomier
c80fcb7fd9 replaced double variable 2025-03-04 13:36:19 +01:00
Ranomier
d05d62a5a0 changed things with factorio server, but i am still not happy 2025-03-04 13:36:02 +01:00
12 changed files with 93 additions and 102 deletions

42
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1736373539, "lastModified": 1739757849,
"narHash": "sha256-dinzAqCjenWDxuy+MqUQq0I4zUSfaCvN9rzuCmgMZJY=", "narHash": "sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "bd65bc3cde04c16755955630b344bc9e35272c56", "rev": "9d3d080aec2a35e05a15cedd281c2384767c2cfe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -23,11 +23,11 @@
}, },
"nix-flatpak": { "nix-flatpak": {
"locked": { "locked": {
"lastModified": 1736334301, "lastModified": 1739444422,
"narHash": "sha256-370z+WLVnD7LrN/SvTCZxPl/XPTshS5NS2dHN4iyK6o=", "narHash": "sha256-iAVVHi7X3kWORftY+LVbRiStRnQEob2TULWyjMS6dWg=",
"owner": "gmodena", "owner": "gmodena",
"repo": "nix-flatpak", "repo": "nix-flatpak",
"rev": "5f4ec93d432cd5288f6fe20d8842dceb5a065885", "rev": "5e54c3ca05a7c7d968ae1ddeabe01d2a9bc1e177",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -38,11 +38,11 @@
}, },
"nixlib": { "nixlib": {
"locked": { "locked": {
"lastModified": 1734829460, "lastModified": 1736643958,
"narHash": "sha256-dPhc+f2wkmhMqMIfq+hColJdysgVxKP9ilZ5bR0NRZI=", "narHash": "sha256-tmpqTSWVRJVhpvfSN9KXBvKEXplrwKnSZNAoNPf/S/s=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "0a31e8d833173ae63e43fd9dbff1ccf09c4f778c", "rev": "1418bc28a52126761c02dd3d89b2d8ca0f521181",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -59,11 +59,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734915500, "lastModified": 1737057290,
"narHash": "sha256-A7CTIQ8SW0hfbhKlwK+vSsu4pD+Oaelw3v6goX6go+U=", "narHash": "sha256-3Pe0yKlCc7EOeq1X/aJVDH0CtNL+tIBm49vpepwL1MQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixos-generators", "repo": "nixos-generators",
"rev": "051d1b2dda3b2e81b38d82e2b691e5c2f4d335f4", "rev": "d002ce9b6e7eb467cd1c6bb9aef9c35d191b5453",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -74,11 +74,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1736441705, "lastModified": 1740089251,
"narHash": "sha256-OL7leZ6KBhcDF3nEKe4aZVfIm6xQpb1Kb+mxySIP93o=", "narHash": "sha256-Y78mDBWoO8CLLTjQfPfII+KXFb6lAmF9GrLbyVBsIMM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "8870dcaff63dfc6647fb10648b827e9d40b0a337", "rev": "18e9f9753e9ae261bcc7d3abe15745686991fd30",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -90,11 +90,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1736200483, "lastModified": 1739923778,
"narHash": "sha256-JO+lFN2HsCwSLMUWXHeOad6QUxOuwe9UOAF/iSl1J4I=", "narHash": "sha256-BqUY8tz0AQ4to2Z4+uaKczh81zsGZSYxjgvtw+fvIfM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3f0a8ac25fb674611b98089ca3a5dd6480175751", "rev": "36864ed72f234b9540da4cf7a0c49e351d30d3f1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -106,11 +106,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1736344531, "lastModified": 1739866667,
"narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=", "narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912", "rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -100,7 +100,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
# you can include your own nixos configuration here, i.e. # you can include your own nixos configuration here, i.e.
#./hosts/factorio/factorio.nix ./hosts/factorio/factorio.nix
]; ];
customFormats = { customFormats = {

View file

@ -73,6 +73,7 @@
../../modules/software/browser ../../modules/software/browser
../../modules/software/nix-helper ../../modules/software/nix-helper
../../modules/software/shells ../../modules/software/shells
../../modules/software/office
../../modules/wm_and_de ../../modules/wm_and_de

View file

@ -1,6 +1,6 @@
{...}: { {...}: {
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
boot.loader.grub.enable = true; #boot.loader.grub.enable = true;
# Define on which hard drive you want to install Grub. # Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only #boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
} }

View file

@ -1,6 +1,7 @@
{ {
pkgs, pkgs,
lib, lib,
modulesPath,
... ...
}: { }: {
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
@ -9,62 +10,38 @@
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.11"; # Did you read the comment?
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
nixpkgs = { nixpkgs.config = {
# You can add overlays here # Disable if you don't want unfree packages
#overlays = with inputs.self.overlays; [ allowUnfree = true;
# Add overlays your own flake exports (from overlays and pkgs dir):
#additions
#modifications
#unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
#];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
}; };
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
# https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager, # https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager,
# focused on correctness, usability, and growth # focused on correctness, usability, and growth
# and committed to doing right by its community. # and committed to doing right by its community.
#nix.package = pkgs.lix; nix.package = pkgs.lix;
imports = [ imports = [
#nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1 #nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1
#./hardware-configuration.nix #./hardware-configuration.nix
./boot.nix #./boot.nix
./hardware-configuration.nix #./hardware-configuration.nix
../../modules/locale.nix ../../modules/locale.nix
#../../modules/game/server/factorio/factorio.nix #../../modules/game/server/factorio/factorio.nix
#<nixpkgs/nixos/modules/profiles/perlless.nix> (modulesPath + "/profiles/perlless.nix")
#<nixpkgs/nixos/modules/profiles/headless.nix> (modulesPath + "/profiles/minimal.nix")
#<nixpkgs/nixos/modules/profiles/minimal.nix>
{ {
programs.command-not-found.enable = false;
environment.defaultPackages = []; environment.defaultPackages = [];
xdg = { boot.kernel.enable = false;
icons.enable = false; boot.isContainer = true;
mime.enable = false; nixpkgs.overlays = [(self: super: {})];
sounds.enable = false; }
}; {
documentation.man.enable = false;
documentation.nixos.enable = false;
# 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
# still possible to use this option, but it's recommended to use it in conjunction # still possible to use this option, but it's recommended to use it in conjunction
@ -73,8 +50,10 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true; # networking.interfaces.ens18.useDHCP = lib.mkDefault true;
} }
]; ];
#disabledModules = [ disabledModules = [
# <nixpkgs/nixos/modules/profiles/all-hardware.nix> (modulesPath + "/profiles/all-hardware.nix")
# <nixpkgs/nixos/modules/profiles/base.nix> (modulesPath + "/profiles/base.nix")
#]; # <nixpkgs/nixos/modules/profiles/all-hardware.nix>
# <nixpkgs/nixos/modules/profiles/base.nix>
];
} }

View file

@ -1,7 +1,10 @@
{pkgs, ...}: { {pkgs, ...}: {
# install and set neovim as MANPAGER
environment.systemPackages = [pkgs.neovim]; environment.systemPackages = [pkgs.neovim];
environment.variables = { environment.variables = {
"MANPAGER" = "nvim +Man!"; "MANPAGER" = "nvim +Man!";
# set neovim as default editor
"EDITOR" = "nvim"; "EDITOR" = "nvim";
}; };
} }

View file

@ -1,8 +1,6 @@
{ pkgs, ... }: {pkgs, ...}: let
let
default_command = "Hyprland"; default_command = "Hyprland";
in in {
{
# 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;
services.greetd = { services.greetd = {

View file

@ -45,6 +45,12 @@
appId = "io.github.Soundux"; appId = "io.github.Soundux";
} # soundboard } # soundboard
# games
{
origin = "flathub";
appId = "com.etlegacy.ETLegacy";
} # shooter
#"com.obsproject.Studio" #this is another way to write it #"com.obsproject.Studio" #this is another way to write it
]; ];
}; };

View file

@ -1,37 +1,28 @@
{pkgs, ...}: { {pkgs, ...}: {
#environment.systemPackages = with pkgs; [ ];
# hardware.steam-hardware.enable = true; # Note that this is already enabled with programs.steam.enable = true;
programs.steam = { programs.steam = {
enable = true; enable = true;
remotePlay.openFirewall =
true; # Open ports in the firewall for Steam Remote Play # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = remotePlay.openFirewall = true;
true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = # Open ports in the firewall for Source Dedicated Server
true; # Open ports in the firewall for Steam Local Network Game Transfers dedicatedServer.openFirewall = true;
# Open ports in the firewall for Steam Local Network Game Transfers
localNetworkGameTransfers.openFirewall = true;
# enables a extra session for the login screen (get steam deck behavior)
gamescopeSession.enable = true;
# make proton-ge alway available
extraCompatPackages = with pkgs; [proton-ge-bin];
}; };
programs.steam.gamescopeSession.enable = true;
#### FHS environment only
# This will only make partial installation - provide the script, which creates the typical environment expected by proprietary games and software on regular Linux, allowing to run such software without patching. Useful if you plan to run games downloaded from the internet.
# Note that this is not necessary for clients installed from Nixpkgs (like Minigalaxy or Itch), which already use the FHS environment.
# There are two options to install the FHS environment. The first is to install steam-run.
#Example snippet of configuration.nix:
# environment.systemPackages = with pkgs; [
# steam-run
# ];
# Another option, in case you need more flexibility, is to directly reference the part of steam metapackage.
# Example snippet of configuration.nix:
# environment.systemPackages = with pkgs; [
# (steam.override { /* Your overrides here */ }).run
# ];
# Install the game by setting the executable attribute on the installer and then running it via steam-run ./your_installer.sh. After installation, edit the "~/.local/share/applications/your_game.desktop" and replace the exec line from Exec="/home/user/game/start.sh" "" with Exec="steam-run" "/home/user/game/start.sh".
# steam-run: Run commands in the same FHS environment that is used for Steam
environment.systemPackages = with pkgs; [steam-run]; environment.systemPackages = with pkgs; [steam-run];
programs.steam.extraCompatPackages = with pkgs; [proton-ge-bin]; # Note that this is already enabled with programs.steam.enable = true;
# but it might be usefull on systems without steam,
# while still using steam hardware
#hardware.steam-hardware.enable = true;
} }

View file

@ -0,0 +1,5 @@
{...}: {
imports = [
./libreoffice.nix
];
}

View file

@ -0,0 +1,8 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
libreoffice
hunspell
hunspellDicts.en_GB-large
hunspellDicts.de_DE
];
}

View file

@ -33,6 +33,7 @@
# tooling # tooling
htop htop
btop
ncdu ncdu
wget wget
unstable.yt-dlp unstable.yt-dlp
@ -53,7 +54,6 @@
nuclear nuclear
#zathura #zathura
sioyek sioyek
libreoffice
#feh #feh
nomacs nomacs
#unstable.obsidian #unstable.obsidian