Initial commit - NIE SPRAWDZONE, nie wiadomo czy działa i co robi

This commit is contained in:
Sasza Stanczew 2026-02-10 12:41:58 +01:00
commit 790f28b1dc
7 changed files with 121 additions and 0 deletions

38
configuration.nix Normal file
View file

@ -0,0 +1,38 @@
{ pkgs, ... }: {
imports = [
./hardware-configuration.nix
# ./modules/gaming.nix
./modules/network.nix
./modules/office.nix
./modules/3dprint.nix
];
# Włączamy Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Bootloader (standard dla UEFI)
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Sieć
networking.hostName = "nix-latitude";
networking.networkmanager.enable = true;
# paczki systemowe
environment.systemPackages = with pkgs; [
neovim
git
openssh
wget
];
# Użytkownik
users.users.sasza = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
shell = pkgs.zsh; # Możesz zmienić na bash
};
nixpkgs.config.allowUnfree = true;
system.stateVersion = "24.11";
}

25
flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
description = "Arch-like NixOS Config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # Bleeding edge!
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, ... }: {
nixosConfigurations.nix-latitude = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.sasza = import ./home.nix;
}
];
};
};
}

20
home.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs, ... }: {
home.username = "sasza";
home.homeDirectory = "/home/sasza";
home.packages = with pkgs; [
brave
htop
glances
];
# Przykład prostej konfiguracji Git
programs.git = {
enable = true;
userName = "Sasza Stanczew";
userEmail = "sasza@stanczew.com";
};
programs.home-manager.enable = true;
home.stateVersion = "24.11";
}

8
modules/3dprint.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }: {
# paczki
users.users.sasza.packages = with pkgs; [
orca-slicer
openscad-unstable
];
}

13
modules/gaming.nix Normal file
View file

@ -0,0 +1,13 @@
{ pkgs, ... }: {
# Grafika AMD i Steam
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
programs.steam.enable = true;
# paczki
users.users.sasza.packages = with pkgs; [
lutris
];
}

9
modules/network.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, ... }: {
# paczki
users.users.sasza.packages = with pkgs; [
eddie
qbittorrent
];
}

8
modules/office.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }: {
# paczki
users.users.sasza.packages = with pkgs; [
libreoffice-fresh
];
}