mirror of
https://github.com/0x1d/nix.git
synced 2025-12-14 14:01:29 +01:00
update unstable, add Cosmic desktop
This commit is contained in:
19
os/flake.lock
generated
19
os/flake.lock
generated
@@ -37,10 +37,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1761656231,
|
||||||
|
"narHash": "sha256-EiED5k6gXTWoAIS8yQqi5mAX6ojnzpHwAQTS3ykeYMg=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "e99366c665bdd53b7b500ccdc5226675cfc51f45",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,9 +5,10 @@
|
|||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||||
home-manager.url = "github:nix-community/home-manager/release-25.05";
|
home-manager.url = "github:nix-community/home-manager/release-25.05";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager }: {
|
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
gnome = nixpkgs.lib.nixosSystem {
|
gnome = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
./users/demo.nix
|
./users/demo.nix
|
||||||
./users/master.nix
|
./users/master.nix
|
||||||
];
|
];
|
||||||
|
specialArgs = { inherit nixpkgs-unstable; };
|
||||||
};
|
};
|
||||||
kde = nixpkgs.lib.nixosSystem {
|
kde = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@@ -34,6 +36,7 @@
|
|||||||
./users/demo.nix
|
./users/demo.nix
|
||||||
./users/master.nix
|
./users/master.nix
|
||||||
];
|
];
|
||||||
|
specialArgs = { inherit nixpkgs-unstable; };
|
||||||
};
|
};
|
||||||
hyprland = nixpkgs.lib.nixosSystem {
|
hyprland = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@@ -47,6 +50,7 @@
|
|||||||
./users/demo.nix
|
./users/demo.nix
|
||||||
./users/master.nix
|
./users/master.nix
|
||||||
];
|
];
|
||||||
|
specialArgs = { inherit nixpkgs-unstable; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
3
os/system/desktop/cosmic.nix
Normal file
3
os/system/desktop/cosmic.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
services.desktopManager.cosmic.enable = true;
|
||||||
|
}
|
||||||
@@ -6,4 +6,5 @@
|
|||||||
displayManager.gdm.enable = true;
|
displayManager.gdm.enable = true;
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
};
|
};
|
||||||
|
services.desktopManager.cosmic.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,10 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, nixpkgs-unstable, ... }:
|
||||||
let
|
let
|
||||||
unstable = import
|
unstable = import nixpkgs-unstable {
|
||||||
(builtins.fetchTarball {
|
system = pkgs.system;
|
||||||
url = "https://github.com/nixos/nixpkgs/tarball/nixpkgs-unstable";
|
config = config.nixpkgs.config;
|
||||||
sha256 = "sha256:1j0ir1f9zv9y674apv7fnmmhr0qf8bjnh7qv6ia47bbs1pzxgr2x";
|
};
|
||||||
})
|
in {
|
||||||
# reuse the current configuration
|
|
||||||
{ config = config.nixpkgs.config; };
|
|
||||||
in
|
|
||||||
{
|
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
@@ -37,6 +33,8 @@ in
|
|||||||
ripgrep
|
ripgrep
|
||||||
jq
|
jq
|
||||||
git
|
git
|
||||||
|
ranger
|
||||||
|
highlight
|
||||||
gnumake
|
gnumake
|
||||||
pinentry
|
pinentry
|
||||||
direnv
|
direnv
|
||||||
@@ -61,7 +59,7 @@ in
|
|||||||
alacritty
|
alacritty
|
||||||
brave
|
brave
|
||||||
#unstable.gsconnect
|
#unstable.gsconnect
|
||||||
code-cursor
|
unstable.code-cursor
|
||||||
go
|
go
|
||||||
gnomeExtensions.forge
|
gnomeExtensions.forge
|
||||||
platformio
|
platformio
|
||||||
@@ -77,6 +75,7 @@ in
|
|||||||
hwinfo
|
hwinfo
|
||||||
usbutils
|
usbutils
|
||||||
unstable.cursor-cli
|
unstable.cursor-cli
|
||||||
|
ffmpeg
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
home.username = "master";
|
home.username = "master";
|
||||||
home.homeDirectory = "/home/master";
|
home.homeDirectory = "/home/master";
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "vim";
|
||||||
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
#plasma5Packages.bismuth
|
#plasma5Packages.bismuth
|
||||||
#kdeconnect
|
#kdeconnect
|
||||||
|
|||||||
Reference in New Issue
Block a user