default unstable, optional stable 24.05

This commit is contained in:
Mohamed Chrayed 2024-07-31 19:07:14 +02:00
parent bd1099b334
commit 083c4491e0
14 changed files with 18 additions and 20 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, ... }:
{ config, pkgs, pkgs-stable, ... }:
{
imports =
[

View File

@ -2,25 +2,25 @@
description = "Moe.OS";
inputs = {
nixpkgs.url = "nixpkgs/release-24.05";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-24.05";
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/release-24.05";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self,nixpkgs,nixpkgs-unstable, home-manager, ...}:
outputs = { self,nixpkgs,nixpkgs-stable, home-manager, ...}:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
in {
nixosConfigurations = {
computer-mo = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./configuration.nix];
specialArgs = {
inherit pkgs-unstable;
inherit pkgs-stable;
};
};
};
@ -29,7 +29,7 @@
inherit pkgs;
modules = [./home.nix];
extraSpecialArgs = {
inherit pkgs-unstable;
inherit pkgs-stable;
};
};
};

View File

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, ... }:
{ config, pkgs, pkgs-stable, ... }:
{
imports = [

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, ... }:
{ config, pkgs, pkgs-stable, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

View File

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, ... }:
{ config, pkgs, pkgs-stable, ... }:
{
services.fwupd.enable = true;
services.printing.enable = true;

View File

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, ... }:
{ config, pkgs, pkgs-stable, ... }:
{
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "de_DE.UTF-8";

View File

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, ... }:
{ config, pkgs, pkgs-stable, ... }:
{
networking.hostName = "computer-mo";
networking.networkmanager.enable = true;

View File

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, ... }:
{ config, pkgs, pkgs-stable, ... }:
{
programs.firefox = {
enable = true;

View File

@ -1,2 +1,2 @@
{ config, pkgs, pkgs-unstable, ... }:
{ config, pkgs, pkgs-stable, ... }:
{}

View File

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, ... }:
{ config, pkgs, pkgs-stable, ... }:
{
system.autoUpgrade = {
enable = true;

View File

@ -1,10 +1,8 @@
{ config, pkgs, pkgs-unstable,... }:
{ config, pkgs, pkgs-stable,... }:
{
users.users.mo = {
isNormalUser = true;
description = "Mohamed Chrayed";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
];
};
}

View File

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable,... }:
{ config, pkgs, pkgs-stable,... }:
{
environment.systemPackages = with pkgs; [
wget