Compare commits

..

7 Commits

Author SHA1 Message Date
86cee6414a README.md aktualisiert
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 19s
2024-12-28 22:45:21 +01:00
660d6b0f93 .gitea/workflows/demo.yaml hinzugefügt
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 20s
2024-12-28 22:07:33 +01:00
3a747e60af Added basic git config to user hermannsn 2024-07-02 13:25:54 +02:00
e5ff8ce072 Added home-manager to flake config 2024-07-02 13:20:14 +02:00
932f37c6e6 Refactored nix config for multihost support 2024-07-02 01:07:15 +02:00
5f051fac2b Merge branch 'develop' 2024-07-02 00:16:49 +02:00
bdd5ec0823 Initial commit 2024-07-02 00:05:52 +02:00
9 changed files with 125 additions and 34 deletions

View File

@ -0,0 +1,19 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
# ---> Nix
# Ignore build outputs from performing a nix-build or `nix build` command
result
result-*

9
LICENSE Normal file
View File

@ -0,0 +1,9 @@
MIT License
Copyright (c) 2024 Niklas
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# nixos - Niklas Hermanns

View File

@ -5,24 +5,7 @@
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
nix = {
settings = {
experimental-features = "nix-command flakes";
};
};
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
networking.hostName = "nos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
nix.settings = { experimental-features = "nix-command flakes"; };
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
@ -88,17 +71,6 @@
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.hermannsn = {
isNormalUser = true;
description = "Niklas Hermanns";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
# thunderbird
];
};
# Install firefox.
programs.firefox.enable = true;

View File

@ -1,6 +1,41 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1719827385,
"narHash": "sha256-qs+nU20Sm8czHg3bhGCqiH+8e13BJyRrKONW34g3i50=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "391ca6e950c2525b4f853cbe29922452c14eda82",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-24.05",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1716542732,
"narHash": "sha256-0Y9fRr0CUqWT4KgBITmaGwlnNIGMYuydu2L8iLTfHU4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d12251ef6e8e6a46e05689eeccd595bdbd3c9e60",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1719707984,
"narHash": "sha256-RoxIr/fbndtuKqulGvNCcuzC6KdAib85Q8gXnjzA1dw=",
@ -18,7 +53,8 @@
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
"home-manager": "home-manager",
"nixpkgs": "nixpkgs_2"
}
}
},

View File

@ -3,14 +3,29 @@ description = "My flakes configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager.url = "github:nix-community/home-manager/release-24.05";
};
outputs = { self, nixpkgs }@inputs:
outputs = { self, nixpkgs, home-manager }@inputs:
let
system = "x86_64-linux";
specialArgs = inputs // { inherit system; };
shared-modules = [
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
extraSpecialArgs = specialArgs;
};
}
];
in
{
nixosConfigurations = {
nos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./configuration.nix];
specialArgs = specialArgs;
system = system;
modules = shared-modules ++ [ ./nos.nix];
};
};
};

25
hermannsn.nix Normal file
View File

@ -0,0 +1,25 @@
# hermannsn.nix
{ pkgs, ...}:
{
users.users.hermannsn = {
isNormalUser = true;
description = "Niklas Hermanns";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
# thunderbird
];
};
home-manager = {
users.hermannsn = {
programs.git = {
enable = true;
userName = "Niklas Hermanns";
userEmail = "Niklas.Hermanns@outlook.de";
};
home.stateVersion = "24.05";
};
};
}

View File

@ -4,7 +4,15 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ ];
imports = [ ./configuration.nix ./hermannsn.nix ];
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
networking.hostName = "nos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
boot.initrd.availableKernelModules = [ "ata_piix" "mptspi" "uhci_hcd" "ehci_pci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];