pridani configuration.nix

This commit is contained in:
albertvala 2025-03-14 11:19:45 +01:00
parent f5e42f842a
commit 7d30010353

View File

@ -89,8 +89,8 @@ nix flake show github:kamadorueda/alejandra
---
```nix
#flake.nix
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
@ -104,16 +104,16 @@ nix flake show github:kamadorueda/alejandra
...
}: {
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./laptop/configuration.nix
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = false;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit zen-browser;};
home-manager.users.albert = import ./modules/home.nix;
home-manager.users.nixFreak = import ./home.nix;
}
];
};
@ -125,6 +125,7 @@ nix flake show github:kamadorueda/alejandra
---
```nix
#home.nix
{
zen-browser,
config,
@ -144,6 +145,29 @@ nix flake show github:kamadorueda/alejandra
programs.home-manager.enable = true;
}
```
---
```nix
#configuration.nix
{
config,
lib,
pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
users.users.nixFreak = {
isNormalUser = true;
extraGroups = ["wheel"]; # Enable sudo for the user.
};
system.stateVersion = "25.05"; # Did you read the comment?
}
```
---