pridani configuration.nix
This commit is contained in:
parent
f5e42f842a
commit
7d30010353
@ -89,8 +89,8 @@ nix flake show github:kamadorueda/alejandra
|
|||||||
---
|
---
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
|
#flake.nix
|
||||||
{
|
{
|
||||||
description = "NixOS configuration";
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
@ -104,16 +104,16 @@ nix flake show github:kamadorueda/alejandra
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
laptop = nixpkgs.lib.nixosSystem {
|
nixos = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./laptop/configuration.nix
|
./configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = false;
|
home-manager.useGlobalPkgs = false;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = {inherit zen-browser;};
|
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
|
```nix
|
||||||
|
#home.nix
|
||||||
{
|
{
|
||||||
zen-browser,
|
zen-browser,
|
||||||
config,
|
config,
|
||||||
@ -144,6 +145,29 @@ nix flake show github:kamadorueda/alejandra
|
|||||||
programs.home-manager.enable = true;
|
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?
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user