mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 02:14:07 +02:00
default unstable, optional stable 24.05
This commit is contained in:
parent
bd1099b334
commit
083c4491e0
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, pkgs-stable, ... }:
|
||||
{
|
||||
imports =
|
||||
[
|
||||
|
14
flake.nix
14
flake.nix
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
2
home.nix
2
home.nix
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, pkgs-stable, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
BIN
system/.controller.nix.kate-swp
Normal file
BIN
system/.controller.nix.kate-swp
Normal file
Binary file not shown.
BIN
system/.desktop.nix.kate-swp
Normal file
BIN
system/.desktop.nix.kate-swp
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, pkgs-stable, ... }:
|
||||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, pkgs-stable, ... }:
|
||||
{
|
||||
services.fwupd.enable = true;
|
||||
services.printing.enable = true;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, pkgs-stable, ... }:
|
||||
{
|
||||
time.timeZone = "Europe/Berlin";
|
||||
i18n.defaultLocale = "de_DE.UTF-8";
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, pkgs-stable, ... }:
|
||||
{
|
||||
networking.hostName = "computer-mo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, pkgs-stable, ... }:
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
|
@ -1,2 +1,2 @@
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, pkgs-stable, ... }:
|
||||
{}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, pkgs-unstable, ... }:
|
||||
{ config, pkgs, pkgs-stable, ... }:
|
||||
{
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
|
@ -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; [
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, pkgs-unstable,... }:
|
||||
{ config, pkgs, pkgs-stable,... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
|
Loading…
Reference in New Issue
Block a user